Contributing to BrowserOS

September 11, 2026 · View on GitHub

The agent platform for BrowserOS, the browser you drive with an AI agent built in. Start at the root contributing guide if you have not already, then come back here.

Working on BrowserOS neo instead? See CONTRIBUTING.md.

What you will be working on

BrowserOS is two pieces that run together.

ProjectWhat it isStack
apps/appThe extension. New tab, side panel chat, onboarding and settingsWXT + React extension, GraphQL with codegen and graphqlsp, AI SDK React bindings, Radix and shadcn, PostHog
apps/serverThe server. The MCP tool surface plus the agent loop that runs your tasksBun. Hono with zod-validator, MCP served over Hono, Drizzle ORM with drizzle-kit, AI SDK across Anthropic, OpenAI, Google, Bedrock, Azure, OpenRouter and more

The extension talks GraphQL to the server. The schema lives at apps/app/schema/schema.graphql and the typed documents are generated, so run bun run codegen:agent after changing it rather than editing generated files.

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
BrowserOSThe supervisor launches the installed appDownload

Rust is not needed for this path. It is only required for the BrowserOS neo backend.

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:watch

That starts three processes and launches the browser against them:

apps/app       wxt                      the extension, with hot reload
apps/app       bun run dev:web          the web preview
apps/server    bun --watch src/index.ts the server, restarting on change

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:watchbun run dev: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 neo stack instead

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

Before you open a PR

bun run check    # lint, typecheck and fallow
bun test         # TypeScript suites

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

If you changed the GraphQL schema, regenerate and commit the output:

bun run codegen:agent

Handy extras

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

Where things live

apps/
  app/                   the extension
    entrypoints/         WXT entrypoints
    screens/             one folder per screen
    components/          shared UI
    modules/             cross-cutting infrastructure
    hooks/               global hooks
    lib/                 utilities
    schema/              GraphQL schema
  server/
    src/
      agent/             the agent loop
      api/               HTTP routes
      tools/             the MCP tool surface
      lib/               shared internals
    tests/
  app-onboard/           first-run onboarding (Vite)
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.