Search docs...

Start typing to search documentation

ClaudeClaude Code

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.

About Claude Code

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

FeatureDescription
Agentic CodingClaude 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 ContextUnderstands your entire project structure, dependencies, and conventions. No need to manually select files or provide context.
Terminal NativeRuns directly in your terminal with no IDE plugin required. Works with any editor, any workflow, any language.
Git IntegrationCreates commits, manages branches, resolves merge conflicts, and creates pull requests. Built to work with your existing Git workflow.
Tool Use & MCPSupports Model Context Protocol (MCP) servers, allowing integration with databases, APIs, browsers, and other external tools.
Multi-model SupportWorks with all Claude models (Opus, Sonnet, Haiku) through UnoRouter. Switch models on the fly with /model command.
Extended ThinkingSupports extended thinking mode for complex reasoning tasks. Claude thinks through problems step by step before responding.
Image & File InputDrag and drop images or paste screenshots directly into the terminal. Supports reading PDFs, CSVs, and other file formats.
Safe by DefaultAsks 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.

Sign in to auto-fill your API key

Or use the CC Switch CLI:

bash
cc-switch provider add

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

json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.unorouter.ai",
    "ANTHROPIC_API_KEY": "YOUR_API_KEY"
  }
}

Sign in to auto-fill your API key

Environment Variables

Add to your shell profile. Resets when the terminal closes unless sourced from a profile file.

powershell
$env:ANTHROPIC_BASE_URL="https://api.unorouter.ai"
$env:ANTHROPIC_API_KEY="YOUR_API_KEY"

Sign in to auto-fill 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

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

Ready to get started?

Get your API key and start using UnoRouter with Claude Code.