Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsMay 14, 2026·2 min de lecture

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★).

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Stage only · 29/100Stage only
Surface agent
Tout agent MCP/CLI
Type
Script
Installation
Bundle
Confiance
Confiance : Established
Point d'entrée
docker run --name one-api -d --restart always -p 3000:3000 justsong/one-api
Commande CLI universelle
npx tokrepo install 65f4b9a7-d932-51b8-aa22-6f0ff7cff276
Introduction

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.
🙏

Source et remerciements

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires