AgentBudget
Real-time cost enforcement for AI Agents
AgentBudget launched on March 16, 2026 with 3 votes, #3,303 of 23,380 launches that month and more than 50% of that year's launches.
What it does
AI agents can keep calling APIs until a task finishes. If something loops or goes wrong, the bill can grow very fast. There is usually no built in way to stop it. AgentBudget is an open source Python SDK that watches every LLM API call in real time and stops the agent the moment it reaches a set spending limit. You add one import, set a budget, and the agent cannot spend more than that.
Open-source Python SDK that puts a hard dollar limit on any AI agent session. One line to set a budget. Zero infrastructure to manage.
Set a hard dollar limit on any AI agent session with one line of code. Automatic tracking, circuit breaking, and cost reports across every LLM provider. Drop-in auto-tracking, manual wrapping, async agents, and nested budgets. import agentbudget import openai agentbudget. init ( "$ 5.00 " ) # Your existing code. Zero changes needed. client = openai. OpenAI () response = client.chat.completions. create ( model= "gpt-4o" , messages=[{ "role" : "user" , "content" : "Analyze this market..." }] ) # ^ Automatically tracked. Budget enforced. print (agentbudget. spent ()) # 0.0035 print (agentbudget. remaining ()) # 4.9965 print (agentbudget. report ()) # Full cost breakdown agentbudget. teardown…from agentbudget.dev
Does a similar job
all alternatives →
AgentBudget – Real-time dollar budgets for AI agentsFeb 2026 · github.com · ▲7Hey HN, I built AgentBudget after an AI agent loop cost me $187 in 10 minutes — GPT-4o retrying a failed analysis over and over. Existing tools (LangSmith, Langfuse) track costs after execution but don't prevent overspend. AgentBudget is a Python SDK that gives each agent session a hard dollar budget with real-time enforcement. Integration is two lines: import agentbudget agentbudget.init("$5.00") It monkey-patches the OpenAI and Anthropic SDKs (same pattern as Sentry/Datadog), so existing code works without changes. When the budget is hit, it raises BudgetExhausted before the next API…

AgentGuard – Auto-kill AI agents before they burn through your budget2025 · github.com · ▲47Your AI agent hits an infinite loop and racks up $2000 in API charges overnight. This happens weekly to AI developers. AgentGuard monitors API calls in real-time and automatically kills your process when it hits your budget limit. How it works: Add 2 lines to any AI project: const agentGuard = require('agent-guard'); await agentGuard.init({ limit: 50 }); // $50 budget // Your existing code runs unchanged const response = await openai.chat.completions.create({...}); // AgentGuard tracks costs automatically When your code hits $50 in API costs, AgentGuard stops…



More dev tools this month
the category →

open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.
Dev tools · 27d ago · github.com

Contribute to reladraw/reladraw development by creating an account on GitHub.
Dev tools · 25d ago · github.com
OpenBot▲362Grok Bot alternative: free, local, open-source, multiplayer
Dev tools · 23d ago · openbot.run
Talanoa▲345Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…
Dev tools · 20d ago · talanoa.email
CoreSpeed▲332One MCP for everything your agents need: apps, memory, tools
Dev tools · 28d ago · corespeed.io
Source: Product Hunt launch ↗
Launched alongside, March 2026
the whole month →


Switch from ChatGPT to Claude with import memory feature
AI · Mar 2026 · claude.com
Littlebird▲709Littlebird remembers everything across your meetings, messages, docs, and apps, then takes action so you can recall any detail and never lose context.
AI · Mar 2026 · littlebird.ai

