Claude Code model router
Claude Code Provider Proxy
claude-code-provider-proxy
Install
git clone https://github.com/ujisati/claude-code-provider-proxy.gitFrom the README
Claude Code Provider Proxy
A proxy service that allows Anthropic API requests (especially from Claude Code to be routed through an OpenAI-compatible URL to access alternative models.
Table of Contents
- Overview
- Example
- Getting Started
- Prerequisites
- Misc
- Known Working Models
- License
Overview
Claude Proxy provides a compatibility layer between Claude Code and alternative models available through OpenRouter.ai or your chosen base URL. It dynamically reroutes LLM requests from Claude Code to the providers you want to use.
Key features:
- FastAPI web server exposing Anthropic-compatible endpoints
- Format conversion between Anthropic and OpenAI requests/responses
(see mapping for translation details)
- Support for both streaming and non-streaming responses
- Dynamic model selection based on requested Claude model
- Detailed request/response logging
- Token counting
Example
Getting Started
It is recommended to use docker, using uv is recommended for development only.
Prerequisites
- Claude Code installed (as of July 2025 the proxy is tested on version 1.0.56, which you can install with npm install -g @anthropic-ai/claude-code@1.0.56)
- An OpenRouter API key
- *Optional if you don't want to use docker*
- *Python 3.10+*
- *uv*
1. Download the repo: git clone https://github.com/ujisati/claude-code-provider-proxy/
2. Either modify the environment: in docker-compose or create a .env file at the root of the repo with for example:
A list of known working models can be found at the bottom of that README.md.
For more configuration options, see the Settings class in src/main.py.
*Note: you can use environment variables instead of an .env file, but note that any value of the .env file that is also present in the environment will be overwritten…Details
- Repository
- ujisati/claude-code-provider-proxy
- Language
- Python
- License
- MIT
- Last updated
- 30 July 2025
FAQ
What is Claude Code Provider Proxy?
claude-code-provider-proxy It is a model router for Claude Code, from ujisati/claude-code-provider-proxy on GitHub.
How do I install Claude Code Provider Proxy?
Clone ujisati/claude-code-provider-proxy from GitHub and follow the setup steps in its README.
Is Claude Code Provider Proxy popular?
ujisati/claude-code-provider-proxy has 146 GitHub stars and 27 forks. It was last updated on 30 July 2025.
More model routers & proxies
Notion Manager
138SleepingBag945/notion_manager
Local account pool, dashboard & Anthropic-compatible API proxy for Notion AI. Claude Code compatible. Built with Go + React. 本地 Notion AI 多账号池管理与 API 代理工具,兼容 Claude Code,提供配额监控、Web 反向代理与 Anthropic 兼容接口。
Clipal
158PAIArtCom/Clipal
Minimal LLM API reverse proxy for Claude Code, Codex CLI & Gemini CLI — YAML routing, hot reload, and automatic provider failover. 极简 LLM API 反向代理:面向 Claude Code / Codex CLI / Gemini CLI,支持 YAML 配置、多上游优先级与自动故障转移。
Codex Proxy
164XxxXTeam/codex-proxy
Codex API 代理服务,提供 OpenAI / Claude 多协议兼容接口 用户交流群 : 1081291958
Edgee
142edgee-ai/edgee
Official Edgee CLI to interract with Edgee's Agent Gateway. Route Claude Code, Codex, Cursor, VS Code + Copilot, and more through Edgee's hosted gateway to cut token spend.
Opencode2api
1486Kmfi6HP/opencode2api
OpenCode zen/go to OpenAI Codex/Anthropic Claude Code API proxy
BYOKEY
139AprilNEA/BYOKEY
Turn AI subscriptions into standard API endpoints. OpenAI & Anthropic compatible gateway — for Amp Code, Cursor, Factory CLI, and more.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.