Key takeaways
- Claude Code has no per-client report on most plans, so record the client on every run.
- Split by cost per run when you have it; share of runs or time are fallbacks that can drift.
- Put internal work and any gap with the bill on an unallocated line, and decide once how to treat it.
To work out Claude Code cost per client, take the month's total, record which client each run was for, and share the total out in proportion. Use each run's own cost if you have it. If you do not, use each client's share of runs or share of time. Put internal work on an "unallocated" line so it does not land on a client. This post shows all three splits on one sample month, with the math. For how to bill the result, see how to bill clients for AI agent work.
In short: Claude Code has no built-in per-client report on most plans. You build one by tagging each run with a client, taking its cost from /usage or ccusage, and sharing the month's total by each client's cost, runs or time, with internal work on an unallocated line.
Anthropic's docs were checked in November 2026. Every dollar figure in the worked example is a sample number, invented to show the math.
The three splits at a glance
| Split | Needs | Fair when | Weak spot |
|---|---|---|---|
| Cost per run | A cost on every run | You pay per use and the runs are logged | Needs a per-run record |
| Share of runs | Only a count of runs per client | Runs are about the same size | One heavy run on one client skews it |
| Share of time | Run time or hours per client | Longer runs cost more | A long, idle run counts as heavy |
If you can get cost per run, use it. The other two are fallbacks, and the worked example below shows how far they can drift from it.
How to see Claude Code cost per client or project
On most plans, Claude Code has no per-client report, so you build one from four places.
The /usage command. Anthropic's cost page says to run /usage and look under the Session heading for the current session's token usage. It also says Claude Code "computes the dollar figure locally from token counts at list price" and that "the figure is an estimate, so for authoritative billing" you should use your organization's billing views (Anthropic, checked November 2026). The totals reset when /clear starts a new session, so note the figure at the end of a run, not at the end of the day.
ccusage. This is an open source command line tool. Its README describes it as reading "local usage data from coding agent CLIs" and turning it into "daily, weekly, monthly, and session reports." For Claude Code it lists --instances to "Group Claude Code by project/instance" and --project <name> to "Filter to specific Claude project" (ccusage README, checked November 2026). If each client lives in its own project folder, that is a rough per-client cut. The free AI agent cost calculator takes ccusage output and has a per-client split.
The Claude Console, on API billing. Anthropic says workspaces let you "separate different projects, environments, or teams while maintaining centralized billing and administration," and that you can track usage and costs by workspace with the Usage and Cost Analytics API, grouped by workspace_id (Anthropic, checked November 2026). One workspace per client gives you a cost report per client, while the bill stays one bill. There is a catch for Claude Code: when someone signs in to Claude Code with a Console account, Anthropic creates a single "Claude Code" workspace and adds each member to it, with a per-user key you cannot create by hand. So Claude Code traffic signed in that way is split by person, not by client. Whether you can point Claude Code at a client's own workspace key was not something I could confirm from these pages, so check before you build on it.
Project tags, on Enterprise. Anthropic's Help Center describes project tags, in beta on Claude Enterprise plans only, where Claude Code users set the project in a settings file and spend can be grouped by a tag such as client_matter. It lists limits: Claude Code on the web, the API and Console, and Claude Code through an API key or a gateway are not covered, and sessions with no project set show as "Not in a project" with no warning (Anthropic Help Center, checked November 2026). Useful if you are on Enterprise. Most small agencies are not.
Whichever source you use, the cost you get is the list-price cost of the tokens. Anthropic's pricing page lists a separate price per million tokens for input, output, cache writes and cache reads, and says cache reads cost a fraction of the base input price (Anthropic, checked November 2026). That is why a long session can show a large token count and a modest cost.
A worked example, with sample numbers
These are sample numbers, not a benchmark and not a real client. The agency is invented. It pays per use for Claude Code, logged 34 runs in the month, and the month's total cost was $332.00.
| Client | Runs | Run time (hours) | Recorded cost |
|---|---|---|---|
| Harbor Dental | 14 | 9.5 | $168.00 |
| Lumen Labs | 9 | 6.0 | $96.00 |
| Oakline Studio | 6 | 3.5 | $38.00 |
| Unallocated (internal) | 5 | 3.0 | $30.00 |
| Total | 34 | 22.0 | $332.00 |

