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

One API — Unified LLM API Gateway (Docker)

One API is a self-hosted LLM API gateway: unify OpenAI/Claude/Gemini/DeepSeek endpoints, manage keys, and deploy via Docker in minutes (33.7k★).

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
Bundle
Confianza
Confianza: Established
Entrada
docker run --name one-api -d --restart always -p 3000:3000 justsong/one-api
Comando CLI universal
npx tokrepo install 65f4b9a7-d932-51b8-aa22-6f0ff7cff276
Introducción

One API is a self-hosted LLM API gateway: unify OpenAI/Claude/Gemini/DeepSeek endpoints, manage keys, and deploy via Docker in minutes (33.7k★).

Best for: Developers who want one endpoint for multiple providers, with centralized key management and predictable routing for agents

Works with: Docker (recommended), optional MySQL, and downstream clients that can point to a single OpenAI-compatible base URL

Setup time: 10-30 minutes

Main

  • Multi-provider gateway: positioned as a unified API layer for many model providers, so agents can talk to “one base URL” instead of custom clients per vendor.
  • Docker-first deployment: the README provides runnable docker run commands (SQLite and MySQL variants) and a Compose option.
  • Operational knobs: documents env vars and multi-node notes (session secret, sync frequency, Redis) for production-ish usage.
  • Good for agent fleets: centralizes key/quotas so you can rotate credentials without touching every agent or tool.

FAQ

  • Do I need MySQL?: No. The README shows an SQLite-based docker run; use MySQL when you need multi-node or stronger persistence.
  • How do I upgrade safely?: The README suggests a watchtower-based update command; test on a staging instance first.
  • What is the first integration?: Point one client at the gateway base URL and verify a single model call before migrating everything.
🙏

Fuente y agradecimientos

Source: https://github.com/songquanpeng/one-api > License: MIT > GitHub stars: 33663 · forks: 6429

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