Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/integrations/integration-reference/integration-coding-agents-billing.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/integrations/integration-reference/integration-coding-agents-billing/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Coding agents billing integration for Grafana Cloud
The Coding agents billing integration brings what your coding agents cost into Grafana Cloud, straight from your provider’s bill, broken down by person, product and model. It needs one admin key and nothing on developers’ machines, and it covers all the spend: every developer, CI, and apps that call the API with a key. Anthropic is supported today.
How it differs from related integrations:
- Claude Code and OpenAI Codex collect telemetry from each developer’s CLI, with cost estimated on the developer’s machine. This integration reads the amount the provider bills, including use those CLIs don’t report. Use them together: telemetry for activity, billing for cost.
- Anthropic shows cost by workspace and model. This integration adds who spent it and on which product, such as Claude Code or the API.
The integration reads the cost your provider bills you for, not an estimate from agent telemetry. Each scrape job reads one provider.
Supported providers
| Provider | Key | Organizations |
|---|---|---|
| Anthropic | Admin API key (starts with sk-ant-admin) | Claude Console organizations. Support for Claude Enterprise organizations is coming soon. Claude Pro, Max and Team plans aren’t supported. |
Before you begin
- Anthropic: you need an Admin API key for your Claude Console organization. Admin API keys differ from regular API keys and start with
sk-ant-admin. Only organization admins can create them, in the Claude Console under Settings > Admin keys.
Install the Coding agents billing integration for Grafana Cloud
- In your Grafana Cloud stack, click Connections in the left-hand menu.
- Find and select the Coding agents billing tile to open the integration.
- Follow the steps on the Configuration page to create a scrape job, which pulls the billed cost from your provider.
- Once the scrape job is created, click Install to add the prebuilt dashboards to your Grafana Cloud instance.
Configuration
The integration scrapes your provider’s billing API every 5 minutes. You can create several scrape jobs on one Grafana Cloud instance, for example one per provider or one per organization.
Create a scrape job
- Give the scrape job a unique name, using only alphanumeric characters, dashes and underscores. Every series the job collects is labeled with this name in
scrape_job. - Select the provider.
- Enter the provider’s key.
- Choose whether to Break down cost per person. It’s on by default and adds a
userlabel with each person’s email. Turn it off if you don’t want people’s emails in your metrics. - Click Test connection to check that Grafana Cloud can read the billing API with this key. If it can’t, an error message says why.
- Save the scrape job. It starts scraping right away and writes the metrics into your Grafana Cloud Metrics instance.
After installation, open the Coding agents billing overview dashboard to explore the billed cost, or the Scrape overview dashboard to check the status of your scrape jobs.
How to read the data
agento11y_billed_cost_totalis the billed cost in USD for a calendar month (monthlabel, UTC). It only goes up during the month. Use its latest value for “this month”.- With Break down cost per person on, spend made with an API key has the key’s creator in
userand the key’s name inapi_key. A person’s own spend has noapi_key. Spend with no person behind it, such as a service account’s key or a key whose creator has left the organization, hasuser="unassigned". - The provider’s numbers are usually a few hours behind, and up to 24 hours.
agento11y_billed_cost_data_through_timestamp_secondssays up to when they’re complete. A month’s values can still change after it ends. - When the provider rejects a scrape, for example because a key was revoked, the cost series stop updating and
metrics_endpoint_export_response_successis0, with the provider’s status code instatus_code.
Dashboards
The Coding agents billing integration installs the following dashboards in your Grafana Cloud instance.
- Coding agents billing overview
- Scrape overview
Billed cost this month, by product, model and cost type

Billed cost by person and by day

Changelog
# 1.0.0 - December 2026
* Initial release: billed cost from Anthropic, with a billing overview dashboard and a scrape overview dashboardWas this page helpful?
Related resources from Grafana Labs


