Claude Code model router
Zen Proxy
Use OpenCode Zen's free models in any coding agent. OpenAI + Anthropic compatible, so Claude Code works too. No account, no API key.
Install
git clone https://github.com/12errh/zen-proxy.gitFrom the README
zen-proxy
Use OpenCode Zen's free models from any AI coding agent.
No account. No API key. OpenAI and Anthropic compatible. Runs on your machine.
▶ full video with sound
Start here
Install
That is the entire installation — no account, no API key, no npm install. Now pick your agent below.
Claude Code
Identical on Linux, macOS and Windows.
It starts the proxy if it is not already running, loads every live free Zen model into Claude Code's /model picker, runs Claude Code, and stops the proxy again when you exit. Your existing Claude Code config is never touched.
Any OpenAI-compatible agent
Cline, Roo Code, Continue, Aider, mimo, opencode forks — anything with a baseURL setting.
Confirm the proxy is up:
Run the proxy yourself
It stays up until you stop it, so you point your agent at it once and keep using it. zen-claude does this for you and cleans up after.
What you get
The free-model catalog in models.json is refreshed from OpenCode's public catalog by a GitHub Action every 6 hours.
Why a proxy is needed
OpenCode's free models are served only to the OpenCode CLI itself. Everyone else gets one of:
Since OpenCode 2, the second one is what a non-CLI client sees — with a retry-after window and zero personal usage. It is not your quota: it is the gate's verdict on the request.
zen-proxy sits in front of that gateway and makes your agent's traffic indistinguishable from the CLI's, on three layers — all measured from a byte-capture of a real OpenCode 2.1.4 request.
What it actually changes
Run it with bun (bun zen-proxy.mjs, or through zen-proxy/zen-claude, which pick bun when present): that is the one requirement node cannot substitute away — the gateway 429s node's stack even though headers, sessions and bodies are byte-identical.
For…Details
- Repository
- 12errh/zen-proxy
- Language
- JavaScript
- License
- MIT
- Last updated
- 3 November 2026
- Topics
- aiaiderclaude-codeclinecoding-agentcontinuefree-tierllmsllms-txtnodejsopenaiopenai-compatible
FAQ
What is Zen Proxy?
Use OpenCode Zen's free models in any coding agent. OpenAI + Anthropic compatible, so Claude Code works too. No account, no API key. It is a model router for Claude Code, from 12errh/zen-proxy on GitHub.
How do I install Zen Proxy?
Clone 12errh/zen-proxy from GitHub and follow the setup steps in its README.
Is Zen Proxy popular?
12errh/zen-proxy has 127 GitHub stars and 36 forks. It was last updated on 3 November 2026.
More model routers & proxies
Codex Openai Proxy
144Securiteru/codex-openai-proxy
Proxy server to use ChatGPT Plus tokens with CLINE/Claude Code extensions via OpenAI API compatibility
Cligate
135codeking-ai/cligate
Private AI assistant, AI agent, and unified model proxy for Claude Code, Codex CLI, Gemini CLI & OpenClaw. Skills, MCP, tools, channels, tasks,model routing, accounts, keys, logs, dashboard.
Figaro
154byt3bl33d3r/figaro
Orchestrate fleets of Claude Code & Claude Computer Use agents across containers, VMs, and physical devices. Live desktop streaming, intelligent task delegation, and multi-channel human-in-the-loop gateway. Schedule tasks with self-healing and self-learning.
Claude Code Anymodel
99antonoly/claude-code-anymodel
Use Claude Code with any AI model — proxy tools for OpenRouter, Ollama, and 200+ models
BYOKEY
139AprilNEA/BYOKEY
Turn AI subscriptions into standard API endpoints. OpenAI & Anthropic compatible gateway — for Amp Code, Cursor, Factory CLI, and more.
Antigravity Add Model
117vahapogut/antigravity-add-model
Proxy patch for Google Antigravity that intercepts internal Cloud Code API and adds support for OpenAI, Claude, Ollama, Gemini and any custom LLM provider.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.