Self-host CliRelay
v0.5.9AI gateway for coding CLIs with multi-tenant control panel
- Stars
- 1 044
- Ports
- 8317 (API and control panel), 8085 (Management API (localhost only)), 1455 (Internal service (localhost only)), 54545 (Internal service (localhost only)), 51121 (Internal service (localhost only)), 11451 (Internal service (localhost only))
- Requires
- PostgreSQL, Redis
ghcr.io/kittors/clirelayWhat is CliRelay?
CliRelay is a self-hosted AI gateway that consolidates your AI coding subscriptions and API keys behind a single endpoint compatible with OpenAI, Claude, Gemini, and Codex clients. It provides a multi-tenant web console at /manage for adding upstream accounts through OAuth sign-in, credential import, or API keys. You can manage client keys with spending quotas and rate limits, route requests across channel groups with automatic failover, and view detailed request logs showing token usage and cost. The proxy handles translation between OpenAI Chat/Responses, Anthropic Messages, and Gemini protocols. It requires PostgreSQL 15+ for persistent data and Redis 7+ for caches, locks, and rate limits. Deployment uses Docker Compose, which also runs an updater sidecar for in-panel updates. The project extends CLIProxyAPI with a management layer, control panel, and operational features.
Should you self-host CliRelay?
CliRelay scores 51/100 on selfhost.directory (how scoring works). It has 1 044 GitHub stars.
It shipped 10 stable releases in the past year. The latest, v0.5.9, came out on 11 October 2026. New versions land roughly every 2 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Go.
Features
- Automatic failover and routing
- In-panel updates
- Protocol translation
- Request logging and monitoring
- Spend quotas and rate limits
- Terminal UI
- Web Control Panel









0 comments