routatic/proxy
Go API proxy that routes Claude Code across model providers without client changes
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
routatic-proxy is a Go HTTP gateway, not an MCP server. Claude Code keeps its Anthropic request format and points ANTHROPIC_BASE_URL at the proxy. The gateway selects a model and provider for the request scenario, converts the request to the upstream API format, and translates the response or live SSE stream back into the format Claude Code expects. Model selection is configurable without changing the client.
Provider and protocol are separate concerns: OpenCode Go, OpenCode Zen, AWS Bedrock, OpenRouter, and Anthropic are upstream choices, while OpenAI, Anthropic, Responses, and Gemini are API formats the proxy handles. The Docker build compiles ./cmd/routatic-proxy with Go 1.25 and CGO_ENABLED=0. The JavaScript manifest lists Tailwind CSS as a development dependency; the proxy container runs the compiled Go binary rather than Node.js.
Key Capabilities & Differentiators
Routing policies distinguish default, thinking, long-context, and background requests, with separate routing controls for streaming. A configured fallback chain tries the next model after a failure, and a circuit breaker tracks model health so later requests can skip failing models. Anthropic-first mode is useful when native Claude behavior is the default and OpenCode is needed only during rate limits or outages.
The gateway converts SSE incrementally and translates Anthropic tool_use and tool_result messages to and from upstream function-calling formats. routatic-proxy start adds a dashboard at http://127.0.0.1:3445 with live metrics, model distribution, a filterable history of the last 1,000 requests, and editable settings. Configuration hot reload lets operators adjust routes without restarting the proxy.
Trade-offs & Limitations
Direct Anthropic access has fewer moving parts and is the simpler choice for a Claude-only workflow. A provider-native client likewise avoids translation if one alternative upstream is enough. The proxy earns its place when Claude Code must stay in place while models or providers change by scenario. Schema conversion does not guarantee behavioral parity: test tool-call round trips, stop reasons, and streamed usage reporting on both primary and fallback routes. The v0.6.5 fixes show why those paths deserve explicit regression tests.
Self-hosting gives you control over routing, not over where inference happens. Prompts, source snippets, and tool results can go to the configured upstreams, and failover can send them to a different provider than the primary route. Approve each destination against your data policy and account for the time failed attempts can add before a response. Under AGPL-3.0, modified versions offered over a network carry corresponding-source obligations to their remote users.
Hardware & Deployment Guide
Install a release binary or use Docker, run routatic-proxy init, configure upstream credentials, and check the configuration with routatic-proxy validate. Use serve for a headless process or start for the dashboard; both accept -b for background operation. The Dockerfile uses Alpine 3.21 at runtime, installs CA certificates and timezone data, and copies the example configuration to /etc/routatic-proxy/config.json. Desktop GUI support is separate: native macOS integration requires CGO, Linux defaults to the browser UI, and Windows is CLI-only.
Inference stays upstream, so the proxy requires neither a local GPU nor model VRAM, but it does need network access and provider credentials. Size it for concurrent SSE connections and payloads. Pin a stable version for repeatable deployments and use beta for testing. v0.6.5 improved Responses tool-call conversion, streaming usage accounting, and macOS autostart. It also forwards x-claude-code-session-id to OpenCode Go as x-opencode-session, using a generated UUID when the client omits the header.
start adds a dashboard with metrics and the last 1,000 requests, while serve is headless../cmd/routatic-proxy with Go 1.25 and CGO_ENABLED=0, then packages the binary on Alpine 3.21.x-opencode-session, generating a UUID when the client omits the ID.Developers and teams that want to keep Claude Code while routing workloads across providers or retaining an approved fallback when Anthropic is unavailable.
Direct Anthropic access already meets your needs, policy prohibits sending code to configured upstreams, or you need an MCP server or an offline inference runtime.
Quick Start & Installation
# 1. Install brew tap routatic/tap && brew install routatic-proxy # 2. Initialize configuration routatic-proxy init # 3. Set your API key export ROUTATIC_PROXY_API_KEY=sk-opencode-your-key-here # 4. Start the proxy routatic-proxy serve # 5. Configure Claude Code export ANTHROPIC_BASE_URL=http://127.0.0.1:3456 export ANTHROPIC_AUTH_TOKEN=unused # 6. Run Claude Code claude
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| proxy ★ | 985 | +2 | Go | AGPL-3.0 | Go API proxy that routes Claude Code across model providers without client chang |
| cc-switch | 159.1k | +1.7k | Rust | MIT | Tauri desktop manager for AI coding providers, local routing, and MCP config |
| herdr | 54.1k | +871 | Rust | Apache-2.0 | Rust terminal multiplexer for persistent, multi-machine coding-agent workspaces |
| claude-code-router | 38.5k | +101 | TypeScript | MIT | Local model gateway for routing coding agents across providers |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/routatic/proxy.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about proxy
How does Claude Code connect, and where do provider credentials go?
ANTHROPIC_AUTH_TOKEN=unused on the client side; that placeholder neither replaces upstream credentials nor establishes that the proxy is safe to expose publicly. The integration is an HTTP API proxy, not an MCP server.Does the proxy need a GPU, and what determines its runtime overhead?
Can a commercial team self-host it under AGPL-3.0?
When is it better than connecting directly to Anthropic or using a provider-native client?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy