Claude Code model router
Anthropic Proxy Rs
A proxy server that intercepts Anthropic API requests and converts them to OpenAI-compatible format, enabling integration with dozens of inference providers such as OpenRouter, Together.ai, Novita AI, and other third-party API services. Primary use cases include Claude Code and other Claude Agent SDK-based tools.
Install
git clone https://github.com/m0n0x41d/anthropic-proxy-rs.gitFrom the README
anthropic-proxy-rs High-performance Rust proxy that translates Anthropic API requests to OpenAI-compatible format. Use Claude Code, Claude Desktop, or any Anthropic API client with OpenRouter, native OpenAI, or any OpenAI-compatible endpoint. Features - Fast & Lightweight: Written in Rust with async I/O (~3MB binary) - Full Streaming: Server-Sent Events (SSE) with real-time responses - Tool Calling: Complete support for function/tool calling - Universal: Works with any OpenAI-compatible API (OpenRouter, OpenAI, Azure, local LLMs) - Extended Thinking: Supports Claude's reasoning mode - Drop-in Replacement: Compatible with official Anthropic SDKs Quick Start Note: Using Task is currently recommended. Install with brew install go-task (macOS) or see the installation guide. Releases with build binaries will be made soon. Build and install to PATH with task Install with curl This installer uses cargo install --git ... --locked under the hood, so Rust/Cargo still needs to be present on the machine. Run from anywhere Or build and run manually Configuration Command Line Options Commands: Options: Environment Variables Configuration can be set via environment variables or .env file: \* Required if your upstream endpoint needs authentication \*\* The proxy automatically detects when a request has extended thinking enabled (via the thinking parameter in the request) and routes it to REASONING_MODEL. Standard requests without thinking use COMPLETION_MODEL. This allows you to use more powerful models for reasoning tasks and faster/cheaper models for simple completions. If not set, the model from the client request is used. UPSTREAM_BASE_URL accepts any of these forms: - Service base URL: https://api.openai.com -> /v1/chat/completions - Versioned base URL:…
Details
- Repository
- m0n0x41d/anthropic-proxy-rs
- Language
- Rust
- License
- MIT
- Last updated
- 29 May 2026
FAQ
What is Anthropic Proxy Rs?
A proxy server that intercepts Anthropic API requests and converts them to OpenAI-compatible format, enabling integration with dozens of inference providers such as OpenRouter, Together.ai, Novita AI, and other third-party API services. Primary use cases include Claude Code and other Claude Agent SDK-based tools. It is a model router for Claude Code, from m0n0x41d/anthropic-proxy-rs on GitHub.
How do I install Anthropic Proxy Rs?
Clone m0n0x41d/anthropic-proxy-rs from GitHub and follow the setup steps in its README.
Is Anthropic Proxy Rs popular?
m0n0x41d/anthropic-proxy-rs has 94 GitHub stars and 36 forks. It was last updated on 29 May 2026.
More model routers & proxies
Litellm Relay
113LiteLLM-Labs/litellm-relay
Onboard AI tools in one step, and catch the rest. Relay sets up Claude Desktop, Claude Code, and Codex to run through your LiteLLM AI Gateway with zero dev setup and routes shadow AI (Notion AI, Perplexity, …) there too.
Ocgo
100emanuelcasco/ocgo
OCGO Provides an Ollama-style CLI for running Claude Code through an OpenCode Go subscription via a local Anthropic-compatible proxy.
Claude Code Open
70Davincible/claude-code-open
Claude Code with any LLM provider (OpenRouter, Gemini, Kimi K2)
Claude Code Provider Gateway
100danielalves96/claude-code-provider-gateway
The easiest way to use Claude Code with any LLM. Install the app, pick your provider, done.
Cnb2api
92dengyie/cnb2api
Turn CNB cloud-workspace in-network AI into production OpenAI & Anthropic (Claude Code) APIs. Zero deps, v5.2 self-healing HA, quota CLI.
Token Proxy
94mxyhi/token_proxy
Local AI API gateway for OpenAI / Gemini / Anthropic. Runs on your machine, keeps tokens counted (SQLite), offers priority-based load balancing, optional OpenAI Chat↔Responses format conversion, and one-click setup for Claude Code / Codex.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.