vibe-billing
v0.5.61
Published
Agent Runtime Control — Loop detection, prompt caching, budget enforcement, and waste scanning for autonomous AI agents.
Maintainers
Readme
vibe-billing
Agent Runtime Control — Stop AI agents from getting stuck in loops and burning your money.
Install
npx vibe-billing setupProof of Savings
Run npx vibe-billing scan to analyze your local agent logs and instantly see exactly how much money you've lost to API hallucinations.
Agent Waste Report
Runs analyzed: 142
Retry loops: 18
Context re-sends: 32
Overkill model usage: 56
Total agent spend: $124.50
Estimated wasted spend: $102.09
Fix with:
npx vibe-billing setupWorks With
100% invisible, native routing for the most popular SDKs:
- OpenClaw (
openclaw.json/.openclaw/.env) - Claude Code (
ANTHROPIC_BASE_URLenv var) - OpenAI SDK (
OPENAI_BASE_URLenv var) - Anthropic SDK (
ANTHROPIC_BASE_URLenv var) - Any framework supporting standard
base_urloverrides.
Uninstall
If you ever want to remove it, it restores your computer to exactly how it was:
npx vibe-billing uninstallHow It Works
The firewall sits locally on your machine at localhost:4000. Every API request from your agent passes through it before hitting Anthropic or OpenAI.
- Loop detection — If an agent submits the exact same request 3 times in a row, the proxy hard-kills the connection before you are billed for infinite loops.
- Context caching — The proxy auto-injects
ephemeralcaching headers into your payloads, yielding up to 80% cheaper system prompts on supported models. - No Config Needed —
setuphandles the environment variables andopenclaw.jsonbindings automatically.
Your Agent → Agent Firewall (localhost) → AI Provider