Route Claude Code through Crazyrouter and reach the models you actually use — billed to a single key.
Not sure if Claude Code is installed? Run claude --version. A version number means use Configure; "command not found" means Full install.
Claude Code already installed — just point it at Crazyrouter. Seconds, no reinstall.
Claude Code not installed yet. Installs Git, Node.js, Claude Code, then configures Crazyrouter.
Get a token first at cn.crazyrouter.com
Paste the one-liner. The script asks for your token, base URL, and default model — press Enter for defaults.
Environment variables apply to new shells. Open a fresh terminal, or source the env file on macOS/Linux.
Claude Code starts and routes every request through Crazyrouter. That's it.
Six user-level environment variables. Both Anthropic and OpenAI styles are set, so one token works across Claude Code and other OpenAI-compatible tools.