Claude Code model router

Claude Code Proxy

Proxy that translates between the Anthropic API and OpenAI-compatible APIs, so Claude Code can run against other models.

Install

Install
npx @kiyo-e/claude-code-proxy

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/kiyo-e/claude-code-proxy.git

From the README

Claude Code Proxy

A proxy service that translates between Anthropic's Claude API format and OpenAI-compatible API formats. Built with Hono framework on Bun runtime, deployable to Cloudflare Workers, Docker, or as a standalone CLI.

Features

- API Translation: Seamless format conversion between Claude and OpenAI APIs
- Message Normalization: Handles nested content arrays and tool call mapping
- Streaming Support: Both streaming and non-streaming response handling
- Multiple Deployment Options: Cloudflare Workers, Docker, or npm package
- CLI Interface: Standalone executable with version and help flags
- Model Routing: Dynamic model selection for reasoning vs completion tasks

Installation & Usage

NPM Package (Recommended)

Global Installation

On-demand Execution (npx/bunx)
You can also run the proxy without installation:

Using with Claude Code

Docker (Quick Start)

Environment File Configuration

Cloudflare Workers

After deployment, your proxy will be available at https://your-worker-name.your-subdomain.workers.dev

Using with Claude Code

Complete Setup Example

1. Deploy the proxy:

2. Set environment variables:

3. Test the deployment:

4. Use with Claude Code:

Development

Local Development

Build and Publish

Configuration

Environment Variables

- CLAUDE_CODE_PROXY_API_KEY - Bearer token for upstream API
- ANTHROPIC_PROXY_BASE_URL - Upstream API URL (default: https://models.github.ai/inference)
- REASONING_MODEL - Model for reasoning requests (default: openai/gpt-4.1)
- COMPLETION_MODEL - Model for completion requests (default: openai/gpt-4.1)
- REASONING_MAX_TOKENS - Max tokens for reasoning model (optional)
- COMPLETION_MAX_TOKENS - Max tokens for completion model (optional)
- REASONING_EFFORT - Reasoning effort level for reasoning model (optional, e.g.,…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
25 September 2025
Topics
anthropicclaude-codecloudflare-workershonoopenaiproxy

FAQ

What is Claude Code Proxy?

Proxy that translates between the Anthropic API and OpenAI-compatible APIs, so Claude Code can run against other models. It is a model router for Claude Code, from kiyo-e/claude-code-proxy on GitHub.

How do I install Claude Code Proxy?

Run npx @kiyo-e/claude-code-proxy, then follow the setup in the README.

Is Claude Code Proxy popular?

kiyo-e/claude-code-proxy has 67 GitHub stars and 16 forks. It was last updated on 25 September 2025.

More model routers & proxies

AegisGate

71

ax128/AegisGate

Open-source security gateway for LLM APIs — prompt injection detection, PII redaction, dangerous response sanitization, and audit logging. OpenAI/Claude compatible, MCP & Agent SKILL support. Drop-in proxy for AI coding agents (Cursor, Claude Code, Codex).

Model routers & proxies11

CC Simplerouter

83

kdsuomi/cc-simplerouter

Install and setup in 26 seconds. Simplerouter configures Claude Code to use any compatible OpenRouter model in seconds, WITHOUT manual editing of config files, environment variables, or messing with local webservers/webUIs. It also doesn't overwrite your existing Claude Code subscription sign-in!

Model routers & proxies

Opendray

69

Opendray/opendray

Self-hosted gateway for Claude Code, Codex, Antigravity, Grok Build, OpenCode. Run AI coding agents on your own infra with a shared local-first memory layer. Drive from web, mobile, Telegram / Slack / Discord / Feishu / DingTalk / WeCom. Open REST + WebSocket API. Apache 2.0.

Model routers & proxies14

Claude Code Helper

82

xqnode/claude-code-helper

Windows tray proxy: route Claude Code desktop (Code + Cowork) to DeepSeek, Qwen, and other domestic LLM APIs.

Model routers & proxies

Claude CLI

77

codingauto/claude_cli

Claude Code Proxy 是一个 完全开源 的住宅代理服务,为 Claude / Anthropic API 等 AI 服务提供稳定、持久、难以被检测的住宅 IP 访问能力,支持多代理供应商与企业级防风控功能。

Model routers & proxies

HydraTeams

67

Pickle-Pixel/HydraTeams

Translation proxy that makes Claude Code Agent Teams model-agnostic. Any model as a teammate — GPT, Gemini, Ollama — with full Claude Code tooling.

Model routers & proxies14

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