Skip to content
ruam.ai

Claude Code cost per client: how to split a month

Claude Code cost per client: split one month by cost per run, share of runs or share of time, with a worked example and a table you can copy.

Indrayudh Sen
Indrayudh Sen

, 9 min read

A sample month of Claude Code cost per client: Harbor Dental, Lumen Labs, Oakline Studio and unallocated, $332 in total

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
A $332 month of Claude Code split per client by cost per run, share of runs and share of time
Each method shares out the same $332. Sample numbers.

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.

Bar chart of each client's Claude Code cost under three split methods, from one $332 sample month
Cost per run puts Harbor Dental's heavy runs on Harbor Dental. The two fallbacks spread them out.

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
Ruam's free AI agent cost calculator splitting a $100 Claude Max plan between four sample clients
The same split in the free AI agent cost calculator, with hours as the share.

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
A $100 Claude Max plan split per client by hours: $43.18, $27.27, $15.91 and $13.64 unallocated
On a plan, split the plan price, not a token cost. Sample hours.

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.

Questions

How do I see what Claude Code costs per client?

On most plans, Claude Code has no per-client report. Record the client on each run, take the cost from /usage or ccusage, and add up each client's runs at month end. On API billing you can also use one Console workspace per client, but Claude Code signed in with a Console account uses a single shared Claude Code workspace, so check before relying on it.

How do I split Claude Code costs between clients?

Use each run's own cost if you have it. If not, split the month's total by each client's share of runs, or better, share of time. Show the split in a table and keep internal work on an unallocated line.

How do I track Claude Code cost per project?

For a rough cut, ccusage can group Claude Code by project or instance and filter by project name. For a record you can bill from, log each run with its client and ticket as well, since a project folder name rarely matches a client.

Is the /usage cost figure what I was billed?

Not necessarily. Anthropic says the figure is computed locally from token counts at list price and is an estimate, and that on Pro, Max and Ultra plans it is not relevant for billing. Use it to compare runs, and use your bill for the total.

How do I split the cost on a Claude Max or Pro plan?

There is no cost per run, so split the plan price. Divide it by each client's share of usage or time, and give internal use its own line. The plan price is fixed, so a quiet month does not make the work cheaper.

What do I do with internal or unbillable runs?

Put them on an unallocated line and decide once whether it is overhead or spread across clients. Include any gap between your records and the actual bill.

How do I track AI agent cost per client?

Record the client on every run, take each run's cost from the agent's usage figures, and add them up by client at month end. For Claude Code, use /usage or ccusage. Keep internal work on an unallocated line, and check that your records add up to the bill.

Does Claude Code have a per-project cost report?

Not in the built-in view. /usage shows the current session. ccusage can group Claude Code by project folder and filter by project name, which is a rough per-client cut if each client has its own folder. On Enterprise, Anthropic's project tags can group spend by tag, in beta.

Should I split by runs or by time?

Split by each run's own cost if you have it. If you only have a count of runs, split by runs. If you have run time, split by time, because longer runs tend to use more. Check one month against actual cost per run to see how far off the shortcut is.

What do I need to record to do this?

Per run: the client, the ticket, the date, how long it ran, the cost or the plan it ran on, and whether it is billable. The guide to AI agent time tracking lists the fields.

Hours that count themselves.

By project, client and shift. No screenshots. Free forever for one person.

Start your 7-day trial
Indrayudh Sen, Founder, Ruam
Indrayudh Sen

Founder, Ruam

Indrayudh Sen, the founder of Ruam, has managed remote teams since 2020 and has run a cold email agency.

Newsletter

New articles by email.

One email when there's a new article. No spam, unsubscribe any time.

See our Privacy Policy.

More articles

Time tracking, 5 min read

How many work days in a year? 2026 and 2027 counts

2026 has 261 weekdays and 250 work days after the 11 US federal holidays. 2027 has 261 weekdays and 249 work days. Month-by-month tables, hours and PTO math.

Indrayudh SenIndrayudh Sen