Claude Code model router
y-router
Simple proxy that lets Claude Code work with OpenRouter.
Install
git clone https://github.com/luohy15/y-router.gitFrom the README
y-router ⚠️ ARCHIVED This project is archived. OpenRouter now provides an official integration for Claude Code. You may consider using the official solution: 👉 OpenRouter's Official Claude Code Integration Guide A Cloudflare Worker that translates between Anthropic's Claude API and OpenAI-compatible APIs, enabling you to use Claude Code with OpenRouter and other OpenAI-compatible providers. Note: This worker is suitable for testing models other than Anthropic. For Anthropic models (especially for intensive usage exceeding $200), consider using claude-relay-service for better value. Quick Usage One-line Install (Recommended) This script will automatically: - Install Node.js (if needed) - Install Claude Code - Configure your environment with OpenRouter or Moonshot - Set up all necessary environment variables Manual Setup Step 1: Install Claude Code Step 2: Get OpenRouter API key from openrouter.ai Step 3: Configure environment variables in your shell config (~/.bashrc or ~/.zshrc): Optional: Configure specific models (browse models at openrouter.ai/models): Step 4: Reload your shell and run Claude Code: That's it! Claude Code will now use OpenRouter's models through y-router. Multiple Configurations To maintain multiple Claude Code configurations for different providers or models, use shell aliases: Add these aliases to your shell config file (~/.bashrc or ~/.zshrc), then use c1 or c2 to switch between configurations. GitHub Actions Usage To use Claude Code in GitHub Actions workflows, add the environment variable to your workflow: Set ANTHROPIC_BASE_URL to https://cc.yovy.app in your repository secrets. Example workflows: - Interactive Claude Code - Responds to @claude mentions - Automated Code Review - Automatic PR reviews What it does y-router…
Details
- Repository
- luohy15/y-router
- Website
- cc.yovy.app
- Language
- TypeScript
- License
- MIT
- Last updated
- 11 January 2026
- Listed in
- jqueryscript/awesome-claude-code
FAQ
What is y-router?
Simple proxy that lets Claude Code work with OpenRouter. It is a model router for Claude Code, from luohy15/y-router on GitHub.
How do I install y-router?
Clone luohy15/y-router from GitHub and follow the setup steps in its README.
Is y-router popular?
luohy15/y-router has 383 GitHub stars and 62 forks, and is included in 1 curated Claude Code list. It was last updated on 11 January 2026.
More model routers & proxies
Claude Proxy
214tingxifa/claude_proxy
这是一个部署在 Cloudflare Workers 上的 TypeScript 项目,它充当一个代理服务器,能够将 Claude API 格式的请求无缝转换为 OpenAI API 格式。这使得任何与 Claude API 兼容的客户端(例如官方的 @anthropic-ai/claude-code CLI)都能够与任何支持 OpenAI API 格式的服务进行通信,如 Google Gemini, Groq, Ollama 等。
Claude Code Proxy
199horselock/claude-code-proxy
Uses Claude Code authentication to make direct API calls
Unsnooze
227saaranshM/unsnooze
Automatically resume Claude Code, Codex CLI, Grok, Qwen Code, Kimi CLI, OpenCode, and Antigravity sessions when 5-hour or weekly usage limits reset—across tmux, Zellij, VS Code, and desktop apps.
Agentpool
201phil65/agentpool
A unified agent orchestration hub that lets you configure and manage multiple AI agents (native, ACP, AGUI, Claude Code) via YAML, and exposes them through standardized protocols (ACP/OpenCode Server).
anthropic-proxy
414maxnowack/anthropic-proxy
Converts Anthropic API requests to OpenAI format via OpenRouter so Claude Code can use other models.
Claude Nvidia Proxy
196zhangrr/claude-nvidia-proxy
an Nvidia proxy for claude code
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.