I woke up to a $40 bill from an agent that looped overnight on a $5 task. Every solution worked *after* the call. None stopped the TCP connection.
baar-core checks your budget before every API call. Over cap ā exception raised locally. No DNS. No TCP. $0 charged.
ā 84% cost reduction via semantic routing
ā Per-user SQLite quotas
ā LangGraph + FastAPI support
ā MIT licensed
pip install baar-core