Claude Code Integration
Use UnoRouter with Claude Code, Cursor, VS Code extensions, and any Anthropic-compatible client. Point your API to UnoRouter and access all models.
Claude Code is Anthropic's official agentic coding tool that lives in your terminal. It understands your entire codebase, can edit files, run commands, search the web, and interact with external tools. Visit the official Claude Code documentation for more details.
Features
| Feature | Description |
|---|---|
| Agentic Coding | Claude Code operates as an autonomous agent: it reads your codebase, edits files, creates new ones, runs shell commands, and iterates until the task is complete. |
| Full Codebase Context | Understands your entire project structure, dependencies, and conventions. No need to manually select files or provide context. |
| Terminal Native | Runs directly in your terminal with no IDE plugin required. Works with any editor, any workflow, any language. |
| Git Integration | Creates commits, manages branches, resolves merge conflicts, and creates pull requests. Built to work with your existing Git workflow. |
| Tool Use & MCP | Supports Model Context Protocol (MCP) servers, allowing integration with databases, APIs, browsers, and other external tools. |
| Multi-model Support | Works with all Claude models (Opus, Sonnet, Haiku) through UnoRouter. Switch models on the fly with /model command. |
| Extended Thinking | Supports extended thinking mode for complex reasoning tasks. Claude thinks through problems step by step before responding. |
| Image & File Input | Drag and drop images or paste screenshots directly into the terminal. Supports reading PDFs, CSVs, and other file formats. |
| Safe by Default | Asks for permission before running potentially destructive commands. Configurable permission levels for automated workflows. |
Quick Setup with CC Switch
Use CC Switch to configure your provider with one click. It automatically sets the API endpoint and provider name for you.
Manual Configuration
Configure Claude Code to use UnoRouter as your API provider.
Permanent Config File (Recommended)
Persists across sessions and terminal restarts.
%APPDATA%\claude\settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.unorouter.ai",
"ANTHROPIC_API_KEY": "YOUR_API_KEY"
}
}Environment Variables
Add to your shell profile. Resets when the terminal closes unless sourced from a profile file.
$env:ANTHROPIC_BASE_URL="https://api.unorouter.ai"
$env:ANTHROPIC_API_KEY="YOUR_API_KEY"Installation
Step 1: Install Node.js
Claude Code requires Node.js 18 or later. Download and install it from nodejs.org. Choose the LTS version for stability.
Step 2: Install Git Bash
Claude Code runs best in a Unix-like shell. Install Git for Windows which includes Git Bash. Download from git-scm.com.
Step 3: Install Claude Code
npm install -g @anthropic-ai/claude-codeReady to get started?
Get your API key and start using UnoRouter with Claude Code.