Sign up or log in
Click “Get my installer”. If you are not logged in you will be taken to sign-up first, then brought back here; the source tag in your link is kept.
Download an installer with your API key already embedded and double-click it: it installs Claude Code, sets ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN, and backs up your shell profile before appending. Then open a new terminal and run claude. Pay as you go, balance never expires.
Sign up or log in first — you will be brought back to the install step automatically. Already have an account? Log in
The installer is generated for your account and contains one API key. Do not share it.
Click “Get my installer”. If you are not logged in you will be taken to sign-up first, then brought back here; the source tag in your link is kept.
You get PrimeRouter-ClaudeCode-Installer.zip. Unzip it and double-click PrimeRouter-ClaudeCode-Installer.command. If macOS blocks the first launch, right-click the file → Open.
You get PrimeRouter-ClaudeCode-Installer.bat. Double-click it and follow the prompts in the window.
You get PrimeRouter-ClaudeCode-Installer.sh. In a terminal run: bash ~/Downloads/PrimeRouter-ClaudeCode-Installer.sh.
Open a new terminal (so the new environment variables load) and run claude.
No web login needed: the script asks for your API key interactively and never writes it into the command or your shell history.
curl -fsSL https://primerouter.ai/install/claude-code.sh | bash
irm https://primerouter.ai/install/claude-code.ps1 | iex
curl -fsSL https://primerouter.ai/install/claude-code.sh | bash
What it does: checks Node v22+ → installs @anthropic-ai/claude-code globally with npm if missing (asks first) → asks for your API key → backs up your shell profile, then appends ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1.
Script source: claude-code.sh · claude-code.ps1
No key yet? Create one on the API keys page.
Top up what you need — no subscription, no monthly reset.
Local payment methods, or USDT / USDC on multiple chains.
Requests bill against the service's procurement quota, fully isolated from any account you hold with Anthropic.
The same key also works with Codex, Gemini CLI, Cursor and any OpenAI- or Anthropic-protocol client.
ANTHROPIC_API_KEY in your terminal: Claude Code prefers it and bypasses PrimeRouter. Run unset ANTHROPIC_API_KEY (Windows: Remove-Item Env:ANTHROPIC_API_KEY), then open a new terminal. Read the guide →One API key that also works with Codex, Gemini CLI and every OpenAI- or Anthropic-protocol client.