Cost accounting for AI agents

Know where your AI agent money goes.

Your agents' usage and your providers' bills come in on their own. Tags say what the work was for, and each bill is checked against the messages behind it.

Free for one person. $200 or €200 a month per organization. Open source.

1Messages
$950.00
in March at the price table, 400.00 of it on a plan
2Bills
$820.00
three contracts, each bill checked to a difference of 0.00
3Plan
MATO
$232.50
March share of the accepted estimate for Shop
4Deviation
−$567.50
Shop cost 800.00 against its plan

As of 31 March. Every figure opens to the messages behind it.

AI agents are your newest monthly bill.

Engineers, designers and your support team all run them. You have to explain the bill.

  • CostWhat did this feature cost to build?
  • BillsWhich bill paid for it?
  • ClientsWhich part can you pass on to a client?
  • PlanDid anyone plan for it?
  • PeopleWho answers for it?
  • DeviationWho stayed within the plan?

Token Controller is cost accounting for your AI agents.

From what agents use to a bill you can explain.

1

Record

Every model call an agent makes arrives as a message: who ran it, which agent, which model, when, and how many tokens of each kind. The branch, the repository and how the agent was signed in come along as signals.

The price table turns tokens into cost. A message whose price is not certain shows as not priced yet, with its tokens.

SessionAgentSigned in withCostMAS1Claude Codea seat plan400.00MAS2Codexan API key300.00TOS3Review botan API key100.00TOS4Claude Codean API key150.00Messages, March, at the price table950.00
2

Bills

Bills come from the provider's billing API or a CSV file. Each bill has one contract: an API account is metered, a seat plan is flat, with a fee and maybe extra usage. Two contracts with one provider are two contracts.

Connecting or uploading a bill creates its contract.

ContractProviderKindBillanthropic-apiAnthropicmetered270.00openai-apiOpenAImetered300.00claude-teamAnthropicflat: fee 200.00 + extra usage 50.00250.00Bills, 1 to 31 March820.00
3

Tags

Tags say what the work was for: a feature, a project, a client, and a contract. A rule reads the signals, such as how the agent was signed in. A feature brings its project, the project brings its client. Or you set a tag by hand.

Rules run back in time, so a rule you add today may tag last month too. A session on two features gets a split.

SessionContractWorkLabelCostS1claude-teamKD-1direct400.00S2, 60 %openai-apiKD-1direct180.00S2, 40 %openai-apiKD-2direct120.00S3anthropic-apiShopproject overhead100.00S4anthropic-apinoneorganization overhead150.00Messages, March950.00
4

Check

Each bill meets the messages under its contract. A metered bill is their cost plus what no message explains, such as chat in the provider's own app. A flat bill is the fee plus extra usage, and you see what the plan covered.

Beside every check stand the messages of the same provider with no contract, and those that got their contract only because the provider has one.

ContractBillMessagesUnexplainedCovered by the planDifferenceanthropic-api270.00250.0020.00–0.00openai-api300.00300.000.00–0.00claude-team250.00400.00–350.000.00Beside the checksMessagesAnthropic, no contract0.00OpenAI, contract from the fallback300.00
5

Plan and compare

Estimate work before it starts, as bands with a median. Accept one, and it is the plan, spread over its days. A share gives a person their part of a project's plan.

Plan less cost is the deviation, for a feature, a project, a person or a team.

WorkPlanCostDeviationShop232.50800.00−567.50KD-1500.00580.00−80.00MA139.50700.00−560.50

Works with the agents you already use.

Most usage arrives on its own, by telemetry. tc and the Claude Code mod add what the work was for.

This is all that leaves your laptop

Session S1 · March
agent · modelClaude Code · claude-opus-4-5
personMA
tokens in · out1,200,000 · 2,400,000
cache write · read12,800,000 · 508,000,000
signalsbranch kd-1-checkout · signed in to the team's Claude organization
summaryFixed the checkout loop
featureKD-1
at the price table, on a plan$400.00

Two commands, then forget it exists

Your sessions turn into messages while you work. Submit them when you are ready.

# macOS and Linux brew tap tokencontroller/tap https://github.com/tokencontroller/tokencontroller brew install tc # Windows: the zip from GitHub releases tc connect https://app.tokencontroller.com # the Claude Code mod, in the terminal or the desktop Code tab /plugin marketplace add tokencontroller/tokencontroller /plugin install token-controller # end of the week tc submit # 2 sessions · $700.00 · all on features

Ready for finance, clients and your own servers.

Tags for any slice

Feature, project, client and contract are tags. Team and department come from the person. Work on a project and no feature is project overhead, and keeps its person.

Passing cost to clients

Acme's 800 of the 950 is one line, ready for your invoice. How it works

A cutoff for finance

Set the cutoff, and reports as of that date stay as they are. A later fix is a new entry, dated after it. How it works

Price table

Hosted organizations get the managed table and can override a row. A contract may carry its own prices. Cost under a seat plan is marked on a plan.

Privacy by default

Prompts, responses and file contents are removed on arrival unless you switch keeping them on. What arrived is kept for 400 days, so a later reading reaches back.

Self-hosting

Run the same product on your own servers with your own price table, free under the AGPL. How it works

Everything it does.

Record
Claude Code mod·CLI·Telemetry push·GitHub Action·Token entries endpoint·Manual entry and CSV import·Submit and approve
Tag
Features, projects, clients and contracts as tag values·Default tags·Attributes for people·Rules on any signal·Sign-in rules for agents·Splits·Review list
Check
Price table with prices per contract·Bills from Anthropic, OpenAI and CSV·Metered and flat contracts·The check per contract·Cutoff·Reversals
Plan
Estimates as distributions·Accepted plans·Shares·Deviation·Forecast reports
Report
Any filter, as of any date·Per person, feature, project, client, contract, team and department·On a plan and not priced yet lines·Agent harness reports·CSV export
Connect
Jira Cloud·MCP server·Magic link sign-in·OIDC and SCIM on the Enterprise plan

One price per organization. Nothing per seat.

Your provider already meters tokens. We do not meter you again.

Solo
Free
forever, hosted
  • One person, one organization
  • Every feature, no invites
  • All agents, bills and reports
Start free
Team plan
$200
or €200 a month per organization
  • Up to 150 members, flat
  • Grants, approval, cutoff
  • Jira sync, managed price table
  • Or $2,000 or €2,000 a year
Choose Team plan
Enterprise plan
Custom
more than 150 members, an isolated instance or special features
  • Isolated instance in your region
  • OIDC, SCIM, audit log
  • Telemetry passthrough, cloud bill connectors
  • Support SLA
Talk to us
Self-hosted
Free
AGPL-3.0
  • Every Team plan feature
  • Your Postgres, your region
  • Community support on GitHub
Read the guide

Hosted in the EU. EU customers pay in euros, everyone else in US dollars.

Jan Beck

Built by Jan Beck in Graz.

Jan studied business and finance at WU Vienna, built software for clients for fifteen years and ran operations at a Berlin fintech. He champions responsible use of AI at scale and has introduced agentic delivery to hundreds of engineers. Token Controller solves a real problem he ran into while bringing coding agents to larger companies.

Token Controller brings cost accounting and management control to AI agents. It is for agencies, consultancies and product companies that have to say where their AI money went.

  • No outside investors
  • Open source, hosted in the EU

Start alone in minutes. Add your team later.

Solo is free forever and needs no card.