m0n0x41d/anthropic-proxy-rs
62 stars · Last commit 2026-05-29
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.
README preview
# 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](https://taskfile.dev) is currently recommended. Install with `brew install go-task` (macOS) or see the [installation guide](https://taskfile.dev/installation/). Releases with build binaries will be made soon. ```bash # Install Rust (if needed)