Claude Relay Service proxies Claude, OpenAI Codex, Gemini, and related clients through your own server. It supports multiple accounts, per-user API keys, usage stats, and a web admin panel.
Overview
Claude Relay Service is a relay you run on infrastructure you control so tools such as Claude Code, Gemini CLI, Codex CLI, and third-party apps can call upstream AI APIs through one gateway. The stated goals include avoiding third-party mirror operators, sharing subscription costs among trusted users, and keeping request traffic on your own machine while talking directly to provider APIs where possible.
Core capabilities include pooling several Claude or related accounts with automatic rotation when one fails, issuing separate API keys per user, detailed token usage tracking, rate and concurrency limits, optional client restrictions by User-Agent, HTTP or SOCKS5 proxy support, and a browser-based dashboard for monitoring. OAuth-based Claude account linking is part of setup, and routing prefixes select account types for Claude, Gemini, Codex, and Droid-style endpoints.
Deployment options described include an interactive install script for Linux and macOS, manual Node.js and Redis setup, and Docker Compose with persisted data and bundled Redis. Requirements mention Node.js 18+, Redis 6+, and modest CPU and memory. Reverse-proxy examples cover Caddy and Nginx Proxy Manager for HTTPS in production.
Key features
- Multi-account automatic rotation
- Per-user API key issuance
- Token usage statistics
- Web monitoring dashboard
- Rate and concurrency limits
- Client User-Agent restrictions
- HTTP and SOCKS5 proxy support
- Docker Compose deployment
Use cases
- Shared Claude Code subscription among friends
- Private alternative to public API mirrors
- Unified gateway for Claude and Gemini CLIs
- Third-party chat apps via standard APIs
- Cost tracking per API key user