DEV Community

TengLongAI2026
TengLongAI2026

Posted on

CLIProxyAPI 34.7K★: One Proxy to Rule All AI Coding CLIs — Gemini, Claude, Codex, Grok

Summary

CLIProxyAPI (34.7K★, MIT, Go) is a unified proxy for AI coding CLIs. It wraps Gemini CLI, Claude Code, OpenAI Codex, Grok Build, and Antigravity behind a single API endpoint. Use OAuth to log in with your subscription accounts — no API keys needed. Multi-account rotation breaks through single-account quota limits.


The Problem It Solves

CLI Tool Native API Your Pain
Claude Code Anthropic Messages Different format
OpenAI Codex OpenAI Chat Different endpoint
Gemini CLI Gemini Generate Different SDK
Grok Build Grok API Yet another

CLIProxyAPI translates everything to everything.


Architecture

Your Client → CLIProxyAPI (Go, port 8080) → Gemini CLI / Claude Code / Codex / Grok Build


Key Features

Universal API/v1/ accepts OpenAI Chat, Anthropic Messages, and Gemini Generate formats simultaneously.

OAuth Login — Use your Google/ChatGPT/Claude/Grok subscription. Zero API keys needed.

Multi-Account Rotation — Add multiple accounts. Automatic rotation bypasses quota limits.


Why 34.7K★?

Too many AI CLIs, too few unified interfaces. CLIProxyAPI future-proofs your setup.


Quick Start

go install github.com/router-for-me/CLIProxyAPI@latest
cli-proxy-api --port 8080
# Open http://localhost:8080 → OAuth login
Enter fullscreen mode Exit fullscreen mode

Compare: CLIProxyAPI vs One API

Feature CLIProxyAPI (34.7K★) One API (24K★)
Focus AI coding CLIs LLM providers
Auth OAuth (no key) API key
Multi-account Rotation Load balancing
License MIT MIT

Use both: One API for your LLM backend, CLIProxyAPI for your coding agents.


FAQ

Q: Is OAuth safe? A: Yes. Self-hosted. Tokens never leave your machine.

Q: Supports streaming? A: Yes. SSE across all backends.

Q: Multi-account = multi-subscription? A: Yes. Rotation averages out usage.


34.7K★ and growing. One proxy to rule all CLIs.

Top comments (0)