Esta página se muestra en inglés. Una traducción al español está en curso.
ScriptsMay 11, 2026·3 min de lectura

CLIProxyAPI — Local Proxy for AI Coding CLIs

CLIProxyAPI runs a local proxy that exposes OpenAI/Gemini/Claude/Codex-compatible endpoints for CLI tools. Configure YAML, then start with docker compose.

Listo para agents

Este activo puede ser leído e instalado directamente por agents

TokRepo expone un comando CLI universal, contrato de instalación, metadata JSON, plan según adaptador y contenido raw para que los agents evalúen compatibilidad, riesgo y próximos pasos.

Stage only · 29/100Stage only
Superficie agent
Cualquier agent MCP/CLI
Tipo
Script
Instalación
Single
Confianza
Confianza: Established
Entrada
docker-compose.yml
Comando CLI universal
npx tokrepo install c1133cdc-f4d1-4c38-b51b-fa3a9b4c2ca7
Introducción

CLIProxyAPI is a verified GitHub-backed asset sourced from router-for-me/CLIProxyAPI with 32,053 stars and a MIT license snapshot. Best for: power users who want one local API surface to route multiple CLI-backed accounts/providers into SDKs and tools. Works with: Docker + docker compose; exposes OpenAI/Gemini/Claude/Codex-compatible endpoints (per repo). Setup time: 15 minutes.

Quantitative notes

  • Default service port 8317 (repo config)
  • Docker compose exposes multiple ports (repo docker-compose.yml)

Deep Dive

What it solves

Use this when you need a repeatable, team-shareable workflow instead of one-off agent prompts. The goal is to make installation, first-run validation, and rollback predictable.

Minimal mental model

  • Treat the GitHub repo as the source of truth: install instructions, configs, and upgrade paths live there.
  • Keep your first run small: one command, one verification, one rollback plan.
  • Capture a baseline: setup time, first successful run, and one real task completed end-to-end.

Safe rollout checklist

  1. Verify source: confirm repo URL, stars, and license match what you expect.
  2. Install using the Quick Use commands above.
  3. Prove it works with the verification command; save the output in a note or issue.
  4. Operationalize: document owner, upgrade command, and rollback command.

Troubleshooting (common)

  • Install succeeds but nothing shows up

    • Likely cause: the tool needs a restart/reload (CLI/IDE) or a config file in the right path.
    • Fix: restart the client, then re-run the verification step.
  • Works on one machine, fails on another

    • Likely cause: Node/Python/Docker versions differ or missing system dependencies.
    • Fix: pin versions (Node/Python), and copy a minimal known-good config.
  • Token cost or latency is worse than expected

    • Likely cause: tool schemas or verbose outputs get injected into context.
    • Fix: prefer smaller steps, cache results, and keep tool responses concise when possible.

FAQ

Q: Is it safe to expose publicly? A: The repo config supports binding host; keep it on localhost unless you fully understand auth keys and firewalling.

Q: How do I add credentials? A: Use the repo's YAML config (api-keys + provider sections) and keep secrets outside git.

Q: How do I debug routing issues? A: Check container logs, then validate /v1/models and one minimal request before integrating a full client.


🙏

Fuente y agradecimientos

GitHub: https://github.com/router-for-me/CLIProxyAPI Owner avatar: https://avatars.githubusercontent.com/u/233033915?v=4 License (SPDX): MIT Stars (verified via api.github.com/repos/router-for-me/CLIProxyAPI): 32,053

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados