TokenOps
FinOps governance for multi-agent AI systems
An AI agent's workflow can run up cost fast: dozens of small, individually cheap steps that quietly add up. TokenOps sets a single budget for the whole workflow and enforces it before every step.
View on GitHubWhat it does
Enforced before the call
The budget is checked before each model call, and the run is halted when it is out.
Run-scoped budget
It governs the run, a full agent workflow, not a single request.
Shared across processes
Point every agent at the AgentPlane control plane to share one budget.
Steers, not just stops
Policies can change the next call as well as halt the run.
Tool calls count too
Search results and file reads that land in the next prompt are real spend, and get counted.
Policies you can extend
Ten policies are included, and you can add your own.
Try it
Requires Python 3.10+. The demo runs a governed agent in process, with no server and no API keys.
pip install agent-tokenops
python -m tokenops.demo
For your own agent, start with the Quickstart.