Self-host CLIProxyAPI
v8.0.61OpenAI/Gemini/Claude-compatible API proxy for CLI models
docker run --rm -p 8317:8317 -v /path/to/your/config.yaml:/CLIProxyAPI/config.yaml -v /path/to/your/auth-dir:/root/.cli-proxy-api -v /path/to/your/plugins-dir:/CLIProxyAPI/plugins eceasy/cli-proxy-api:latest- Stars
- 57 953
- Port
- 8317 (main server endpoint)
eceasy/cli-proxy-apiWhat is CLIProxyAPI?
CLIProxyAPI is a proxy server that wraps Kimi Code, OpenAI Codex, Claude Code, Grok Build, Anthropic Claude, Google Gemini/Antigravity, Meta Muse, and Devin behind OpenAI/Gemini/Claude-compatible API interfaces. Users can connect local coding agents through any of these SDKs while accessing their own multi-account pools via OAuth flows built into the proxy. The software handles token management, quota tracking, round-robin load balancing across accounts, session affinity, and model routing. It runs as a lightweight binary or in a Docker container, requires only a YAML configuration file, and optionally persists request history to SQLite. The project uses an MIT license and ships with Go SDK documentation for embedding the proxy in custom applications.
CLIProxyAPI alternatives
Coddy AgentSelf-hosted, open-source AI agent harness with terminal TUI, web UI, ACP for editors, Telegram gateway, cron scheduler, and swarm relay in a single Go binary.CompareCoddy Agent with CLIProxyAPI
profclawRun AI agents on your hardware with this open-source engine. 35 model providers, 72 tools, 22 chat services. Three sizes from tiny to full-featured.Compareprofclaw with CLIProxyAPI
ChatGPT Next WebSelf-hosted, open-source AI chat UI for OpenAI, Claude, Gemini, DeepSeek and many other providers, with Docker, Vercel and native desktop/mobile clients.CompareChatGPT Next Web with CLIProxyAPI
AgenvoySelf-hosted AI agent running locally, auto-generates tools, shares via MCP with Claude Code and Codex, keeps data private.CompareAgenvoy with CLIProxyAPI
VeridropSelf-hosted, open-source tool that probes Claude, OpenAI and Gemini API relay endpoints to expose swapped models, stripped features and bogus token billing.CompareVeridrop with CLIProxyAPI
claude-code-aws-gatewaySelf-hosted proxy giving teams complete Claude Code capabilities via their AWS Bedrock accounts, with budgets, SSO, and analytics.Compareclaude-code-aws-gateway with CLIProxyAPI
Weave RouterOpen-source LLM model router for coding agents like Claude Code, Codex, and Cursor; self-hosted with Docker Compose, it picks the cheapest capable model per request.CompareWeave Router with CLIProxyAPI
GoModelThis open-source, self-hosted AI gateway in Go unifies 34 LLM providers behind OpenAI-style and Anthropic-style APIs, adding budgets, caching, routing and audit logs.CompareGoModel with CLIProxyAPI
Should you self-host CLIProxyAPI?
CLIProxyAPI scores 50/100 on selfhost.directory (how scoring works) and ranks #81 of 167 in Developer Tools. It has 57 953 GitHub stars, +2 129 in the last 30 days.
It shipped 35 stable releases in the past year. The latest, v8.0.61, came out on 8 November 2026. New versions land roughly every 1 days.
An official Docker image is available. It is MIT-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is openhands (87/100, 92 941 stars). It scores higher overall, so compare the two before you pick. See CLIProxyAPI vs openhands side by side.
Features
- Claude-compatible API
- Function Calling
- Gemini-compatible API
- Multi-account load balancing
- Multimodal input
- OAuth LoginCodex, Claude Code, Grok Build, Kimi, Antigravity, Meta Muse
- OpenAI Compatible API
- Session affinity
- Streaming Responses
CLIProxyAPI README
If you want to use CLIProxyAPI on your desktop, we recommend our EasyCLIProxyAPI desktop client. It provides a graphical configuration UI, automatic updates, system tray integration, and one-click start/stop for the CLIProxyAPI service.
CLIProxyAPI is a proxy server that provides OpenAI/Gemini/Claude/Codex/Grok compatible API interfaces for CLI.
You can access the following providers locally and with multiple CLI accounts through any OpenAI (including Responses), Gemini (including Interactions), or Claude-compatible client or SDK.
More in Developer Tools
cliproxyapi-cloudflare-stackA deployment template for running an OpenAI-compatible LLM API gateway on your own infrastructure using CLIProxyAPI and Cloudflare services.
CloakBrowserSelf-hosted stealth Chromium with source-level fingerprint patches passing 50+ bot detection tests. Drop-in Playwright replacement plus Pro tier for latest builds.
clodfarmclodfarm is a self-hosted, open-source orchestration layer for Claude Code that runs agents 24/7, splits work into visible sub-agents, and paces them on real usage limits
cloudflare-ddnsSelf-hosted Dynamic DNS client that updates Cloudflare DNS records with your public IP for custom domain access without a static IP.
cloudmacsSelfhost your Emacs and access it in browser
Cloudroom coreSelf-hosted Rust service running AI coding agents like Claude Code and Codex in isolated Linux sandboxes with HTTP API and session history.- CMS Made SimpleA flexible, open-source content management system (CMS) for building and managing websites, designed for ease of use by editors, designers, and developers.
cmuxOpen-source, self-hosted macOS terminal built on libghostty: vertical tabs, agent attention rings, split panes, a scriptable browser pane, and a CLI plus socket API.
CoastsFree open-source tool for running multiple isolated development runtimes on localhost using Git worktrees. Enables parallel agent execution without cloud dependencies.
Coddy AgentSelf-hosted, open-source AI agent harness with terminal TUI, web UI, ACP for editors, Telegram gateway, cron scheduler, and swarm relay in a single Go binary.
CodeGeeXCodeGeeX: An Open Multilingual Code Generation Model (KDD 2023)
code-indexcix (CodeIndeX) is a self-hosted semantic code search platform using BM25 and embeddings via llama.cpp. Runs as a Go server with dashboard, CLI, and agent integrations.
0 comments