Contributing to BrowserOS neo

September 11, 2026 · View on GitHub

The agent platform for BrowserOS neo, the browser your agents drive. Start at the root contributing guide if you have not already, then come back here.

Working on the other browser instead? See CONTRIBUTING.BrowserOS.md.

What you will be working on

BrowserOS neo is two pieces that run together.

ProjectWhat it isStack
apps/claw-appThe cockpit. The new tab where you watch agents work, replay sessions, and manage connectionsWXT + React extension, Tailwind v4, base-ui and Radix primitives, shadcn (base-vega), TanStack Query and Table, xyflow, Rive
apps/claw-server-rustThe backend. The MCP endpoint agents connect to, plus the API behind the cockpitRust. axum for HTTP, sea-orm with migrations, rmcp for MCP, clap, posthog-rs

claw-server-rust builds on shared crates in crates/: browseros-cdp for Chrome DevTools Protocol bindings, browseros-core for primitives, browseros-mcp for the MCP server, claw-api for wire types, and harness-integrations for the managed AI coding harness integrations.

The wire types are generated on both sides. packages/claw-api holds the TypeScript DTOs and packages/claw-api-client the contract-typed HTTP client, both generated from the same contract as the Rust claw-api crate. Do not hand edit generated files; run bun run codegen:claw-api instead.

Prerequisites

ToolWhyInstall
BunThe package manager and runtime. Version pinned in package.jsoncurl -fsSL https://bun.sh/install | bash
GoThe dev supervisor is a Go program compiled on every runbrew install go
LimaThe dev supervisor requires it and refuses to start without itbrew install lima
Rustclaw-server-rust is built and run with cargobrew install rustup && rustup-init
BrowserOS neoThe supervisor launches the installed appDownload
DockerOnly if you change the API contract. codegen:claw-api runs the generator in a pinned containerDocker Desktop

The dev loop is macOS only today. The supervisor resolves the browser through a hard-coded /Applications/... path, so Linux and Windows contributors can install dependencies and run the checks, but cannot launch either product yet.

Setup

cd packages/browseros-agent
bun install
cp .env.development.example .env.development

Everything in .env.development is optional for a first run. It holds analytics keys, Sentry DSNs, and port overrides, none of which you need to get the dev loop working. Copy it and move on.

bun run dev:setup does the same install with a frozen lockfile and then runs codegen, which is what CI does.

Run it

bun run dev:claw:watch:new

That starts three processes and launches the browser against them:

apps/claw-app            wxt                        the cockpit, with hot reload
apps/claw-app            bun run dev:web            the web preview
apps/claw-server-rust    cargo run -p claw-server-rust

A file watcher also tracks apps/claw-server-rust/src, its Cargo.toml, and its test fixtures, and restarts the Rust server whenever they change. The first cargo build takes a while; later ones are incremental.

Stop everything with bun run dev:stop.

:new versus plain

There are two variants and the difference matters more than the name suggests.

bun run dev:claw:watchbun run dev:claw:watch:new
PortsFixed: CDP 9000, server 9100, extension 9300Random, in the 9000 to 9999 range
ProfileA persistent dev profile that keeps its stateA fresh temporary directory each run
On startKills anything holding those ports, and any browser already using that profileOnly its own server port, cleared just before launch
Reach for it whenYou want your logins and settings to survive a restartRunning more than one at once, testing first-run behaviour, or not wanting to disturb a running instance

:new is the safer default while you are getting oriented, though it is not entirely hands-off: the server process clears its own port immediately before launching, so a process that grabs that port in the gap after it was picked will still be killed. Both variants take a lock on the profile, so two watch runs can never supervise the same one.

Running the BrowserOS stack instead

dev:watch and dev:claw:watch are exclusive, not additive. One command runs one product. To work on the other browser, see CONTRIBUTING.BrowserOS.md.

Before you open a PR

bun run check        # lint, typecheck and fallow
bun test             # TypeScript suites
bun run test:rust    # the Rust workspace
bun run lint:rust    # clippy, warnings are errors
bun run fmt:rust     # rustfmt check

Lint and formatting are Biome. bun run lint:fix applies what it can.

If you changed the API contract, regenerate and commit the output:

bun run codegen:claw-api
bun run test:claw-api-contract

Handy extras

CommandWhat it does
bun run dev:claw-onboardThe onboarding flow on its own
bun run dev:resetWipe the dev profile and start clean
bun run dev:cleanupStop dev processes and free the ports
bun run devtoolsAI SDK devtools against the server
bun run dev:manualBuild the extension statically instead of hot reloading, for when you need to load it by hand

Where things live

apps/
  claw-app/              cockpit extension
    entrypoints/         WXT entrypoints
    screens/             one folder per screen
    components/          shared UI
    modules/             cross-cutting infrastructure
    lib/                 utilities
  claw-server-rust/      Rust backend
    src/
    tests/
  claw-onboard/          first-run onboarding (Vite)
crates/                  shared Rust crates
packages/                shared TypeScript packages
tools/dev/               the Go dev supervisor

Getting help

Discord · Slack · Discussions

PR conventions, the CLA, and the browser build all live in the root contributing guide.