Noethekx
DocsGuidesChangelog
Sign inConsole
DocsGuidesChangelog

Engineering Guides

Copy-paste SDK recipes and architectural notes for controlling OpenAI, Anthropic, and Gemini spend through https://nothekx.com/api/v1.

2026-11-22 12:15 UTC6 min read

Building an Atomic Spend Guard with Firestore Transactions

Inside the two-phase micro-cent reservation, OCC retry loop, and crash-recovery lease architecture powering Noethekx.

src/lib/db/firestore.ts, src/lib/proxy/spend-guard.ts, src/lib/proxy/pricing.tsRead guide
2026-11-22 12:10 UTC4 min read

Zero-Storage LLM Proxy Mode with Pass-Through Headers

Route OpenAI, Anthropic, and Gemini calls through Noethekx spend controls while keeping upstream API keys strictly in request memory.

src/lib/proxy/upstream.ts, src/lib/security/crypto.tsRead guide
2026-11-22 12:05 UTC5 min read

How to Prevent Infinite Retry Loops in AI Agents

Stop stuck tool-calling and retry loops automatically using SHA-256 request fingerprinting across a 60-second sliding window.

src/lib/proxy/spend-guard.ts, src/app/api/org/kill-switch/route.tsRead guide
2026-11-22 12:00 UTC5 min read

How to Set Hard Spend Limits on the OpenAI API

Enforce atomic daily, monthly, and per-request dollar caps on OpenAI SDK calls before upstream provider billing runs.

src/lib/proxy/spend-guard.ts, artifacts/proxy_bench.jsonRead guide
Noethekxhttps://nothekx.com/api/v1
DocsGuidesChangelogRSSSitemap