← Back to Leaderboard
Gtbphp

tbphp/gpt-load

Self-hosted Go gateway for routing LLM traffic across providers and credentials

Engineering Health (Methodology)
A+ · 95/100
Maintenance Activity
● Updated yesterday
Latest Release
v2.0.0-rc.69
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption20/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedAPI
Total Stars
★ 7,248
24h Growth
+1
7d Growth
+6
Forks
799

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

tbphp/gpt-load Star History (2025-06-07 - 2026-12-04) ALL-TIME STAR HISTORY (2025-06 – 2026-12) +7.2k in 545d · avg +13/day 7.7k 3.8k 0 2025-06-07: ★ 12025-07-12: ★ 1,4112025-08-16: ★ 3,3552025-09-20: ★ 4,6352025-10-25: ★ 4,9932025-11-29: ★ 5,2042026-01-03: ★ 5,3532026-02-07: ★ 5,5492026-03-14: ★ 5,7012026-04-18: ★ 5,8842026-05-23: ★ 6,0012026-06-27: ★ 6,0692026-08-01: ★ 6,1302026-09-05: ★ 6,4512026-10-10: ★ 7,0012026-11-13: ★ 7,1862026-12-04: ★ 7,248 ★ 7.2k 2025-06 2026-03 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

GPT-Load is a self-hosted Go gateway with Gin in its dependency stack and an embedded management console. A request enters through a client-protocol endpoint with a gateway AccessKey. The key limits which groups and protocols the client can use; the group defines available models and runtime policy for a channel, and the gateway selects an upstream credential from that channel. This separates application access from provider credentials, so operators can change upstream credentials without reconfiguring every client.

Bifrost Core supports provider authentication, request and response conversion, streaming, and usage normalization. CLIProxyAPI handles OAuth and execution for subscription channels. GPT-Load itself owns encrypted credential storage, account selection, retries, health, affinity, logging, and usage policy. The integration surface is a set of built-in channels and a custom OpenAI-compatible upstream option; the client protocol and the upstream channel are separate configuration decisions.

Key Capabilities & Differentiators

The endpoint surface goes beyond chat. It includes OpenAI Chat Completions and Responses, Anthropic Messages, Gemini model and embedding routes, plus dedicated routes for images, embeddings, reranking, speech, and Mistral OCR and transcription. Built-in channels cover official APIs, Azure OpenAI, AWS Bedrock, Google Vertex AI, services such as DeepSeek and OpenRouter, and Codex, Claude, Antigravity, and Grok subscription accounts. The endpoint list is not a guarantee that every upstream supports every operation; validate the protocol, model, and channel combinations your clients actually use.

Multiple credentials can be scheduled with configurable weights. Retries, cooldown, and blacklisting help isolate failures, while session affinity keeps related requests on the same credential. The console exposes routing, health, request logs, and usage, including token categories, cache hit rates, and cost estimates. Those estimates are useful for tracking trends, not as replacements for provider invoices.

Trade-offs & Limitations

Compared with calling the OpenAI API directly, GPT-Load gives teams one place to manage access, credentials, routing, and usage, at the cost of an additional network hop and another service to operate. If only one upstream and one credential policy are needed, direct integration is simpler. The gateway does not run model inference or make upstream access available offline. Size it for concurrent requests, open streams, and log and database growth rather than model VRAM, and benchmark with the traffic you intend to serve.

Local credential encryption shifts key custody to the operator. Back up the database and encryption.key together: replacing or losing the key makes existing encrypted credentials unrecoverable, and master key rotation is not supported in this version. Treat OAuth as another operational dependency, and verify upstream terms before using subscription accounts for shared traffic. The gateway's MIT license does not grant rights to upstream services; bundled dependencies also have their own notices.

Hardware & Deployment Guide

