Tracking Claude.ai Spend

Overview

This page describes a manual workaround for bringing Claude.ai spend into Finout. The native Anthropic integration covers cost and usage data from Anthropic's API platform (api.anthropic.com). For Claude.ai spend — chat, Claude Code, and Cowork — Enterprise customers should use the native Enterprise integration (Beta). The workaround on this page applies to accounts that are using the Team plans, which the Enterprise integration does not support

The workaround loads a CSV export from the Claude.ai admin console as a Custom Cost Center in Finout, so Claude.ai spend appears alongside your API platform spend in MegaBill.

Before you start

The Claude.ai spend export only captures spend that exceeds your included usage allotment. If extra usage isn't enabled on your Team plan, no spend report is generated. Flat per-seat fees are billed by Anthropic outside of the spend export and appear only on your Anthropic invoice; they are not covered by the workaround on this page.

Who can run the export

On Team plans, only Owner and Primary Owner roles can view usage analytics and run the spend export. Admins on Team plans cannot. The automation described below needs to authenticate as a role with access.

Set up a Custom Cost Center for Claude.ai spend

The pipeline has three parts:

  1. Pull the spend report from Claude.ai on a daily schedule.

  2. Transform it to the Custom Cost Center schema.

  3. Drop the transformed file into an S3 bucket Finout has access to.

The Custom Cost Center doc covers schema requirements, S3 setup, and ingestion behavior. The sections below cover what is specific to the Claude.ai source.

1. Pull the spend report from Claude.ai

Anthropic does not expose this data through a public API for Team plans, so the daily pull is implemented as a browser-driven automation against the Claude.ai admin console. The manual UI flow looks like this:

  1. Navigate to Admin settings > All activity in Claude.ai.

  2. Scroll to the Spend section.

  3. Click Export Spend Report.

  4. Choose Custom as the time period and set the start and end date to the previous day.

  5. Download the CSV.

It is recommended to replicate this flow in a headless authenticated session running on a daily schedule, using a browser automation framework such as Playwright, Selenium, or an RPA platform. Configuring the export with a one-day window keeps the data daily-granular in Finout.

The export has a one-day lag. Today's spend is available tomorrow. Plan dashboards and anomaly detection accordingly

2. Transform to the Custom Cost Center schema

The Claude.ai export is structured around per-user, per-model rows summed across the selected date range. To load it into a Custom Cost Center, transform each row to include the two mandatory columns plus any dimensions you want to slice on in Finout.

Custom Cost Center column
Source from Claude.ai export
Notes

UsageDate

Date of usage

Format YYYY-MM-DD. Run a daily export window to get one date per row.

Cost

Net cost in USD

Use the post-discount cost column to match what is actually invoiced.

User

User email

Optional dimension. Enables per-user views and Virtual Tag mapping.

Model

Model

Optional dimension. Sonnet, Opus, Haiku, etc.

3. Drop the file into an S3 bucket Finout has access to

Provision an S3 bucket on your side and grant Finout access to it, then write the transformed CSV there. Once files are available in the bucket, contact [email protected] to complete the integration. The full setup steps — bucket configuration, access permissions, and ingestion behavior — are covered in the Custom Cost Center doc.

FAQs

Why isn't my Claude.ai spend included in the main Anthropic integration? The main integration uses Anthropic's Admin API, which exposes the API platform only. Claude.ai data is published separately. Enterprise customers can connect Claude.ai data natively through the Anthropic Enterprise integration (Beta). Team customers and those needing pre-2026 historical data can use the workaround on this page.

The export only shows partial spend on my Team plan. How do I track the rest? The spend export only contains usage that exceeds your included allotment. Flat per-seat fees are billed separately by Anthropic and aren't part of the export.

For help designing the daily extraction, the transformation, or the S3 drop pattern, contact [email protected].

Last updated

Was this helpful?