KGateway
Standing between applications and 25 LLM providers, KGateway presents one OpenAI-compatible API and adds failover, spend limits, caching, and tracing. Switching among OpenAI, Anthropic, Gemini, Bedrock, Groq, or a local Ollama server means editing one provider/model string. An Anthropic-compatible endpoint lets Claude Code and other coding agents route through the gateway, which can also inject MCP tools into requests and run them. Provider errors or exhausted keys trigger backoff retries, key rotation, or a fallback provider named in the request, and streams switch before the client sees a byte. Virtual keys give each team a model allow-list, rate limit, token budget, and dollar ceiling, and real provider keys stay inside the gateway. A two-tier semantic cache answers repeated and near-duplicate prompts without a provider call, trying exact text first and embedding similarity second. Stage-by-stage traces show retries, failures, and time to first token; logs filter by provider, model, key, and status, with a live tail. Sessions group a coding agent's calls into one row per task, showing live spend, tokens, and duration. Redaction masks secrets in captured bodies, and role-based tokens guard the control plane; set an admin token before exposing it. A separate web dashboard adds a playground, provider and key management, analytics, and a generated API reference. Most config edits reload without a restart. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. AGPL-3.0 licensed.
Deploy