Coding agents

Run supported coding agents through BitRouter interactively, headlessly, or in their native interface.

3 min readEdit this page

BitRouter separates the agent harness that drives the loop from the model source that supplies tokens. The same Claude, Codex, OpenCode, or Pi harness can use a hosted model, a subscription, or a model running on your machine.

Choose the interface

GoalCommandInterface owner
Work in BitRouter's conversationbro code <agent>BitRouter
Run one turn from a scriptbro run <agent> "..."BitRouter, headless
Use the harness's own terminal UIbro launch <agent>The harness
Let another ACP client launch the adapterbro acp serve <agent>The ACP client
bro code codex
bro run claude "Review the current diff" --format quiet
bro launch opencode

bro code, bro run, and bro acp serve use ACP adapters. bro launch starts the harness's native interface with process-local routing overrides. It does not rewrite the user's normal harness configuration.

Supported agents

Run bro agents list for the catalog shipped by your installed version. Alpha.31 includes local ACP adapters for Claude, Codex, Gemini CLI, OpenCode, Pi, Hermes, and OpenClaw.

Friendly idACP adapterNative launch
claudeclaude-acpbro claude or bro launch claude
codexcodex-acpbro codex or bro launch codex
opencodeopencodebro launch opencode
pipi-acpbro launch pi
hermeshermes-acpbro launch hermes
openclawopenclawbro launch openclaw
gemini-cligemini-cliACP only in the bundled catalog

Use bro agents check <agent> before a long task. It verifies that the adapter can initialize and reports whether its model traffic can be routed through BitRouter.

What launch changes

For Claude and Codex, BitRouter passes temporary environment variables or command-line overrides. For OpenCode, Pi, Hermes, and OpenClaw, it writes a generated profile under the working tree's self-ignoring .bitrouter/launch/ directory and points only the child process at it.

bro launch pi --model bitrouter/auto
bro launch codex --check
bro launch claude -- --permission-mode plan

Arguments after -- belong to the harness. BitRouter options such as --model, --base-url, and --check must come before it.

Supported native harnesses also receive the aggregate MCP gateway when they expose a compatible injection mechanism. The launch summary states what was actually routed or injected; Pi and some other harnesses do not expose an MCP injection surface.

Other harnesses

If a harness is not in the catalog, configure it as a normal API client:

ProtocolLocal base URLCloud base URL
OpenAI-compatiblehttp://127.0.0.1:4356/v1https://api.bitrouter.ai/v1
Anthropic-compatiblehttp://127.0.0.1:4356https://api.bitrouter.ai

Use a provider/model id where the harness accepts a model name. Product-specific configuration keys belong to that harness's documentation; BitRouter only owns the endpoint and routing contract.

Harness or model source?

You want to…Read
Run the Claude Code applicationClaude Code
Spend a Claude Pro or Max subscriptionClaude subscription
Run the Codex applicationCodex
Spend a ChatGPT Plus or Pro subscriptionCodex subscription

Claude Code

Use bro code claude, bro run claude, or bro claude. See the Claude Code details when you need manual environment configuration.

Codex

Use bro code codex, bro run codex, or bro codex. See the Codex details when you need a permanent provider block.

How is this guide?

On this page