Hard USD caps and kill switches for AI API keys.
Swap one base URL to run atomic spend reservations, loop halting, and instant key pause before an upstream provider bills your card.
BYOK Vault · AES-256-GCM
Ingress
OpenAI SDK
Guard TX
Reserve + 5/60s
api.openai.com
200 Settled
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://nothekx.com/api/v1',
apiKey: process.env.NOETHEKX_KEY,
});POST /api/v1/chat/completionsEncrypted BYOK Vault
Stop runaway loops before the fifth call hits upstream billing.
gpt-4o-mini·nk_live_demo
| # | Cost | Outcome |
|---|---|---|
| 01 | $0.0002 | 200 ALLOWED |
| 02 | $0.0002 | 200 ALLOWED |
| 03 | $0.0002 | 200 ALLOWED |
| 04 | $0.0002 | 200 ALLOWED |
| 05 | $0.00 | 429 BLOCKED_LOOP |
| 06 | $0.00 | 429 BLOCKED_LOOP |
Allowed / Blocked
4/2
Tripped at call #5Spend Prevented$0.0003Settled: $0.0007
Daily Cap Consumption$0.0007 / $0.50
HTTP 429 · gateway-response.json
{
"error": {
"message": "Runaway agent loop detected (5 repeated identical requests within 60s).",
"type": "rate_limit_error",
"param": null,
"code": "LOOP_DETECTED"
}
}Execution guarantees
Architecture docsTwo-phase Firestore budget lock
7.004ms median guardEvery concurrent call locks worst-case spend atomically before reaching an upstream model. At a $0.05 cap across 25 parallel requests, 4 execute and 21 halt with HTTP 402.
reserveBudgetAtomically()LOCKED
Claims worst-case token cost plus a 5-minute active_reservations lease before any upstream network I/O.
reserved_microcents += worst_case_est
Fail-closed HTTP 503 if state check cannot completemaxAttempts: 150 leaked cents
Credential isolation modes
AES-256-GCM Vault
AAD bound to org + key ID
Pass-Through Header
x-upstream-api-key · memory only
Gemini Sandbox
Daily request & token cap
HMAC-SHA256 Key Digests
nk_live_Proxy keys appear once on creation and store only peppered digests so database reads cannot sign requests.
Sliding-Window Loop Guard
5 / 60sRepeated prompt hashes trip HTTP 429 inside the gateway before upstream retries drain quota.
DNS-Pinned Webhook Guard
HTTPS OnlyRejects RFC1918, loopback, and metadata IPs at resolution time, blocks redirects, and attaches X-Noethekx-Signature.
Transparent pricing.
Free
Sandbox$0/ month
$10 / mo tracked BYOK volume1 project · 1 active key · 3-day logs
- Zero-Key Gemini Sandbox (25 reqs / $0.10)
- Hard daily and monthly org spend caps
- Zero-Storage x-upstream-api-key pass-through
- Emergency Kill Switch (PAUSE ALL KEYS)
Builder
Solo$5/ month
$2,500 / mo tracked BYOK volume5 projects · 1,000 keys · 30-day logs
- Everything in Free
- Sliding-window infinite loop detection
- Signed SSRF-safe webhooks + ntfy.sh alerts
- 30-day CSV and JSON log export
Team
Organization$15/ month
$25,000 / mo tracked BYOK volume100 projects · 25 seats · 90-day logs
- Everything in Builder
- Per-key RPM rate limits and model allowlists
- Clerk Organization RBAC (owner / admin / viewer)
- 90-day audit log retention and export