proxy
Health Pass
- License — License: AGPL-3.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 724 GitHub stars
Code Pass
- Code scan — Scanned 6 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
This tool is a local CLI proxy that translates Anthropic API requests into OpenAI format, allowing you to use an OpenCode Go subscription with Claude Code. It intercepts requests from Claude Code, transforms them, and forwards them to OpenCode Go's endpoint.
Security Assessment
The proxy fundamentally operates by intercepting and making network requests to external APIs. Because it acts as a man-in-the-middle between your Claude Code client and the OpenCode endpoint, it inherently handles highly sensitive data, including your API keys and the full context of your codebase and prompts. The automated code scan found no dangerous execution patterns (such as executing shell commands) and no hardcoded secrets. However, because the repository currently lacks a license, there are no formal legal guarantees or auditable terms regarding how your data is processed. Overall risk is rated as Medium due to the sensitive nature of the data passing through a relatively new, unlicensed proxy.
Quality Assessment
The project appears to be actively maintained, with its last push occurring today. It has garnered 11 GitHub stars, suggesting a small but growing base of early adopters and community trust. The developer provides clear documentation, multiple installation methods, and robust features like fallback chains and circuit breakers. The main drawback is the complete absence of a license file, which means the author strictly retains all copyright and the code cannot be safely used or modified in commercial or open-source projects without explicit permission.
Verdict
Use with caution: The code itself is clean and actively maintained, but you should exercise caution due to the sensitive API traffic it routes and the lack of a formal software license.
Use your OpenCode Go subscription with Claude Code.
routatic-proxy (prev OC-GO-CC)
A Go CLI proxy that lets you use your OpenCode Go or OpenCode Zen subscription with Claude Code.
routatic-proxy sits between Claude Code and OpenCode, intercepting Anthropic API requests, transforming them to the appropriate format (OpenAI, Responses, or Gemini), and forwarding them to OpenCode's endpoints. Claude Code thinks it's talking to Anthropic — but your requests go to affordable open models instead.
oc-go-cc remains available as a compatibility alias, and existing OC_GO_CC_* environment variables and ~/.config/oc-go-cc/config.json files are still recognized.
Why?
OpenCode Go gives you access to powerful open coding models for $5/month (then $10/month). OpenCode Zen provides curated, tested models with pay-as-you-go pricing. This proxy makes both work seamlessly with Claude Code's interface — no patches, no forks, just set two environment variables and go.
Features
- Transparent Proxy — Claude Code sends Anthropic-format requests, proxy transforms to OpenAI/Responses/Gemini format and back
- Dual Provider Support — Route models through OpenCode Go or OpenCode Zen based on your needs
- Model Routing — Automatically routes to different models based on context (default, thinking, long context, background)
- Fallback Chains — If a model fails, automatically tries the next one in your configured chain
- Circuit Breaker — Tracks model health and skips failing models to avoid latency spikes
- Real-time Streaming — Full SSE streaming with live format transformation
- Tool Calling — Proper Anthropic tool_use/tool_result <-> OpenAI/Gemini function calling translation
- Token Counting — Uses tiktoken (cl100k_base) for accurate token counting and context threshold detection
- JSON Configuration — Flexible config file with environment variable overrides and
${VAR}interpolation - Hot Reload — Watch config file for changes and reload automatically (off by default)
- Background Mode — Run as daemon detached from terminal
- Auto-start on Login — Launch on system startup via launchd (macOS)
Quick Start
1. Install
# macOS / Linux
brew tap routatic/tap && brew install routatic-proxy
# Windows
scoop bucket add routatic https://github.com/routatic/scoop-bucket && scoop install routatic-proxy
# Docker (with Makefile)
cp .env.example .env # then put your API key in .env
make docker-up
# Docker (manual)
cp .env.example .env
docker build -t routatic-proxy .
docker run -d --restart unless-stopped --name routatic-proxy --env-file .env -p 3456:3456 routatic-proxy
# Docker from GitHub Container Registry
docker pull ghcr.io/routatic/proxy:latest
docker run -d --restart unless-stopped --name routatic-proxy --env-file .env -p 3456:3456 ghcr.io/routatic/proxy:latest
Or see INSTALLATION.md for more options.
2. Initialize Configuration
routatic-proxy init
Creates a default config at ~/.config/routatic-proxy/config.json. Edit it to add your API key, or set the environment variable:
export ROUTATIC_PROXY_API_KEY=sk-opencode-your-key-here
3. Start the Proxy
routatic-proxy serve
Stop the Docker container (if using Docker):
make docker-stop
4. Configure Claude Code
export ANTHROPIC_BASE_URL=http://127.0.0.1:3456
export ANTHROPIC_AUTH_TOKEN=unused
5. Run Claude Code
claude
CLI Commands
routatic-proxy serve Start the proxy server
routatic-proxy serve -b Start in background (detached from terminal)
routatic-proxy serve --port 8080 Start on a custom port
routatic-proxy stop Stop the running proxy server
routatic-proxy status Check if the proxy is running
routatic-proxy init Create default configuration file
routatic-proxy validate Validate configuration file
routatic-proxy models List all available models (Go + Zen)
routatic-proxy autostart enable Enable auto-start on login
routatic-proxy autostart disable Disable auto-start on login
routatic-proxy autostart status Check autostart status
routatic-proxy --version Show version
Documentation
| Document | Description |
|---|---|
| INSTALLATION.md | Homebrew, Scoop, build from source, release binaries |
| CONFIGURATION.md | Config file reference, env vars, model routing, fallback chains |
| MODELS.md | Model capabilities, costs, and routing recommendations |
| CONTRIBUTING.md | Development setup, architecture, how it works |
| TROUBLESHOOTING.md | Common issues and debug mode |
License
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found