A simple agent register for Claude and GPT: track each agent's cost and outcome
You can track every Claude and GPT agent you run with one spreadsheet, one API key per agent and a weekly pull from each vendor’s usage API. Most teams skip it. At a Collibra summit, most of the audience could not say how many agents they had in production or what those agents did, according to VentureBeat’s report. This guide is the short version of fixing that: what to record, how to wire the keys, and how to read the numbers.
Step 1: the register
Make one sheet with one row per agent or flow. Each row does one function. Columns:
- Agent name and its one function
- Owner (a person, not a team)
- Model provider and model (Claude or GPT, and which one)
- Where it is billed: the Claude workspace and API key, or the OpenAI project and API key
- Systems and data it can touch
- Monthly cap
- Outcome metric (approved emails, qualified leads, resolved tickets)
- Weekly spend, weekly accepted outcomes, cost per outcome
- Manual fallback: who does it by hand, and where the runbook lives
The data-access column is not decoration. Collibra cites a Harris Poll it commissioned in which nearly 30% of companies caught agents accessing or surfacing data they were not permitted to see. A register that lists permissions is how you find that before an agent does.
Step 2: one key per agent
Tracking only works if spend can be attributed. Give every agent its own API key, and group keys by purpose: a Claude workspace per team or client, an OpenAI project per team or client. If two agents share a key, you cannot separate their costs later. This is our recommended setup, and it is what makes the rest of this guide cheap.
Step 3: pull Claude usage and cost
Anthropic’s Usage and Cost Admin API covers Claude Console organizations. A few specifics from the documentation:
- It needs an Admin API key (starting
sk-ant-admin01-). Regular workspace API keys do not work, and individual accounts cannot use it. - The usage endpoint,
/v1/organizations/usage_report/messages, returns token counts in 1-minute, 1-hour or 1-day buckets. Counts are split into uncached input, cached input, cache creation and output tokens. You can filter by API key, workspace and model, and group by model. - The cost endpoint,
/v1/organizations/cost_report, returns USD costs in daily buckets, grouped by workspace or description. - Priority Tier costs are not in the cost endpoint, so track them through the usage endpoint. Console playground use has no API key and shows as null.
- Data usually appears within about five minutes, sometimes later. Poll once a minute at most for sustained use. For a weekly report, one daily-bucket pull is plenty.
Anthropic’s page notes that the API is for Console organizations. Claude Enterprise organizations use a different API, and per-user Claude Code costs have their own analytics API. If part of your team works in seats rather than the API, that spend will not appear here.
Step 4: pull GPT usage and cost
OpenAI’s Usage API, launched in December 2024, lets you monitor token use by minute, hour or day and filter by API key, project ID, user ID and model. A separate Costs endpoint gives daily spend. Two cautions. OpenAI itself says Usage figures may not match Costs data and recommends not relying on the Usage API for financial purposes, so use Costs for money and Usage for volume. And users on OpenAI’s developer forum report that a regular API key returns a missing-scope error and that an admin key is required. That is a community report, not official documentation, and we could not open OpenAI’s reference page, so confirm in your own account.
Step 5: the weekly read
- Once a week, pull cost per key from both vendors into the register.
- Add the human side: review time per output, from whoever owns the agent.
- Enter accepted outcomes from the system where the outcome lives: the ESP, CRM or help desk.
- Compute cost per accepted outcome and compare to last week.
- Flag anything that is over its cap or whose cost per outcome moved more than 25%. That threshold is our rule of thumb, so tune it.
This is the habit Gartner’s Will Sommer is describing in its inference cost guidance: “Enterprises cannot optimize what they cannot observe.” Gartner forecasts cost per agentic workflow to rise more than fivefold through 2028, so the week-over-week number is the early signal.
What to do about it
- Build the register today. Start with the agents you already run, even if some columns stay blank.
- Split shared keys so every agent has its own, and group them by workspace or project.
- Get an admin credential on each platform and test one pull before you automate anything.
- Set a monthly cap and a named owner per agent, and review the sheet in a fixed weekly slot.
- Write the manual fallback for each row, so you can switch an agent off when its number turns the wrong way.