Hard reservation ledger
Reserve → settle, atomic, safe across processes and crashes. Proven: 4 workers race a 10-call budget, exactly 10 settle.
hard budgets for your API keys
You gave an app — or an agent — your LLM API key and hoped it wouldn't run away with your bill. SovereignKey makes it structural: a gate that meters every token and refuses any call that would cross your budget, before it's spent.
one-time · runs entirely on your machine · library + drop-in proxy
The hard budget
Not a best-effort meter — an atomic reservation ledger. Even multiple workers sharing one budget can't over-spend. Watch it stop a runaway loop cold:
What's in the box
Reserve → settle, atomic, safe across processes and crashes. Proven: 4 workers race a 10-call budget, exactly 10 settle.
The budget check runs before the network call. A blocked call reaches nobody and costs nothing.
OpenAI, DeepSeek, Mistral, xAI, Google, and Anthropic — with per-model Claude pricing.
Held inside the gate. Never returned, never logged, never echoed through the transport.
Change one line — base_url — and keep your existing OpenAI or Anthropic code. Over-budget → 402.
49 offline tests run with no key and no network, driving the full gate on a fake transport.
Buy once. Use it everywhere you ship.
instant download · 14-day refund