One API

Stale
GitHub JavaScript MIT

Description

One API is an LLM API management and redistribution system that unifies OpenAI, Azure, Anthropic Claude, Google Gemini, DeepSeek, and more under a single API. Supports key management, redistribution, and one-click Docker deployment.

Key Features

  • Unified API format — Wraps 20+ LLM providers (OpenAI, Azure, Claude, Gemini, DeepSeek, etc.) into standard OpenAI API format
  • Load balancing & multi-channel — Configure multiple channels per model with automatic load balancing and failure retry
  • Token & quota management — Token expiry, quota limits, IP whitelist, model access control, and batch code generation
  • User & group system — User registration via email/GitHub/Feishu/WeChat, user groups and channel groups with independent rate multipliers
  • One-click Docker deploy — Docker image with SQLite or MySQL backend options, supports multi-node deployment
  • Streaming & image generation — Stream mode for typewriter effect, supports DALL-E and other image generation APIs

Use Cases

💡 Unified LLM API gateway — Provide a single LLM API entry point for teams, abstracting away differences between providers
💡 API key redistribution — Manage multiple keys with independent quotas and access permissions per user or project
💡 Cost control & monitoring — Monitor and control LLM API costs via token quotas and channel rate multipliers
💡 Multi-model redundancy — Configure multiple channels per model for automatic failover when a provider goes down

Strengths & Limitations

Strengths

  • High community interest (36.7k stars)
  • Permissive open-source license (MIT)
  • Established track record (3 years in production)

⚠️ Limitations

  • No updates in over 7 months

Quick Start

docker run --name one-api -d --restart always -p 3000:3000 -e TZ=Asia/Shanghai -v /home/ubuntu/data/one-api:/data justsong/one-api

Related Projects

New API

47.2k · Go
Active A

New API is a unified AI model hub for aggregation and distribution, supporting cross-conversion of various LLMs into OpenAI, Claude, or Gemini-compatible formats. A centralized gateway for personal and enterprise model management.

api-gatewayai-gatewayopenai +4
  • · Multi-model protocol conversion — Cross-convert various LLMs into OpenAI, Claude, Gemini-compatible formats through a unified API
  • · Organization-level billing — Per-request, usage-based, and cache-hit billing for OpenAI, Azure, DeepSeek, Claude, Qwen supported models
  • · Channel management & load balancing — Multi-channel management, auto failover, API key rotation for high-availability model calls

Deep Research

4.7k · JavaScript
Normal A

Deep Research enables deep research using any LLM provider, offering SSE API and MCP server support with OpenAI, Gemini, DeepSeek, Ollama, and more.

deep-researchllmmcp-server +3
  • · Rapid deep research report generation in approximately 2 minutes using advanced AI models
  • · Multi-LLM support including Gemini, OpenAI, Anthropic, Deepseek, Grok, and Ollama
  • · Privacy-focused local data processing and storage with no server-side data retention

open-multi-agent

6.9k · TypeScript
Active A+

From a goal to a task DAG, automatically. TypeScript-native multi-agent orchestration with MCP and live tracing. Three runtime dependencies.

agent-frameworkai-agentsanthropic +5
  • · Goal-driven coordinator: a single runTeam() call decomposes goals into a task DAG and executes it automatically
  • · Mix any LLM providers in one team: 12 built-in providers plus any OpenAI-compatible endpoint (Ollama, vLLM, Groq, etc.)
  • · Extended thinking / reasoning support across Anthropic, Gemini, and OpenAI with cross-provider reasoning preservation

Open Cowork

2.1k · TypeScript
Normal B

Open-source AI agent desktop app for Windows and macOS with one-click install of Claude Code, MCP tools, and Skills, featuring sandbox isolation, multi-model support, and Feishu/Slack integration.

typescriptagentmcp +4
  • · Open-source AI agent desktop app with one-click install for Windows and macOS — no coding required
  • · VM-level sandbox isolation: WSL2 on Windows, Lima on macOS for secure command execution
  • · Built-in Skills system for generating PPTX, DOCX, XLSX, and PDF documents automatically