Blog · Guide

How to know where your AI agent money goes

Your business has a new monthly expense: AI agents. Engineers run them, and so do designers, project managers and your support team. Soon everybody will. Across the whole organization the bill can reach tens of thousands a month. Maybe you are an agency and want to pass that cost on to your clients. Or you build a product, and your team tells you AI makes them much faster. But do you know what each project or feature actually cost to build? Did anyone forecast it, and was anyone held accountable for it? Which teams and people stayed within their budget? Which AI agents run over the most?

The answer is a method borrowed from how companies already track people's hours. Every agent reports each token it spends and the work it spent it on, like a timesheet. You add it all up at the end of the month and check it against your providers' bills. Every cost lands on a ticket and on the person who answers for the agent, next to what you planned. Then you plan the next month with what you learned from the previous months. Think of it as cost accounting for AI agents. Here is how it works in four steps.

1

Plan

Set a token budget for each ticket, the way you would estimate hours in an estimate sheet or story points in sprint planning. Or accept a token forecast built from similar past work.

TicketWorkPeopleToken budget Storefront relaunch$1,000.00 SF-1CheckoutMOLK$560.00 SF-2SearchTR$440.00 Claims portal$380.00 CP-1Document uploadASMO$380.00Total$1,380.00
2

Record

Every agent reports token entries: tokens, cost, model, start and end time, and a summary of the work. Cloud sandbox and CI agents report on their own once they are set up. Each one has a person who answers for its cost. In local sessions on a laptop, people assign a ticket key and confirm the summaries before entries are uploaded. Full transcripts never leave the machine.

AgentTicketSummaryTokensCost MOClaude CodeSF-1Fixed checkout loop6.2M$41.87 LKCursorSF-1Checkout button states1.4M$8.30 MOCI Review botSF-2Reviewed ranking PR0.8M$3.20 TRGemini CLISF-2Search criteria draft0.5M$2.15 ASCI Pen test agentCP-1Pre-release pen test2.9M$12.47 ASCodexCP-1Built upload retry2.3M$12.05 MOCopilot CLISF-1Tried a new test runner0.9M$4.60 TRClaude CodeSF-2Ranking tweaks1.1M$6.40
3

Reconcile

Rules attribute each token entry to its ticket, for example by the ticket key in a branch name. At the end of the month both sides must match: the cost attributed to projects and tickets, and the bills your providers actually sent. Then the month is closed, and finance gets a locked cost sheet.

TicketWorkCost Storefront relaunch$1,065.30 SF-1Checkout$652.50 SF-2Search$412.80 Claims portal$473.10 CP-1Document upload$473.10Total$1,538.40 ProviderBill Anthropic$611.80 OpenAI$402.15 Google Gemini$214.60 Cursor$195.85 GitHub Copilot$114.00Total$1,538.40=
4

Learn

See actual against token budget for every ticket, person and provider. Overruns and underruns both get a look. The next token forecast is the median cost of similar past tickets, so it moves toward what the work really costs.

TicketWorkToken budgetActualDeltaNext forecast CP-1Document upload$380.00$473.10+25%$450.00 SF-1Checkout$560.00$652.50+17%$625.00 SF-2Search$440.00$412.80−6%$405.00 DeltaNext forecast MO+26%$595.00 AS+13%$225.00 LK+12%$250.00 TR−6%$410.00 DeltaNext forecast +31%$170.00 +18%$585.00 +12%$390.00 −5%$115.00 −7%$220.00

I've built software for clients for fifteen years, and I built Token Controller because I needed these answers for my own managers and clients. It gives the people who run agents an easy way to show what the work was, and the people who pay a number they can check. Claude Code, Codex, Gemini CLI and Copilot CLI are supported, and any other agent can report through the API. It is free for one person, 200 USD or 200 EUR a month per organization on the Team plan, and free to self-host under the AGPL.

For the people who run the agents, it takes almost no effort. Cloud and CI agents report on their own, and laptop sessions are connected to tickets through the Claude Code mod.

There is more when you need it: project and organization overhead, passing cost through to clients, a locked cost sheet for finance, and self-hosting on your own servers.

You can start alone in a few minutes at tokencontroller.com and add your team when the first month closes. If you answer for AI spend, I'd like to hear how you handle your AI bill today. Write to me and I'll show you how it works.