AI at Work

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:

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:

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:

Knowing Where Tags Apply

The article has a table of where spend is reported by project. Tagged spend comes from:

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

  1. Go to Organization settings > Organization > Project tags.
  2. Click Create tag.
  3. Enter a name, like cost_code. Names are lowercase with no spaces, and you cannot change a name later, so pick it carefully.
  4. Under Allowed values, choose Predefined values only (users pick from your list) or Any value (users type their own).
  5. 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.
  6. Optionally turn on the Required toggle so users must set a value on new projects.
  7. 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

  1. Open the project.
  2. Under Tags, click Add tag.
  3. 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.

  1. Open the project in Claude and copy its ID, the last part of the URL after claude.ai/project/.
  2. Open .claude/settings.json in a repository, or ~/.claude/settings.json to apply it across repositories.
  3. Add the line below with your project ID.
  4. 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:

  1. Go to Organization settings > Usage > Spend by project.
  2. Use the Group by menu to select your tag.
  3. Use the Period and Product menus to narrow the results.
  4. 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:

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.

The article also notes that tag filter text travels in the URL, so it may appear in request logs.

Knowing the Limits

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.

Sources

My goal at Velza is to train, inspire, and equip you for your own AI pivot.

About the Author

Mike Wheeler

Mike Wheeler is the founder of Velza Training & Consulting and an O’Reilly published author. He has taught more than 500,000 learners across edX, LinkedIn Learning, Pearson, and Udemy, and he teaches live AI and Salesforce certification prep at Velza.

More about Mike and Velza