Octopus is a self-hosted large language model API gateway written in Go that centralizes access to multiple AI service providers. It combines different provider channels behind a unified interface and supports conversion between OpenAI and Anthropic API formats. Users can organize available models into groups and expose them through consistent model identifiers. Automatic failover redirects requests when upstream services become unavailable. Integrated analytics track request activity, token consumption, and estimated operational costs. Its web-based management dashboard provides real-time request tracing and automatic model pricing synchronization. The application supports SQLite, MySQL, and PostgreSQL databases alongside standalone executable and Docker deployment options.
Features
- Centralized large language model API aggregation across multiple service providers
- Automatic protocol conversion between OpenAI Chat, OpenAI Responses, and Anthropic APIs
- Configurable model groups with automatic model availability and pricing synchronization
- Automatic upstream service failover with request error interception and recovery mechanisms
- Real-time request tracing, token consumption analytics, and API expenditure monitoring
- Web-based administration dashboard with multiple database backends and Docker deployment