惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
博客园 - 司徒正美
博客园_首页
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
I
InfoQ
M
MIT News - Artificial intelligence
T
Tailwind CSS Blog
L
LangChain Blog
Last Week in AI
Last Week in AI
A
About on SuperTechFans
B
Blog
博客园 - 叶小钗
雷峰网
雷峰网
H
Help Net Security
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
博客园 - 【当耐特】
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Announcing agent-gov: Open-Source AI Agent Cost Governance
Sathish Chelliah · 2026-05-31 · via DEV Community

Sathish Chelliah

Announcing agent-gov: Open-Source AI Agent Cost Governance

Stop waking up to surprise $500 bills from your AI agents.


The 3 AM Wake-Up Call

It was 3:47 AM on a Tuesday. My phone buzzed — a Cloudflare bill alert. Then another. Then Stripe. By the time I stumbled to my laptop, three different providers had collectively racked up $487 in just six hours.

What happened? A single AI coding agent had gotten stuck in a loop. It was re-analyzing the same bug, calling the same expensive LLM endpoint over and over, spawning sub-agents that spawned their own sub-agents. Nobody put a governor on it. Nobody thought they needed to.

If you've built anything with AI agents — auto-PR reviewers, customer-support bots, code-gen pipelines, web-research assistants — you've either had this nightmare or you're one sleep cycle away from it. The fundamental problem is simple: agents spend money the same way junior devs write code — enthusiastically, autonomously, and without asking permission.

Most teams solve this with spreadsheets and hope. Some bolt on a cloud budget alert after the first blowup. A few give up on agents entirely.

We wanted a real answer.

Enter agent-gov

Today I'm releasing agent-gov — an open-source, MIT-licensed cost governance platform purpose-built for AI agents. It's a lightweight reverse proxy that sits between your agents and their LLM providers, tracking every cent, enforcing daily budgets, and auto-pausing agents that overspend.

pip install agent-gov-saas
agent-gov start

That's it. Thirty seconds from zero to governance.

How It Works

Agent-gov is transparent to your agents. You point them at a local proxy endpoint instead of directly at the API, and agent-gov handles the rest:

  1. Intercept — every model call routes through agent-gov's FastAPI proxy
  2. Look up real costs — the built-in tool registry knows exact per-token pricing for hundreds of models
  3. Enforce budgets — if an agent exceeds its daily allocation, agent-gov blocks the call
  4. Persist everything — all usage is written to SQLite via aiosqlite

No lock-in. No cloud dependency. No per-seat licensing.

Features in v0.5

  • Reverse proxy middleware — drop-in for any OpenAI-compatible client
  • SQLite persistence — full audit trail of every call, token, and dollar
  • Tool registry with real cost tables — priced by model, provider, and input/output token rates
  • Daily budgets with auto-reset — configure per-agent, per-workspace, or globally
  • Auto-pause on over-budget — agents get a structured policy block
  • Multi-tenant workspaces — isolate costs by team or project
  • Docker supportdocker compose up
  • 45 tests, 0.3 seconds — tight, fast, well-tested codebase

Quickstart

pip install agent-gov-saas
agent-gov start

Set a $5 daily budget:

agent-gov config set budget 5.00 --agent code-review-bot

Why We Built This

The AI agent ecosystem is exploding. But the operational maturity around it is where web apps were in 2009. We're all running agents without guardrails because nobody has built the guardrails yet.

Agent-gov is the circuit breaker for your agent infrastructure — the thing that prevents a single runaway loop from costing you a week of GPU credits.

The project is MIT-licensed because cost governance isn't a moat — it's table stakes.

Get Involved

Don't learn you need cost governance at 3 AM.


Built with FastAPI, SQLite, and a healthy fear of surprise bills.