Check first that your recorded costs add up to the month's bill: $168 + $96 + $38 + $30 = $332. If the Console or your card statement shows more than your records add up to, the gap is real spend with no run attached. Put it on the unallocated line too.
Split 1: cost per run
Nothing to calculate. Each client gets the sum of their own runs' costs: Harbor Dental $168.00, Lumen Labs $96.00, Oakline Studio $38.00, unallocated $30.00. This is the most accurate split because it reflects what each run really used.
Split 2: share of runs
Each client's share is their runs divided by the 34 total, applied to $332.00.
- Harbor Dental: 14 / 34 = 41.2%, and $332 x 14 / 34 = $136.71
- Lumen Labs: 9 / 34 = 26.5%, and $332 x 9 / 34 = $87.88
- Oakline Studio: 6 / 34 = 17.6%, and $332 x 6 / 34 = $58.59
- Unallocated: 5 / 34 = 14.7%, and $332 x 5 / 34 = $48.82
The four amounts add to $332.00.
Split 3: share of time
Same method, using run hours out of 22.0.
- Harbor Dental: 9.5 / 22 = 43.2%, and $332 x 9.5 / 22 = $143.36
- Lumen Labs: 6.0 / 22 = 27.3%, and $332 x 6 / 22 = $90.55
- Oakline Studio: 3.5 / 22 = 15.9%, and $332 x 3.5 / 22 = $52.82
- Unallocated: 3.0 / 22 = 13.6%, and $332 x 3 / 22 = $45.27
These also add to $332.00.
The three side by side
| Client | Cost per run | Share of runs | Share of time |
|---|---|---|---|
| Harbor Dental | $168.00 | $136.71 | $143.36 |
| Lumen Labs | $96.00 | $87.88 | $90.55 |
| Oakline Studio | $38.00 | $58.59 | $52.82 |
| Unallocated | $30.00 | $48.82 | $45.27 |
| Total | $332.00 | $332.00 | $332.00 |
In this sample, Harbor Dental's runs were the heavy ones, so the two fallback splits under-charge Harbor Dental by $31.29 and $24.64, and over-charge Oakline Studio by $20.59 and $14.82. Share of time lands closer because heavier runs here also ran longer, but that is not guaranteed. A short run can be expensive and a long one cheap. The size of the gap depends on your own mix, which is the reason to log cost per run when you can.

To copy into a sheet, use these columns and a formula for each client: client share = client value / total value, then client cost = month total x client share.
| Client | Runs | Hours | Recorded cost | Share used | Allocated cost |
|---|---|---|---|---|---|
| (client) | |||||
| Unallocated | |||||
| Total | 100% | month total |

How to split Claude Code cost on a Max or Pro plan
On Pro or Max there is no per-run bill. Anthropic's cost page says "Claude Pro, Max, and Ultra subscribers have usage included in their subscription, so the session cost figure isn't relevant for billing purposes." The /usage dollar figure is then only a size indicator, not something you were charged.
What you have is a plan price. Anthropic's pricing page lists Pro at $20 if billed monthly and Max at $100 per month, with Max described as "5x Pro usage" (Anthropic, checked November 2026). The page does not state usage in hours or tokens, so you cannot turn the plan price into a per-token rate you can defend. Split the plan price by share of usage or time instead. If you are still choosing a plan, see is Claude Max worth it?
With the same sample hours and a $100 Max plan:
- Harbor Dental: 9.5 / 22 x $100 = $43.18
- Lumen Labs: 6.0 / 22 x $100 = $27.27
- Oakline Studio: 3.5 / 22 x $100 = $15.91
- Unallocated: 3.0 / 22 x $100 = $13.64

The four add to $100.00. Two cautions. The plan price does not fall in a quiet month, so each client's share is a share of a fixed cost, not what the work "cost". And if one plan also covers your own experiments, the unallocated line should carry that part. Before you charge clients for work done on a plan, read the plan's terms on commercial use.
How to treat internal and unbillable runs
Make "unallocated" a real line in the table, not a leftover. It holds internal tools, experiments, runs that touched two clients, runs for a client you will not bill, and any gap between your records and the bill. Decide once what happens to it. Common choices are to treat it as overhead, or to spread it across clients in proportion to their share. Spreading it makes every client's number a little higher, so say so if a client sees the figure. Whatever you choose, keep it the same from month to month.
For a run that truly spans two clients, either split it by hand and note it, or tag it to the client that asked for it and move on. Do not leave it untagged, because that is how a month's total stops adding up.
Once you know the cost per client, pricing AI-assisted work covers what to charge.
How Ruam fits
To track AI agent cost per client without a sheet, Ruam logs each Claude Code run on a client, with what it delivered, who started it, how long it ran and whether it is billable. On pay per use, Ruam works the cost out when the run reports what it used, at list prices. On Claude Max, runs show as included in your plan, and if you add what you pay each month, Ruam can show an estimate per run, marked as an estimate. A client's record shows billable agent time and the agent cost reported, and people's hours and agent runs sit side by side and stay separate (Ruam, checked November 2026).
That gives you the table above without retyping: runs and hours per client, and cost where it is known. One limit: agent cost does not reach invoices, margins, budgets, reports or exports yet, so you copy the figures across when you bill. Agent tracking is in Beta and open on every plan. See AI agent time tracking, the Claude Code page, and the full guide to logging runs. For the people side of the bill, use the free billable hours calculator.
What to do next
Pick last month. List each run with its client, hours and cost, build the table above, and compare the three splits. If the shortcuts are close to cost per run, keep the easy one. If they are far off, start logging cost per run now. Then decide how to charge the result, using how to bill clients for AI agent work.



