Stop runaway AI agents
before they start.

A preflight gate for every agent run.
Budget exceeded? GPU quota hit? Free tier exhausted?
Block it before the first token — not after the bill arrives.

# 3 lines. That's it.
from agentbill import AgentBillClient

client = AgentBillClient(api_key="agb_your_key")

# Block before the run starts
check = client.preflight(agent_id="researcher", budget=5.00)
if not check.approved:
    raise Exception("Budget exceeded")

# Record the outcome
client.record(agent_id="researcher", cost=check.estimated_cost)
      

"The moment you're using Stripe as your safety net, you've already lost the run."

— scarlett1908, r/LangChain

"Works whether you're paying OpenAI $0.01/token or burning your own GPU at 3am."

— the point

Get your API key

What AgentBill does NOT do