// docs
Point your editor at BroCode and start coding with Claude. Pick your tool below - or run the wizard.
One command. It asks for your key, configures your IDEs, and verifies the connection.
npx brocode
curl -fsSL https://brocode.live/setup.sh | bash
irm https://brocode.live/setup.ps1 | iex
Pick your tool - manual config if you’d rather not use the wizard.
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
"ANTHROPIC_BASE_URL": "https://api.brocode.live",
"ANTHROPIC_MODEL": "Opus 4.8[1m]",
"ANTHROPIC_SMALL_FAST_MODEL": "Haiku 4.5",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "Sonnet 4.6",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "Haiku 4.5"
},
"hasCompletedOnboarding": true
}// Replace YOUR_API_KEY with your BroCode key.
Base URL: https://api.brocode.live · Anthropic-compatible.
x-api-key: YOUR_API_KEY # or Authorization: Bearer YOUR_API_KEY
curl https://api.brocode.live/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"model":"claude-sonnet-4-6",
"max_tokens":1024,
"messages":[{"role":"user","content":"Hi"}]}'/v1/messagesAPI keyCreate a message. Set stream:true for SSE streaming. Anthropic-compatible request/response.
/v1/modelsnoneList models with context_window - Opus is 1,000,000; others 200,000.
/v1/messages/count_tokensAPI keyCount tokens for a message without sending it.
/api/key-status?key=noneCheck status, usage and limits for an API key.
Automatic & server-side - no setup. Claude looks things up when it needs current info.
Send a URL, path or base64 image - vision is handled for you, server-side.
claude-opus-4-8Flagship - 1M context, deep reasoning, long-horizon agentic coding.
claude-sonnet-4-6Best balance of speed and intelligence for everyday work.
claude-haiku-4-5-20251001Fastest, for simple queries and high-throughput jobs.
Check your API key is active and not expired on the Check Usage page.
They’re built into the server and work automatically. If issues persist, verify your key is valid.
Use exact model IDs (e.g. claude-sonnet-4-6) or friendly names like “Sonnet 4.6”.
Your 5-hour window may be exhausted - check /api/key-status. It resets automatically.
Restart your IDE after any config change.
Make sure you’re using the /v1 endpoint URL.