🎬 New — watch the 2-minute guide videos →
Documentation

Migrate from Claude Code

This is the easiest migration in the category, because you don't switch clients. brcode claude launches the real Claude Code CLI — your muscle memory, your CLAUDE.md, your skills, your hooks — with one change: the model traffic routes through BharatRouter instead of directly to Anthropic.

brew install bharatrouter/tap/brcode
brcode login && brcode init
brcode claude        # Claude Code, BR-routed. That's the migration.

What maps to what

Claude Code conceptWith brcode
claude CLIbrcode claude — the same binary, launched with BharatRouter wiring. All flags/subcommands work as before.
CLAUDE.md (repo)Read unchanged. brcode memory keeps it mirrored with AGENTS.md so every other harness shares the same context.
Skills (~/.claude/skills/)Work unchanged in Claude Code — and the OpenCode engine reads the same directory, so your skill packs work in brcode too.
HooksClaude Code's own hooks keep working under brcode claude. brcode also ships an equivalent PreToolUse/PostToolUse system for the OpenCode engine (brcode hooks).
Permission modesClaude Code's native permissions still apply. brcode adds brcode sandbox for the OpenCode engine (incl. a macOS write-jail).
Anthropic API key + billingOne org br- key, INR billing, per-key/team/agent ₹ budgets, GST invoices. Spend shows in brcode usage.
Team setup docsbrcode login && brcode init — model, MCP connectors and rules arrive from the org profile.

Do I lose memory or context?

No. Under brcode claude it's the same CLI reading the same files — CLAUDE.md, skills, settings all stay. Past chat sessions live in Claude Code's own store and remain available inside brcode claude exactly as before. The only thing that never crosses is chat history between different harnesses (a Claude Code conversation can't continue inside OpenCode) — same as today. Full breakdown: Context & memory.

What you gain

  • Model choice — run Claude-style workflows on GLM and other models; switch with brcode model, or use Sangam consensus routing.
  • Governance — every call metered/budgeted/audited on the gateway; per-machine agent identity with ₹ caps and one-command revocation.
  • India routing & INR — data-residency controls and rupee billing with GST invoices.
  • Team handover — new teammate productive in two commands, not a wiki page.

Claude Code is Anthropic's product; brcode launches your installed copy and is not affiliated with Anthropic. See the full brcode guide.