The provided Compose setup uses ghcr.io/tbphp/gpt-load:2, publishes HTTP on 127.0.0.1:3001 by default, and checks /health. It persists application-managed SQLite, auth.key, and encryption.key in the gpt-load-data volume at /app/data. DATABASE_DSN supports external MySQL or PostgreSQL; portable binaries are also available. The main listener and fixed OAuth callback ports (1455, 54545, 51121) have separate host bind overrides. Those fixed mappings conflict if you run two default Compose instances on one host.

The supplied release history lists v2.0.0-rc.69 as a release candidate that adds HTTPS forward-proxy support. The :2 image tracks verified beta and RC builds before GA; latest remains on 1.x. Pin an exact image tag for reproducible rollouts. The 2.x rewrite cannot open or import 1.x data: deploy it alongside 1.x with a fresh database and encryption.key, a separate data directory and volume, and non-conflicting ports. Verify client behavior before cutover and keep 1.x available for rollback.

Access scope: A channel holds upstream credentials, a group defines model and runtime policy, and an AccessKey grants access by group and client protocol.
Credential scheduling: API keys and supported OAuth subscriptions share weighted selection, retry, cooldown, blacklisting, and session affinity.
Adapter boundaries: Bifrost Core handles provider protocol mechanics; CLIProxyAPI handles subscription OAuth and execution; GPT-Load owns scheduling and health policy.
Protocol coverage: The gateway exposes OpenAI Responses, Anthropic Messages, Gemini embeddings, Mistral OCR and transcription, and other dedicated routes.
Operational visibility: The embedded console shows request logs, routing and health, token categories, cache hit rates, and estimated costs.
Recovery constraint: Back up the database with encryption.key; 2.x requires fresh state rather than an in-place upgrade from 1.x.
Best For

Teams that need one managed endpoint for multiple LLM providers or credentials, with scoped client access, failover policies, and shared usage visibility.

Skip If

One upstream API already meets your needs, you need offline inference, or you cannot operate a separate gateway and protect its credential store.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedAPI
git clone --depth 1 https://github.com/tbphp/gpt-load.git
cd gpt-load

cp .env.example .env
docker compose up -d

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
gpt-load ★7.2k+6GoMITSelf-hosted Go gateway for routing LLM traffic across providers and credentials
bifrost10.2k+125GoApache-2.0Self-hosted Go gateway for routing and governing multi-provider LLM traffic
freellmapi62k+2.6kTypeScriptMITSelf-hosted LLM gateway for routing across free tiers and custom endpoints
OmniRoute92.1k+1.5kTypeScriptMITSelf-hosted OpenAI-compatible gateway for multi-provider routing and fallback

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/tbphp/gpt-load.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

tbphp/gpt-load Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about gpt-load

How do I connect an existing OpenAI, Anthropic, or Gemini client?

Add a channel with an upstream API key or complete OAuth for a supported subscription channel. Create a group to define the models and runtime policy, then issue an AccessKey scoped to the groups and client protocols the application needs. Point the client at the gateway base URL and test its actual endpoints and streaming behavior before switching traffic.

Does GPT-Load need a GPU, and how should I size the host?

The gateway does not run model weights locally, so it does not require a GPU or model VRAM. Size the Go service and database for concurrent requests, long-lived streams, and request-log growth. Load-test the actual traffic mix and storage configuration; there is no basis for a fixed CPU or RAM recommendation.

Can we self-host it commercially, and what compliance work remains?

GPT-Load uses the MIT license, which permits commercial use subject to its terms. If you redistribute it, retain the applicable notices and review bundled third-party licenses separately. Self-hosting gives you control of the gateway and its stored data, but requests still reach the configured upstreams. Review their data-handling and subscription terms, and back up the database together with encryption.key.

When is GPT-Load preferable to calling the OpenAI API directly?

Use the OpenAI API directly if one provider and credential policy meet your needs; that avoids a separate service, database, and upgrade cycle. GPT-Load makes sense when shared access controls, routing across credentials or providers, and centralized usage visibility justify that overhead. It does not supply inference capacity or replace upstream billing.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining tbphp/gpt-load? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature tbphp/gpt-load on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare