- Home
- Claude Code Proxy
- Getting Started
Getting Started
Prerequisites
Section titled “Prerequisites”- Python 3.13+ (see
pyproject.tomlfor the exact constraint) - uv package manager (recommended) or pip
- An API key for your chosen provider (OpenAI, Azure, Ollama, etc.)
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code)
Install Dependencies
Section titled “Install Dependencies”# Using uv (recommended)uv sync
# Or using pippip install -r requirements.txtConfigure Your Provider
Section titled “Configure Your Provider”Copy the example environment file and set your API key and model names:
cp .env.example .envEdit .env with your OpenAI credentials:
OPENAI_API_KEY="sk-your-openai-key"BIG_MODEL="gpt-4o"MIDDLE_MODEL="gpt-4o"SMALL_MODEL="gpt-4o-mini"For Azure OpenAI, Ollama, or other providers, see the Configuration Reference.
Start the Proxy
Section titled “Start the Proxy”python start_proxy.pyThe proxy starts on http://localhost:8082 by default.
Connect Claude Code
Section titled “Connect Claude Code”In a separate terminal, point Claude Code at the proxy:
ANTHROPIC_BASE_URL=http://localhost:8082 claudeThat’s it — Claude Code now sends requests through the proxy to your chosen provider.
Verify the Setup
Section titled “Verify the Setup”Check that the proxy is running:
curl http://localhost:8082/healthRun the built-in test script to confirm end-to-end connectivity:
python src/test_claude_to_openai.py