Search docs...

Start typing to search documentation

ClaudeClaude Code

Claude Code Integration

Point Claude Code, Cursor, VS Code extensions, or any Anthropic-compatible client at UnoRouter and reach every model.

About Claude Code

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

FeatureDescription
Agentic CodingReads your codebase, edits and creates files, runs shell commands, and iterates until the task is done.
Full Codebase ContextReads your project structure, dependencies, and conventions. No manual file selection.
Terminal NativeRuns in the terminal with no IDE plugin. Works with any editor or language.
Git IntegrationCreates commits, manages branches, resolves merge conflicts, and opens pull requests.
Tool Use & MCPSupports Model Context Protocol (MCP) servers for databases, APIs, browsers, and other tools.
Multi-model SupportWorks with all Claude models (Opus, Sonnet, Haiku) through UnoRouter. Switch with /model.
Extended ThinkingExtended thinking mode for complex reasoning tasks.
Image & File InputDrag images or paste screenshots into the terminal. Reads PDFs, CSVs, and other files.
Safe by DefaultAsks permission before destructive commands. Permission levels are configurable.

Quick Setup with CC Switch

Configures the API endpoint and provider name in one click.

Sign in to auto-fill your API key

Or use the CC Switch CLI:

bash
cc-switch provider add

Manual Configuration

Point Claude Code at UnoRouter.

Permanent Config File (Recommended)

Persists across sessions and terminal restarts.

%APPDATA%\claude\settings.json

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"
  }
}

Sign in to auto-fill your API key

Environment Variables

Add to your shell profile. Resets on terminal close unless sourced from a profile file.

powershell
$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"

Sign in to auto-fill your API key

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

bash
npm install -g @anthropic-ai/claude-code

Get started

Get an API key and use UnoRouter with Claude Code.