⚡ New — Kimi K3 is live: bring your own Moonshot key →

BHARATROUTER CODE

Code with a governed agent on GLM — in one command.

brcode is a Codex-/Claude-Code-style coding agent that runs on GLMthrough BharatRouter. One br- key; the GLM provider key stays BYOK on the platform. Bundles the open-source OpenCode engine. Full reference: the brcode guide — commands, shortcuts, sandbox, identity & budgets. Switching tools? Migrate from Codex · from Claude Code.

Install

Homebrew (macOS / Linux):

brew install bharatrouter/tap/brcode

Or one line (no Homebrew):

curl -fsSL https://bharatrouter.com/install/brcode.sh | bash

Get coding

brcode login    # sign in — zero-paste browser login
brcode init     # engine + your org profile (model, MCP connectors, rules)
brcode          # start the agent

A teammate is coding in two commands — brcode login && brcode init — and inherits your org's default model, MCP connectors, and rules. Repo-local AGENTS.mdstill travels with git clone, exactly like Codex.

Already have a favourite CLI?

One line each — zero-paste browser sign-in, pick any model your account can route (Kimi, GLM, Llama, Qwen, …), start coding. Preselect with BR_MODEL=<id>.

Claude Code (via the brcode launcher):

curl -fsSL https://bharatrouter.com/install/claude.sh | bash

Claude Code, native — no launcher: the gateway lives in~/.claude/settings.json, with /br-models + /br-usageslash commands and the BharatRouter MCP server registered in-session; switch models with Claude Code's own /model <id>:

curl -fsSL https://bharatrouter.com/install/claude-native.sh | bash

Codex CLI (OpenAI's open-source CLI, served by the gateway's Responses API):

curl -fsSL https://bharatrouter.com/install/codex.sh | bash

Kimi preset: install/claude-kimi.sh. Kimi & other BYOK-only models need your provider key saved once on thedashboard — it never lands on your machine.

What you get

Not affiliated with OpenAI ("Codex") or Anthropic ("Claude Code" / "Claude"). Built on OpenCode (MIT). Aider, Goose, Crush and Qwen Code are independent open-source projects — brcode launches your installed copy, routed through BharatRouter. See the API reference.