Unified Gateway
One OpenAI / Anthropic / Gemini compatible endpoint, so customers stop juggling provider keys and SDK adapters.

B2B AI API relay & billing platform for teams.
Relay is a self-operated B2B AI API relay. It fronts OpenAI, Anthropic, and Gemini behind one compatible gateway — companies sign up, invite teammates, share a prepaid balance, and get per-member keys with per-token metering and transparent invoices.

From signup to teammate invites to first API call, Relay productizes the entire B2B AI onboarding path — operators only configure models and pricing.
One OpenAI / Anthropic / Gemini compatible endpoint, so customers stop juggling provider keys and SDK adapters.
Owner / Admin / Member roles with a shared prepaid balance across the org and an independent gateway key per member.
Real-time per-token deduction with traceable invoices for every call; platform admins top up customer balances manually.
Battle-tested routing and credential-pool modules selected from SiftGate OSS, with multi-provider load balancing and failover.
Admins configure available models, pricing, and customer credits; debug data is encrypted at rest and every op is auditable.
One Docker Compose stack with Caddy-managed TLS — the entire platform runs on a single VPS.
Every layer — from service isolation to data consistency to deployment — is designed for high-throughput token metering and org-level collaboration. No over-engineering, no shortcuts.
admin-api and gateway run as isolated services — independently scaled, independently deployed, fault-contained.
PostgreSQL handles strongly-consistent writes for orgs, balances, and invoices; Redis meters tokens with millisecond precision.
Customer console and platform admin share one modern frontend — instant builds, immediate feedback, zero operational friction.
The entire production system is orchestrated in a single compose file, with Caddy managing TLS end-to-end — infrastructure complexity kept to a minimum.