Claude Code model router

Claude Code Provider Proxy

claude-code-provider-proxy

Install

From source
git clone https://github.com/ujisati/claude-code-provider-proxy.git

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

Details

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

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