# Tracking Claude.ai Spend

{% hint style="warning" %}
**On an Anthropic Enterprise plan?** The native [Anthropic Enterprise integration (Beta)](https://docs.finout.io/billing-integrations/ai-providers/connect-to-anthropic#anthropic-enterprise-data-beta) brings Claude.ai data into Finout without the manual workaround described below. Use this page only if you are on a Team plan
{% endhint %}

### Overview

This page describes a manual workaround for bringing Claude.ai spend into Finout. The native [Anthropic integration](https://claude.ai/connect-to-anthropic) 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)](https://docs.finout.io/billing-integrations/ai-providers/connect-to-anthropic#anthropic-enterprise-data-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](https://claude.ai/custom-cost-sources/custom-cost-centers) 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](https://claude.ai/custom-cost-sources/custom-cost-centers) 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.

{% hint style="info" %}
**The export has a one-day lag.** Today's spend is available tomorrow. Plan dashboards and anomaly detection accordingly
{% endhint %}

#### 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 <support@finout.io> to complete the integration. The full setup steps — bucket configuration, access permissions, and ingestion behavior — are covered in the [Custom Cost Center](https://claude.ai/custom-cost-sources/custom-cost-centers) 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)](https://docs.finout.io/billing-integrations/ai-providers/connect-to-anthropic#anthropic-enterprise-data-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 <support@finout.io>.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.finout.io/billing-integrations/ai-providers/connect-to-anthropic/tracking-claude.ai-spend.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
