gpt-load

Self-hosted AI gateway for multi-channel, multi-credential setups — API keys and subscription accounts, scheduling, failover, request logs and usage. 自托管 AI 网关:多渠道多凭据统一接入,含密钥与订阅账号、调度容错、日志与用量。

7.2k
Stars
+965
Gained
15.4%
Growth
Go
Language

💡 Why It Matters

This gateway addresses the complexity of managing multiple AI API providers and credentials behind a single unified endpoint. It consolidates official APIs and compatible relays for OpenAI, Anthropic, Gemini, and others, allowing clients to continue using native protocols without modification. Its built-in scheduling, weighted routing, retries, cooldowns, and blacklisting improve reliability and fault tolerance across various API keys and subscription accounts. The embedded UI with support for SQLite, MySQL, or PostgreSQL offers observability into routing, usage, and cost, which is crucial for teams handling diverse AI model access. With 7,218 stars and recent commits, the project shows active maintenance but limited growth signals, suggesting it is established but not widely adopted yet. It is not suitable if you require a fully managed SaaS or need deep integration with enterprise identity providers, where commercial API management platforms like Kong or Tyk might be more appropriate.

🎯 When to Use

Choose this gateway if you need a self-hosted, multi-channel AI API proxy that supports native OpenAI and Anthropic protocols with flexible credential scheduling and failover. Consider alternatives like OpenAI's own proxy tools or commercial API gateways if your focus is on single-provider setups or require extensive enterprise features beyond AI model routing.

👥 Team Fit & Use Cases

Typically deployed in backend services that aggregate multiple AI providers for applications such as multi-model chatbots, internal RAG search over proprietary data, or platforms requiring cost and usage tracking across AI subscriptions. It suits engineering teams needing centralised control over diverse AI access without rewriting client integrations.

🎭 Best For

🏷️ Topics & Ecosystem

ai-gateway anthropic api-gateway claude claude-code codex gemini gin go golang llm llm-gateway load-balancer openai self-hosted

📊 Activity

Latest commit: 2026-11-29. Over the past 87 days, this repository gained 965 stars (+15.4% growth). Activity data is based on daily RepoPi snapshots of the GitHub repository.