Categories
Self-Hosted Observability AI Gateway Access Control Local LLM LLM Proxy Cost Control PII MaskingStars
Forks
Watchers
Developer links
Spillway
Every request to Claude, GPT, or a local model passes through Spillway, a gateway that gives each person, laptop, and agent its own key, caps what that key can spend, and sends over-budget traffic to a local model instead of an error. Limits are daily and monthly dollar amounts, with model allowlists per team. A contractor's key can expire on a set date, and a leaked one is replaced in a click without losing its history. Anyone who hits a limit sees where to ask for more, and an admin approves it with one click. Five routing rules cover the rest: local fallback at a share of a team's budget, personal data and API keys kept away from cloud models, agent rate limits, off-hours traffic kept local, and a brake on runaway keys. An agent looping overnight is stopped within the hour. If a provider fails, the local model answers instead. Every log entry explains its decision, with tokens, cost, and money saved, and prompts are stored with personal data masked. Clients speak OpenAI, Anthropic, or Ollama formats, so Claude Code, Codex, Open WebUI, and n8n connect with a base URL and a key. Alerts reach Slack, Microsoft Teams, or email. Sign-in through Google Workspace, Microsoft Entra ID, or OpenID Connect is free. 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.
Benefits
- Budgets that never block work
- Daily and monthly dollar limits per key and team send over-budget requests to a local model instead of an error, and admins can approve extra spend for the day with one click.
- Runaway agents stopped within the hour
- A key without its own limit that spends three times its busiest hour of the past two weeks, and at least $20, is stopped and rerouted locally until an admin lets it back.
- Every decision explained in the log
- Each request entry shows who sent it, which model answered, tokens, cost, and money saved, with numbered reasons such as a budget at 104% and the routing rule that matched.
- Connect tools you already use
- Claude Code, Codex, Open WebUI, Chatbox, n8n, and OpenAI SDKs connect with a base URL and a key, and a new key's dialog shows the exact settings to paste.
Features
- Three API Formats
- Accepts OpenAI chat, responses, and embeddings, Anthropic messages, and Ollama chat, translating streaming and tool calls for Azure OpenAI, Gemini, Mistral, Groq, DeepSeek, xAI, and OpenRouter.
- Keys and Budgets
- One key per person, device, or agent with daily and monthly dollar limits, end dates, one-click replacement, team budgets, and model allowlists, with prices of well-known models filled in.
- Routing Rules and Fallback
- Five rules cover budget-share fallback to Ollama, personal data blocking, agent rate limits, off-hours local routing, and a spend-spike brake that stops runaway keys until an admin releases them.
- Personal Data Masking
- Detects card numbers, IBANs, US Social Security, UK National Insurance, passport numbers, and API keys, blocks them from cloud models, and stores masked prompts that expire after a retention period.
- Alerts and Spend Reports
- Slack, Microsoft Teams, and email alerts for budgets, limits, stopped keys, and provider outages, a Monday spend summary, and a monthly spreadsheet by team, person, key, and model.
- Single Sign-On Included
- Google Workspace, Microsoft Entra ID, or any OpenID Connect provider signs people in at no cost, invitation links cover everyone else, and the admin console ships in six languages.