by kittors
Self-hosted AI gateway for coding CLIs — one OpenAI/Claude/Gemini/Codex-compatible endpoint, with a multi-tenant web console, request logs, and spend quotas.
# Add to your Claude Code skills
git clone https://github.com/kittors/CliRelayGuides for using cli tools skills like CliRelay.
Last scanned: 8/5/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-05T06:27:13.017Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how CliRelay compares with popular alternatives.
CliRelay is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by kittors. Self-hosted AI gateway for coding CLIs — one OpenAI/Claude/Gemini/Codex-compatible endpoint, with a multi-tenant web console, request logs, and spend quotas. It has 1,048 GitHub stars.
Yes. CliRelay passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/kittors/CliRelay" and add it to your Claude Code skills directory (see the Installation section above).
CliRelay is primarily written in Go. It is open-source under kittors on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh CliRelay against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
A heavily extended fork of CLIProxyAPI, rebuilt around a production management layer, a web control panel and day-2 operations.
CliRelay turns AI CLI subscriptions, OAuth credentials, provider API keys and OpenAI-compatible upstreams into one managed API layer. Clients talk to a single endpoint using the OpenAI, Anthropic or Gemini protocol; CliRelay authenticates them with its own client keys, picks a healthy upstream account, translates the request when needed, and records what happened.
It is built to be run by a team. Tenants keep their accounts, keys and data apart; users get roles with fine-grained permissions; every security-sensitive change lands in an audit log; and portal accounts let end users hold several API keys and check their own usage without asking an admin.
PostgreSQL 15+ is the source of truth for runtime data. Redis 7+ holds caches, locks, rate limits, queues and other rebuildable state.
| 🔌 One endpoint, every provider | Claude, Codex, Gemini CLI, Antigravity, Vertex, Bedrock, xAI/Grok, Qwen, Kimi, iFlow, OpenCode Go, ClinePass, Ollama Cloud, Command Code and any OpenAI-compatible upstream behind http://your-host:8317, speaking OpenAI Chat / Responses, Anthropic Messages and Gemini. |
| 🧭 Routing that survives bad days | Channel groups and custom paths decide where traffic may go; round-robin, fill-first and session-sticky scheduling spread it; cooldowns and automatic failover move it off exhausted or failing accounts. |
| 📈 See everything | A monitor center with a health score, per-minute live traffic, P50–P99 latency and time to first token, failure analysis and a portal user → model → channel traffic flow, plus a searchable log of every request with tokens, latency and cost. |
| 💳 Control spend | Client keys grouped under portal accounts, reusable permission profiles, daily / period / lifetime quotas, RPM and TPM limits, per-model pricing and one-click period resets. |
| 🏛️ Built for teams | Tenants, users, roles, resource.action permissions, a curated menu per tenant and an audit trail for security-sensitive changes. |
| 🖥️ Operate from the browser | A /manage control panel to add accounts with guided sign-in or credential import, edit config visually, manage models and pricing, and check for updates — in English, Simplified Chinese and Russian. |
flowchart LR
subgraph clients["Your tools"]
cc["Claude Code"]
cx["Codex CLI"]
gc["Gemini CLI"]
oa["Any OpenAI-compatible client"]
end
subgraph relay["CliRelay :8317"]
auth["Client key<br/>portal account · permission profile"]
quota["Quotas & rate limits"]
route["Channel group routing<br/>scheduling · cooldown · failover"]
exec["Provider executors<br/>protocol translation"]
auth --> quota --> route --> exec
end
subgraph upstreams["Upstream accounts"]
oauth["OAuth accounts<br/>Claude · Codex · Gemini · Antigravity · Grok · Qwen · Kimi · iFlow"]
keys["Provider keys<br/>OpenAI-compatible · Vertex · Bedrock · OpenCode Go · ClinePass · Ollama Cloud"]
end
clients --> auth
exec --> oauth
exec --> keys
relay -. "request logs, usage rollups" .-> pg[("PostgreSQL")]
relay -. "cache, locks, limits" .-> rd[("Redis")]
The control panel (kittors/codeProxy) is served by CliRelay at /manage. The screenshots below follow its own navigation and were taken from a live deployment; names, keys, addresses and accounts are replaced with sample values.
| Monitor center — traffic and reliability over time | Monitor center — rankings, traffic flow and active hours |
|---|---|
| Dashboard | Request logs |
|---|---|
| Model performance, channel health and portal users | Dark theme |
|---|---|
| Add an AI account | Import credentials you already hold |
|---|---|
| AI accounts | AI providers |
|---|---|
| Portal accounts | Portal account permissions |
|---|---|
| < |