Agent FinOps
Per-agent cost caps, attribution, and warehouse budget enforcement
pramiti-agent-finops provides per-agent daily warehouse cost caps and attribution. It prevents runaway AI agents from burning through cloud compute budgets by enforcing configurable spending limits.
Install
Quick Start
API Reference
CapChecker
The core enforcement engine. Zero external dependencies — inject any ICostBackend-compatible storage adapter.
check()raisesCapExceededErrorif the agent has exceeded its daily cap with action="block"check()issues aCapWarningif the agent has exceeded its daily cap with action="warn"check()is a no-op if no cap is configured for the agent
ICostBackend (Interface)
Storage adapter interface. Implement this for custom storage:
InMemoryBackend
Built-in in-memory backend for testing and evaluation:
Exceptions
CapExceededError— Raised when an agent exceeds its cap and action is "block"CapWarning— Warning issued when an agent exceeds its cap and action is "warn"
Platform Integration
When used inside the Pramiti platform, use the PostgreSQL backend: