v1.0.0
claude-proxy-rs v1.0.0
Unified API proxy that lets AI coding assistants use a Claude Pro/Max subscription via OpenAI-compatible or Anthropic native API formats.
Features
- Dual API format support — OpenAI-compatible (
/v1/chat/completions) and Anthropic native (/v1/messages) endpoints - Admin UI — Vue 3 SPA for managing API keys, models, and usage
- Per-key rate limiting — 5-hour, weekly, and total cost limits with subscription window sync
- Per-model usage tracking — configurable limits and pricing per model
- Usage history charts — cost and token time-series, breakdowns by model and key
- OAuth authentication — Anthropic OAuth 2.0 with PKCE and automatic token refresh
- Request cloaking — fake user IDs, system message injection, tool name prefixing
- Streaming support — SSE stream transformation with keep-alive pings
- Extended thinking — supports thinking/reasoning via model suffixes like
claude-sonnet-4-5(high) - Embedded database — Turso with versioned migrations, no external DB needed
- Single binary — admin UI assets embedded at compile time
Tech Stack
- Rust 2024 edition, Axum, Turso, reqwest, tokio
- Vue 3, TypeScript, Nuxt UI v4, Tailwind CSS v4, Vite