JSPM

  • Created
  • Published
  • Downloads 3718
  • Score
    100M100P100Q119901F
  • License MIT

Agent Runtime Control — Loop detection, prompt caching, budget enforcement, and waste scanning for autonomous AI agents.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vibe-billing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    vibe-billing

    Agent Runtime Control — Stop AI agents from getting stuck in loops and burning your money.

    Install

    npx vibe-billing setup

    Proof 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 setup

    Works With

    100% invisible, native routing for the most popular SDKs:

    • OpenClaw (openclaw.json / .openclaw/.env)
    • Claude Code (ANTHROPIC_BASE_URL env var)
    • OpenAI SDK (OPENAI_BASE_URL env var)
    • Anthropic SDK (ANTHROPIC_BASE_URL env var)
    • Any framework supporting standard base_url overrides.

    Uninstall

    If you ever want to remove it, it restores your computer to exactly how it was:

    npx vibe-billing uninstall

    How 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.

    1. 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.
    2. Context caching — The proxy auto-injects ephemeral caching headers into your payloads, yielding up to 80% cheaper system prompts on supported models.
    3. No Config Neededsetup handles the environment variables and openclaw.json bindings automatically.
    Your Agent → Agent Firewall (localhost) → AI Provider