Casbin Gateway
Between your AI coding agents and every model API they call, Casbin Gateway adds one endpoint that grades whether each provider is genuine, fails over when one stops answering, and records what the agents sent and spent. Authenticity probes grade each provider from A to F when it is added and whenever its report goes stale, exposing resellers that swap in a cheaper model or fake cache hits. A standalone probe tests any compatible endpoint without installing Gateway. Providers come from 44 vendor presets or any OpenAI-compatible or Anthropic-compatible URL, and Gateway translates four wire formats so Codex can run on DeepSeek or Claude Code on Kimi. Exhausted keys and dead relays pass a request to the next provider, routing rules decide what each model name becomes, and Claude, ChatGPT, or Copilot subscriptions can be pooled. More than thirty permission switches per agent compile to a Casbin policy enforced on every relayed request, and policy packs block destructive commands, secret access, unknown hosts, and publishing. LLM Records keep each call's full prompt, messages, tool schemas, tokens, and cost, while Usage reads the agents' own transcripts to count spend that bypassed Gateway. Before opening Gateway beyond localhost, change the default admin password and send the relay token with every /v1 request. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. Apache-2.0 licensed.
Deploy