● About

What OrbioGate is

A self-hosted control plane in front of one orbio account: a pool of API keys, automatic failover between them, a usage ledger, and a small web panel — running on one server, with no third-party service in between.

How a request flows

  1. A client (the claude CLI, an OpenAI SDK, a bot) sends the request to https://orbiogate.com — or straight to http://127.0.0.1:8787 on the box itself.
  2. Caddy terminates TLS and forwards to the gate; the gate checks the token (the operator's GATE_TOKEN or a holder key) before anything moves.
  3. The gate picks a key — the sticky one that worked last — forwards the request to api.orbio.so, and streams the answer back chunk by chunk, never buffered.
  4. If the key hits a cooldown (out of balance, invalid, rate-limited), the next key in the pool takes over inside the same request. Either way the attempt lands in the ledger.

What runs where

PieceJobIf it stops
orbio.so APISupplies the models behind the gateNothing can answer; the site itself stays up
Two API keysThe account's credit at orbio (primary, then fallback)Primary drains → the fallback key takes over automatically
The gate (FastAPI)Token check, key pool, failover, streaming pass-throughAPI requests fail; the emergency direct path in ~/.orbio/fallback.env still works
SQLite ledgerWho spent what, per key and per modelBookkeeping pauses; nothing else breaks
CaddyHTTPS at orbiogate.com, auto-renewed certificatesThe domain goes dark; 127.0.0.1:8787 keeps serving locally
The web pagesLanding, dashboard, docs, this pagePresentation only — the API keeps running

Same genre, different scope

Gateway-in-front-of-LLM-keys is a known pattern. The closest relatives, for context:

  • OpenRouter — one API for many models. orbio works the same way upstream; OrbioGate manages the account keys in front of it.
  • LiteLLM Proxy — the closest open-source relative: key pool, fallbacks and budgets in front of LLM providers. OrbioGate is a small, purpose-built version of that idea.
  • one-api / new-api — community projects for multi-provider key pools with token distribution. Heavier web UI; same genus.
  • Cloudflare AI Gateway — the managed take: caching, rate limits and logging in the cloud. OrbioGate keeps everything on one box instead.

Why build one? Because the box is ours, the ledger is ours, and the keys never leave it.