bestruirui/octopus

One Hub All LLMs For You | 为个人打造的 LLM API 聚合网关

What it solves

Octopus is an LLM API aggregation service designed for individuals who use multiple AI providers. It eliminates the need to manage multiple API keys and different API formats, providing a unified interface for accessing various models while ensuring high availability through automatic failover.

How it works

The service acts as a proxy between the client and multiple LLM providers. It converts protocols between OpenAI, Anthropic, and Gemini formats and aggregates multiple provider channels into "groups" (unified model names). It also tracks token consumption and costs by syncing pricing data from external sources like models.dev.

Who it’s for

  • Individuals managing multiple LLM API keys across different providers.
  • Developers who want a single, stable endpoint for their AI agents or applications.
  • Users who want to track their total AI spending across different channels.

Highlights

  • Multi-Channel Aggregation: Connect and manage multiple LLM providers in one place.
  • Protocol Conversion: Seamlessly switch between OpenAI and Anthropic API formats.
  • Automatic Failover: Automatically switches to a working channel if an upstream provider fails.
  • Real-Time Visualization: View the complete request path from client to provider in the frontend.
  • Lightweight Deployment: Deploys as a single binary with support for SQLite, MySQL, and PostgreSQL.

Related

  • Project
  • Project
  • Project
  • Project
  • Project