Tracking Claude Spend by Cost Code With Project Tags (Beta)
Anthropic's release notes for November 6, 2026 list a feature for anyone who has to account for AI spend: eligible Enterprise organizations can now tag projects with the codes they already use, like a charge code or client-matter number, and see most spend in those projects by tag. It is in beta. I read the release note, the help article Track spend by cost code with project tags, and the related usage analytics article. I have not used project tags myself. This post covers how tags work, who can use them, the setup steps as the help article gives them, and the limits that decide whether the numbers are good enough for a chargeback.
Understanding Project Tags
If your company bills work back to a department, a client or a grant, you need to know which Claude usage belongs to which code. Project tags attach that code to a Claude project, and the spend inside the project rolls up under it.
The help article describes two pieces:
- Tag. The category you report on, like
cost_codeorclient_matter. - Value. The code itself, like
CC-1042.
An owner creates the tag and its allowed values. Anyone who can edit a project can set the value for that project. Each tag holds one value per project, and a project can have up to 16 tags, so one project could carry both a cost_center and a client_matter.
The rule that matters most is in a callout at the top of the article: project tags only work inside projects. Work outside a project does not get a tag.
Checking Whether You Can Use It
As of November 23, 2026, the help article says project tags are in beta on Claude Enterprise plans only. They are not available to organizations with any of these:
- A HIPAA configuration
- Customer-managed encryption keys (CMEK)
- Zero data retention (ZDR), including ZDR for Claude Code, or minimal data retention
- Data stored outside the US
- Claude Desktop routed through their own model provider
There is no switch to turn on. The article says tags are on automatically for eligible organizations and change nothing until an owner creates a tag.
The roles are split:
- Create tags and manage values: Primary Owner, Owner, or a custom role with Owner access.
- Set a project's tags: "Can edit" access to the project.
- View spend by tag: Primary Owner, Owner, or a custom role with Analytics view and Billing view access.
- Create API keys: Primary Owner.
Knowing Where Tags Apply
The article has a table of where spend is reported by project. Tagged spend comes from:
- Chat in a project
- The unified chat and Cowork experience in a project
- A Cowork task on your computer, with Claude Desktop 3.6556.1 or later and one project picked for the task
- Claude Code in your terminal or on desktop, after you set the project for Claude Code (Claude Code 2.1.305 or later, or Claude Desktop 3.6556.1 or later)
Tags do not apply to Claude Code on the web, Claude for Office, Claude in Chrome, Claude Design, Claude in Slack and Microsoft Teams, Artifacts, voice mode, the Claude API or Console, or Claude Code through Amazon Bedrock, Google Cloud Vertex AI, a gateway or an API key. If a team does most of its work in one of those, a tag will not capture it.
Setting It Up
Here are the steps in the order the help article gives them.
Creating a Tag and Its Values
- Go to Organization settings > Organization > Project tags.
- Click Create tag.
- Enter a name, like
cost_code. Names are lowercase with no spaces, and you cannot change a name later, so pick it carefully. - Under Allowed values, choose Predefined values only (users pick from your list) or Any value (users type their own).
- If you chose Predefined values only, add your list under Values, one value per line, or upload a CSV with a single column headed
value. - Optionally turn on the Required toggle so users must set a value on new projects.
- Click Continue.
To add values later, open the tag on the Project tags page and click Add values or Import CSV.
Adding a Tag to a Project
- Open the project.
- Under Tags, click Add tag.
- Select the tag, then pick or enter a value.
Setting the Project for Claude Code
This is the step most likely to be missed. Claude Code has no project picker, so each user sets the project in a settings file. If no project is set, the article says Claude Code usage is not tagged and there is no warning.
- Open the project in Claude and copy its ID, the last part of the URL after
claude.ai/project/. - Open
.claude/settings.jsonin a repository, or~/.claude/settings.jsonto apply it across repositories. - Add the line below with your project ID.
- If you used a repository's settings file, trust the folder when Claude Code asks. The setting takes effect after that.
{ "attributionProject": "PROJECT_ID" }
The article warns that the file has to stay valid JSON, and that a stray comma can break Claude Code on that computer. If you roll this out to a team, a checked-in repository settings file is easier to keep right than asking everyone to edit their own.
Reading Spend by Tag
To see the numbers:
- Go to Organization settings > Usage > Spend by project.
- Use the Group by menu to select your tag.
- Use the Period and Product menus to narrow the results.
- Click Export CSV to download.
Data runs through the end of yesterday (UTC). Private projects show as "Private project" on this page and in the CSV, though the article notes the Analytics dashboard, Analytics API and Compliance API still show their real names.
Before anyone uses these numbers for a chargeback, the article lists points worth reading twice:
- Tag before the work starts. A new tag takes about two hours to take effect, and earlier spend in that project does not count toward it.
- History starts when tags became available to your organization. Earlier dates are not the full picture.
- Changing a tag does not move past spend. Usage stays under whatever tag the project had at the time.
- Untagged work has its own buckets. Spend outside a project shows as "Not in a project," including Claude Code with no project set. Spend in a project with no value for the tag shows as "No tag value."
- It is not your invoice. Amounts are shown after your discount and before credits, and recent numbers can change until about a week after month end.
- Seat usage is left out. A project used mostly on seats may show little or no spend.
The usage analytics article says the same thing from the other side: the dashboard, Analytics API and exported spend reports should closely match your invoice, but spend grouped by project tag may not.
Using the APIs
Both APIs are in beta, and the article says paths and names may change. A Primary Owner creates keys in Organization settings > Organization > API.
- Admin API, to set tags. A key with the
read:project_tagsandwrite:project_tagsscopes can list tags, add values to a tag's list, and set a project's tags. It cannot create tags, archive values or create projects. It uses aclaude_proj_ID, not the ID in the project's URL. - Analytics API, to pull spend. A key with the
read:analyticsscope can call the cost report and group by a project tag. Daily buckets cover up to 31 days per call, amounts are in cents and can include fractions of a cent, and each call returns up to 1000 rows. Ifhas_moreis true, keep paging or your totals come up short.
The article also notes that tag filter text travels in the URL, so it may appear in request logs.
Knowing the Limits
- It is beta, on Enterprise only, and several data residency and retention configurations are excluded.
- Tag names and values are visible to everyone in your organization. Keep sensitive information out of them. A client-matter number may itself be sensitive.
- Anyone who can edit a project can change its tags, and can clear one unless it is required. You cannot lock a tag.
- Required tags apply only to new projects created on the web. Existing projects are not affected, and the Admin API can still remove a required value.
- Claude does not check values against your finance systems. A predefined list limits what users can pick; it does not validate the code.
- Not in this beta: tags on a single chat or session, splitting spend across tags, renaming tags or values, and spend limits by tag.
Putting It to Work
If I were rolling this out, the order of operations would matter more than the feature itself. Create the tags and value lists first. Make projects the default place people work for billable or chargeable tasks, because nothing outside a project gets tagged. Push the attributionProject setting to Claude Code users before they start. Then, before the first chargeback, compare the Spend by project export against the "Not in a project" and "No tag value" rows to see how much spend fell outside the tags.
That last check is the same habit I write about in Why AI Should Not Grade Its Own Work: a report is a claim about the data, and you confirm it against the source before you act on it. Here the source is your invoice and your own records, and Anthropic's help article is clear that the tag view will not match the invoice exactly.
Related Reading
Sources
- Claude Help Center: Release notes (November 6, 2026 entry)
- Claude Help Center: Track spend by cost code with project tags
- Claude Help Center: View usage analytics for Team and Enterprise plans
My goal at Velza is to train, inspire, and equip you for your own AI pivot.
