How to Bill Clients for Cline Usage
Short answer: Cline is free, open-source software, so what you pass on to a client is the model provider's bill. Give each client its own API key (an Anthropic workspace key, an OpenAI project key or an OpenRouter key) and make sure Cline is using that client's key while you work on their code. Cline stores its API key globally, not per project, so switch keys when you switch client, or give each client its own Cline CLI configuration folder. Then bill from the provider's usage report for that key, not Cline's on-screen estimate, as its own invoice line next to the hours.
What you are paying for with Cline
Cline is an open-source coding agent under the Apache 2.0 licence that runs in your editor, in the terminal and as a desktop app. Cline's pricing page says the open-source version has no subscriptions or seat fees: you pay for AI inference, either by bringing your own API key or by buying credits through the Cline provider (pay-as-you-go, from the Cline dashboard). Enterprise is a separate plan with custom pricing and centralised billing.
| How you pay | Per-client split? | What you can bill |
|---|---|---|
| Your own API key per client (Anthropic, OpenAI, OpenRouter and others) | Yes, at the provider | The provider's charges for that key, at cost or with a markup |
| One shared API key, or Cline credits | No | Task estimates you record per client, reconciled to the month's bill |
| The client's own API key | Not needed | Nothing to pass on: the client pays the provider directly |
| A local model (for example Ollama or LM Studio) | No API charge | Cover hardware in your day rate |
Step 1: make sure Cline is using the right client's key
This is the part that catches agencies out. Cline's configuration docs put API keys and provider settings in settings/providers.json inside the global configuration folder (~/.cline), and that global configuration applies to the IDE extension, the CLI and the SDK. The per-project .cline/ folder holds rules, workflows, hooks and skills, not keys. Unlike tools that read a key from the repo's .env, Cline uses whatever key is set globally, whichever client's code is open.
- In the editor: change the provider key in Cline's settings when you move to another client's work, and check it at the start of each session. A line in each client repo's Cline rules naming the key that repo bills to is a useful reminder.
- In the terminal: the Cline CLI takes
--config <path>(or theCLINE_DIRenvironment variable) to use a different configuration folder instead of~/.cline, so one folder per client keeps each client's key apart. Note that the-kflag also saves the key as the provider's key, so it changes the stored setting rather than applying to one run only.
Step 2: read the real cost per client from the provider
- Anthropic: create a workspace per client; API keys can be scoped to one workspace, and each workspace can have its own spend limit. The usage and cost reports can be filtered and grouped by API key and workspace (an Admin API key is needed).
- OpenAI: create a project per client. Each project has its own API keys, usage can be broken down by project, and projects can have a monthly spend limit.
- OpenRouter: create a key per client, optionally with a credit limit; each key reports its own usage.
Why not bill Cline's task-header cost?
Cline shows a running cost in the task header, and task history can be sorted by cost or tokens (task management docs). The docs call it an estimated cost based on your provider's pricing that may vary slightly from your final bill. It is handy for spotting an expensive task, and it is your only per-client record if you share one key or use Cline credits. For the invoice itself, use the provider's report for the client's key. Tasks are saved on your own machine, which also gives you a record of what the agent did for each client.
On Cline Enterprise, the enterprise docs describe a cost breakdown per team and OpenTelemetry export; the task.tokens event carries tokens and cost per task, which you can route into your own reporting.
Step 3: put it on the invoice with eBRBe
On Pro and above, eBRBe's Anthropic and OpenAI usage sync reads your organisation's usage and cost reports with an admin key, grouped by API key and by workspace or project. You map each client's key or workspace to that client once; from then on the usage arrives as agent runs on the client's project, and re-syncs update rather than duplicate. eBRBe also compares the provider's total with what has been attributed, so spend on a key you forgot to map shows up. For OpenRouter, Cline credits or other providers, add the month's cost per client with the CSV import or the REST API (POST /api/v1/agent-runs with cost_usd). The runs then sit on the client's invoice next to the hours, with your markup.
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. Compare pricing models in our guide to billing AI agent costs, work out your numbers with the AI agent cost & markup calculator, and see what each Claude model costs per coding-agent run. Using other tools too? See how to bill clients for Aider (also bring-your-own-key), Claude Code, Cursor, OpenAI Codex, GitHub Copilot and Windsurf (Devin Desktop) 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 Cline, with a model provider API key dedicated to your project. The provider's charges for that key are invoiced monthly as a separate 'AI usage' line at cost plus [X]%, with the provider's usage report available on request. We will not exceed [amount] of AI usage in a month without your written approval. If you prefer, you may supply your own API key, in which case the provider bills you directly."
Frequently Asked Questions
Does Cline cost anything?
The open-source Cline extension and CLI have no subscription or seat fee. You pay for model inference: either with your own API key from Anthropic, OpenAI, Google, OpenRouter or another provider, or with pay-as-you-go credits bought through the Cline provider. Cline Enterprise is a separate, custom-priced plan.
Can Cline use a different API key for each client project?
Not from project settings. Cline keeps provider settings and API keys in providers.json inside its global configuration folder (~/.cline by default), and that global configuration applies to the IDE extension, the CLI and the SDK alike; the per-project .cline folder holds rules, workflows, hooks and skills, not keys. So either switch the key when you switch client, or, with the Cline CLI, give each client its own configuration folder using --config or the CLINE_DIR environment variable.
Can I bill the cost Cline shows in the task header?
Use it as a guide. Cline's docs call it an estimated cost, worked out from your provider's pricing, which may differ slightly from the final bill. Bill from the provider's usage and cost report for the client's key.
What if I use Cline's own credits instead of an API key?
Then every client's work comes out of one credit balance, and there is no per-client split at the provider. Either move client work to per-client API keys, or record each task's estimated cost against the client yourself and reconcile it with the month's credit spend.
Does eBRBe work with Cline?
Yes, through the provider. On Pro and above, eBRBe's usage sync reads your Anthropic and OpenAI usage reports with an admin key, grouped by API key and workspace or project. Map each client's key to that client once and the costs arrive as agent runs ready for the invoice. For OpenRouter, Cline credits or anything else, add the month's cost per client by CSV import or the REST API.
Next step on eBRBe
eBRBe puts Cline, Aider, Claude Code, Copilot 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? Explore the demo: a read-only workspace with made-up data, no account needed.
Explore the demo or sign up free →