How to Bill Clients for Claude Code Usage
Short answer: First check how you pay for Claude Code. On the API (Anthropic Console or a cloud provider), usage is billed per token, so give each client its own Console workspace and API key: Anthropic then reports cost per client and you can invoice it at cost or with a stated markup. On a Pro, Max, Team or Enterprise seat there is no per-token bill to split, so recover the seat with a fixed AI tooling fee or treat it as overhead. Either way, put the rule in the contract and show AI usage as its own invoice line next to the hours.
Two ways Claude Code gets paid for, and why it matters
Anthropic's Claude Code cost documentation (read 27 November 2026) describes two set-ups:
| How you pay | What you can bill |
|---|---|
| API: Console or a cloud provider. Usage is billed per token to your organisation. | The real cost of each client's work, if each client has its own workspace or key. Pass it through at cost or with a markup. |
| Subscription seat: Pro, Max, Ultra, Team or Enterprise. Team and Enterprise members draw on a per-seat allowance that resets on a five-hour and a weekly window. | No per-client bill exists. Anthropic says the session cost estimate isn't relevant for billing for Pro, Max and Ultra subscribers. Use a fixed AI tooling fee, or absorb it. |
For a sense of scale, the same page says the average across enterprise deployments is around $13 per developer per active day and $150–250 per developer per month, with 90% of users below $30 per active day. That is a reasonable starting point when you set a fixed monthly fee.
Method 1: one Console workspace and API key per client
Anthropic's docs say API organisations manage Claude Code spend through workspaces, with spend limits and usage and cost reporting in the Console. So:
- Create a workspace per client in the Anthropic Console (for example "Client – Acme") and an API key inside it. Set a monthly spend limit if the contract caps AI usage.
- Use that key for Claude Code whenever you work in that client's repository, and nowhere else.
- At month end, the Console's cost report gives each workspace's total. That is the client's AI usage line.
Note: the workspace Anthropic creates automatically for Claude Code sign-ins doesn't let you create API keys yourself, so per-client keys live in workspaces you create.
With eBRBe: paste an Anthropic Admin key into Settings → Integrations → AI provider usage (Pro plan and above). The usage sync runs daily, imports usage and cost by API key, workspace and model, and you map each key or workspace to a client or project. The costs then appear as agent runs ready to go on that client's invoice, with your markup, and a reconciliation view shows anything not yet attributed.
Method 2: log each session against the client's project
If several clients share one key, you need the split per session instead. Claude Code writes a transcript of every session, including the token usage of each response, and its hooks receive that transcript's path when a turn or session ends.
eBRBe's CLI uses exactly that: ebrbe hook claude-code adds a SessionEnd and a Stop hook that sum the tokens per model and log one agent run per model against the project named in the repository's .ebrbe.json. It never blocks Claude Code, and re-runs don't double count. Honest caveat: the @ebrbe/cli package is not on npm yet. Until it is, log sessions through the MCP server (log_agent_run), the REST API, or the "Log an agent run manually" form in the app. eBRBe's price table holds the Claude models, so a run logged with token counts gets its cost worked out for you.
Claude Code can also export OpenTelemetry data (turned on with CLAUDE_CODE_ENABLE_TELEMETRY=1). That suits teams who already run a collector; for billing one session to one client, the transcript is simpler and exact.
Method 3: a fixed AI tooling fee
On subscription seats, charge a flat monthly fee per client for AI tooling, named in the contract, or build it into your day rate. It's simple and predictable, but it isn't a pass-through of real cost, so don't describe it as one on the invoice.
At cost, or with a markup?
Both are common. At cost is the most transparent; cost plus a stated percentage pays for choosing, running and reviewing the agent's work. See what a typical run costs on each model in what a coding-agent run costs on each Claude model, compare pricing models in our guide to billing AI agent costs, and work out your numbers with the AI agent cost & markup calculator. Using other tools too? See how to bill clients for Cursor usage, how to bill clients for OpenAI Codex usage, how to bill clients for GitHub Copilot usage, how to bill clients for Windsurf (Devin Desktop) usage, how to bill clients for Aider usage and how to bill clients for Cline usage.
A contract clause you can adapt
Agree the rule in the statement of work before the first invoice. A starting point (have it checked for your jurisdiction; this is not legal advice):
"We use AI development tools, including Anthropic's Claude Code, in delivering the services. Usage-based charges for these tools incurred on the API key or workspace assigned to your work are invoiced monthly as a separate 'AI usage' line, at cost plus [X]%, as reported by the provider. Fixed subscription costs are [not charged separately / covered by a fixed AI tooling fee of [amount] per month]. We will not exceed [amount] of AI usage in a month without your written approval."
eBRBe's AI agent build project template is set up for this kind of engagement.
Frequently Asked Questions
Can I charge a client for my Claude Code usage?
Yes, if the contract says so. Agree before work starts whether AI usage is passed through at cost, charged with a stated markup, covered by a fixed fee or absorbed, and show it as its own invoice line next to the hours.
How do I split Claude Code API costs by client?
Give each client its own Anthropic Console workspace with its own API key, and run Claude Code with that key when you work on that client's repository. Anthropic bills API usage per token to your organisation and reports usage and cost per workspace and per key, so each client's share is already separated. eBRBe's provider usage sync reads those reports daily and maps each key or workspace to a client (Pro plan and above).
What if I use Claude Code on a Pro, Max, Team or Enterprise plan?
A subscription seat has no per-token bill to split: Anthropic's own docs say the session cost estimate isn't relevant for billing on Pro, Max and Ultra. Treat the seat as overhead, or recover it with a fixed monthly AI tooling fee per client that the contract names.
How much does Claude Code cost per developer?
Anthropic's cost documentation says that across enterprise deployments the average is around $13 per developer per active day and $150-250 per developer per month, with 90% of users below $30 per active day. Your own numbers depend on the model, the size of the codebase and how long sessions run.
Does eBRBe log Claude Code sessions automatically?
Through the Anthropic usage sync, yes, for usage billed to your API keys. eBRBe's CLI also has a Claude Code hook (SessionEnd and Stop) that reads each session's transcript and logs the token cost per model against the project named in the repo's .ebrbe.json, but the @ebrbe/cli package is not on npm yet. Until it is, use the usage sync, the MCP log_agent_run tool, the REST API or the manual agent-run form.
Next step on eBRBe
eBRBe puts Claude Code and other AI agent costs on the same client invoice as human hours, with your markup, and the client pays online. Free for up to 3 people; paid plans from $9 per member a month, with a 14-day trial. Want to see it first? The pricing page has an Explore the demo button that opens a read-only demo workspace with made-up data, no account needed.
View pricing and explore the demo →