Claude Code

Use Claude Code through BitRouter as an ACP adapter, a headless agent, or its native terminal interface.

2 min readEdit this page

Claude Code is a harness: it owns the agent loop and tools. BitRouter supplies its model route, fallback, policy, and metering.

Pick a mode

bro code claude                         # BitRouter conversation
bro run claude "Summarize this repo"   # headless ACP turn
bro claude                              # Claude Code's native interface

bro launch claude is the generic spelling of bro claude. Both use temporary environment variables for the child process and do not edit Claude Code's user or project settings.

Before launching, verify the executable, daemon, and route:

bro launch claude --check

If the Claude executable is missing, the launcher can offer Claude's official installer. Use --no-install when an automated environment should fail instead.

Select a model

Pin a daemon-routable model before the -- separator:

bro claude --model bitrouter/auto
bro launch claude --model anthropic/claude-sonnet-4-6

Arguments after -- go directly to Claude Code:

bro launch claude -- --permission-mode plan

Manual configuration

Use manual environment variables only when Claude Code must start outside bro launch. Claude Code appends /v1/messages, so the base URL is the host root:

export ANTHROPIC_BASE_URL=http://127.0.0.1:4356
export ANTHROPIC_AUTH_TOKEN=local-placeholder
export ANTHROPIC_MODEL=bitrouter/auto
claude

For Cloud, use https://api.bitrouter.ai and set ANTHROPIC_AUTH_TOKEN to a BitRouter key. An authenticated self-hosted daemon likewise requires a valid BitRouter key instead of the placeholder.

Harness versus subscription

This page routes the Claude Code application through BitRouter. To use a Claude Pro or Max plan as the source of tokens, first configure the separate claude-code subscription provider. The harness and model source can then be used together.

How is this guide?

On this page