Claude Code model router

y-router

Simple proxy that lets Claude Code work with OpenRouter.

383 stars 62 forksModel routers & proxiesArchived Source

Install

From source
git clone https://github.com/luohy15/y-router.git

From 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…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
11 January 2026

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

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.