Self-host CLI2API
v0.7.16OpenAI-compatible API gateway for Qoder and WorkBuddy
- Stars
- 282
- Port
- 3010 (HTTP API and web console)
ghcr.io/caigee-cmd/cli2apiWhat is CLI2API?
CLI2API is a self-hosted gateway that lets you use your own Qoder, WorkBuddy, and Trae accounts through a unified OpenAI-compatible API. It runs via Docker Compose and provides a web console for managing accounts, models, and client keys. The Go gateway routes requests across multiple accounts with session affinity, concurrency limits, and failover. Each Qoder account gets an isolated Node worker while other providers use in-process Go adapters. All credentials are stored in SQLite.
Should you self-host CLI2API?
CLI2API scores 45/100 on selfhost.directory (how scoring works) and ranks #25 of 39 in API Gateway. It has 282 GitHub stars.
It shipped 10 stable releases in the past year. The latest, v0.7.16, came out on 28 October 2026.
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.
Its closest alternative on selfhost.directory is Kong Gateway (82/100, 44 311 stars). It scores higher overall, so compare the two before you pick. See CLI2API vs Kong Gateway side by side.
Features
- Account check-in automationDisabled by default, per-account opt-in
- Anthropic Messages API
- Function Calling
- Managed updatesLive upgrade/rollback acceptance still pending per documentation
- Model listing
- Multi-account routing
- OpenAI Compatible API
- OpenAI Responses API
- SQLite Storage
- Streaming Support
- Web Console
CLI2API README
More in API Gateway
cliproxyapi-cloudflare-stackA deployment template for running an OpenAI-compatible LLM API gateway on your own infrastructure using CLIProxyAPI and Cloudflare services.
Codex LB EnhancedSelf-hosted open-source gateway pooling ChatGPT accounts for Codex clients with transparent failover, session recovery, native quota headers, and a web dashboard.
consulSelf-hosted Consul is a service networking tool for service discovery, service mesh with mTLS, API gateway and health checks across multi-datacenter infrastructure.
ConvoyOpen-source webhooks gateway handling incoming and outgoing events with retries, signatures, fan-out and rate limits; self-host via Docker Compose or Helm chart.
Copilot_ProxySelf-hosted proxy that converts GitHub Copilot API into OpenAI, Anthropic, and Gemini compatible endpoints with a WebUI for multi-account management and token handling.
DreamFactoryDreamFactory is a self-hosted, open-source platform that instantly generates secure REST APIs from any database with RBAC, SSO, and MCP server for AI integration.
FusioSelf-hosted, open-source API management platform: expose databases and services as REST APIs, with developer portal, SDK generation, MCP/AI agents, and monetization.
gatewayLunarGate is a self-hosted, open-source AI gateway exposing an OpenAI-compatible endpoint with multi-provider routing, retries, fallbacks, and circuit breakers.
gemini-web2api-goRun your own OpenAI-compatible endpoint for Google's free Gemini web UI — no API key, no paid tier. Single Go binary or Docker image with dashboard, cookie/proxy pools.
GeoServerSelf-hosted, open-source Java server that publishes and edits geospatial data through OGC standards such as WMS, WFS, WCS and WMTS, from Shapefile to PostGIS.
GetMCPGetMCP is a self-hosted Zero Trust proxy for AI agents that generates MCP servers from OpenAPI specs and enforces per-agent policies with tamper-evident audit logs.
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.
0 comments