Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

CLIProxyAPI

$ cliproxyapi Community Med Risk
router-for-me · Agent Bridges & Meta · MIT · macos / linux / windows

CLIProxyAPI turns local AI CLI subscriptions (Claude Code, Codex, Gemini CLI, etc.) into an OpenAI-, Anthropic-, and Gemini-compatible HTTP API server with multi-account load balancing. Configured via --config <config.yaml> alongside OAuth login flags (--codex-login, --codex-device-login).

FCRS-1.0 Score
71 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install cliproxyapi
CLI vs MCP Decision CLI Only

cliproxyapi runs as an HTTP API proxy daemon exposing /v1/chat/completions and /v1/messages rather than an interactive CLI or MCP server.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Runs deterministically with --config <config.yaml>, but acts as a long-lived HTTP proxy daemon requiring interactive browser/device OAuth setup first.

  • cliproxyapi --config <config.yaml>, --codex-login, --codex-device-login
Trust & Safety 16 / 25

Supports local API key gating in config.yaml and loopback binding, though proxying consumer CLI OAuth subscriptions carries account ToS and local token-cache exposure risks.

  • OAuth token files in ~/.cli-proxy-api/ and provider subscription wrapping
Setup & Portability 13 / 15

Single Go binary via brew install cliproxyapi, Docker, AUR, and GitHub releases across macOS, Linux, and Windows.

  • Homebrew formula cliproxyapi, Docker, and release binaries
Utility & Efficiency 12 / 15

Exposes multiple coding CLI backends behind one unified OpenAI/Claude/Gemini HTTP endpoint with round-robin fallback.

  • Unified local API endpoint with multi-account load balancing
Maintenance & Lineage 7 / 10

Active community Go project (router-for-me/CLIProxyAPI) under MIT license.

  • router-for-me/CLIProxyAPI MIT repository
Docs & Verifiability 7 / 10

Documented at help.router-for-me.com and GitHub README covering YAML config and OAuth login flows.

  • Docs site help.router-for-me.com and GitHub README

Security, Auth & Guardrails

Auth Modes
OAuth Browser Config File Env API Key
Credential Storage

Stores upstream OAuth tokens in ~/.cli-proxy-api/ and reads gateway config/API keys from config.yaml (or /opt/homebrew/etc/cliproxyapi.conf).

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT open-source proxy; routes requests through your existing AI CLI/API subscriptions.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# CLIProxyAPI Agent Rules
- Run `cliproxyapi` as a background service (`brew services start cliproxyapi`) rather than blocking an agent shell turn.
- Restrict `config.yaml` bind address to `127.0.0.1` and protect local `api-keys`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect CLIProxyAPI flags and login modes
cliproxyapi --help

Displays --config and provider OAuth login flags without starting the HTTP server.

Controlled Writes & Previews

Start local unified API proxy with custom YAML config
cliproxyapi --config ~/.cli-proxy-api/config.yaml

Launches the local OpenAI/Claude/Gemini-compatible proxy gateway using explicit routing and auth settings.

Strengths for Agents

  • + Unifies Codex, Claude, and Gemini CLI backends behind standard OpenAI/Anthropic/Gemini HTTP APIs.
  • + Supports headless --codex-device-login as well as desktop browser OAuth.

Caveats & Pitfalls

  • ! Wrapping consumer CLI OAuth sessions as an HTTP API may violate upstream provider Terms of Service.
  • ! Runs as a blocking HTTP daemon; has no one-shot --json CLI query commands.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI