Use Claude Code, OpenAI Codex, Gemini and 10+ providers through Cursor or any OpenAI-compatible client. Centralize subscriptions, track usage, control access.
# Start the proxy
code-proxy
# Point Cursor at your public URL
Base URL: https://your-server.com/v1
# Pick any model — prefix selects the provider
cc/claude-sonnet-4-6 # Claude Code agent (subscription)
codex/5.3 # Codex agent (subscription)
anthropic/claude-opus-4-6 # Anthropic API (pay-per-token)
openai/gpt-5.3 # OpenAI API (pay-per-token) AI coding tools have two fundamentally different modes. Code Proxy lets you use both through a single endpoint.
Spawns the actual claude or codex binary. The AI reads your files, runs commands, edits code. Uses your subscription — not API tokens.
Direct HTTP to provider API. Answers questions, reviews code. Uses API keys or OAuth — pay per token consumed.
Claude, GPT, Gemini, DeepSeek, Groq, Together, Ollama — all through /v1/chat/completions.
Connect multiple accounts per provider. Auto round-robin, cooldown on rate limits, automatic OAuth token refresh.
Track requests, tokens, and estimated costs per model, per account, per API key. Full request log with filtering.
Create API keys for team members, toggle or revoke access instantly. Dashboard password protection.
Built-in tunnel support with Named Tunnel for a fixed URL. Share with your team without port forwarding or nginx.
Append :low to :max to any CLI model to control how thoroughly the agent works.
git clone https://github.com/rodrigorodriguescosta/code-proxy.git
cd code-proxy
go build -o code-proxy .
./code-proxy go install github.com/rodrigorodriguescosta/code-proxy@latest
code-proxy # Grab from GitHub Releases
wget .../code-proxy-linux-amd64
chmod +x code-proxy-linux-amd64
./code-proxy-linux-amd64 # Single binary, no dependencies
export PORT=3456
export PROXY_REQUIRE_API_KEY=true
./code-proxy
# Built-in Cloudflare tunnel
# Enable in Dashboard → Settings proxy.yourdomain.com).
Quick Tunnels generate random URLs that change on every restart — use a Named Tunnel for a fixed URL.
http://localhost:3456 — connect your accounts https://your-public-url/v1