Claude Code Integration
Point Claude Code, Cursor, VS Code extensions, or any Anthropic-compatible client at UnoRouter and reach every model.
Claude Code is Anthropic's agentic coding tool for the terminal. It reads your codebase, edits files, runs commands, searches the web, and calls external tools. See the official Claude Code documentation.
Features
| Feature | Description |
|---|---|
| Agentic Coding | Reads your codebase, edits and creates files, runs shell commands, and iterates until the task is done. |
| Full Codebase Context | Reads your project structure, dependencies, and conventions. No manual file selection. |
| Terminal Native | Runs in the terminal with no IDE plugin. Works with any editor or language. |
| Git Integration | Creates commits, manages branches, resolves merge conflicts, and opens pull requests. |
| Tool Use & MCP | Supports Model Context Protocol (MCP) servers for databases, APIs, browsers, and other tools. |
| Multi-model Support | Works with all Claude models (Opus, Sonnet, Haiku) through UnoRouter. Switch with /model. |
| Extended Thinking | Extended thinking mode for complex reasoning tasks. |
| Image & File Input | Drag images or paste screenshots into the terminal. Reads PDFs, CSVs, and other files. |
| Safe by Default | Asks permission before destructive commands. Permission levels are configurable. |
Quick Setup with CC Switch
Configures the API endpoint and provider name in one click.
Manual Configuration
Point Claude Code at UnoRouter.
Permanent Config File (Recommended)
Persists across sessions and terminal restarts.
%APPDATA%\claude\settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.unorouter.com",
"ANTHROPIC_API_KEY": "YOUR_API_KEY",
"MAX_THINKING_TOKENS": "0",
"CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
}
}Environment Variables
Add to your shell profile. Resets on terminal close unless sourced from a profile file.
$env:ANTHROPIC_BASE_URL="https://api.unorouter.com"
$env:ANTHROPIC_API_KEY="YOUR_API_KEY"
$env:MAX_THINKING_TOKENS="0"
$env:CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS="1"
$env:CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="1"Installation
Step 1: Install Node.js
Claude Code needs Node.js 18 or later. Install the LTS build from nodejs.org.
Step 2: Install Git Bash
Claude Code needs a Unix-like shell. Install Git for Windows, which includes Git Bash, from git-scm.com.
Step 3: Install Claude Code
npm install -g @anthropic-ai/claude-codeGet started
Get an API key and use UnoRouter with Claude Code.