Configuring Claude Code (Admin API)
Configure the Claude Code Admin API connector in LinearB to collect detailed user-level Claude usage, token, session, and cost data.
Overview
LinearB supports a dedicated Claude Code Admin API connector for organizations that use Claude Code through an Anthropic API plan and want Claude usage data available in AI Analytics.
Use this integration path to collect Claude Code usage data, including user-level daily attribution, session counts, pull request and commit activity, tool action counts, token usage, and estimated cost reporting.
Important:
LinearB supports one Claude connector at a time in Settings → Company Settings → AI Tools → Claude Code. Choose the connector type that matches your Claude environment and reporting needs.
LinearB supports one Claude connector at a time in Settings → Company Settings → AI Tools → Claude Code. Choose the connector type that matches your Claude environment and reporting needs.
When to Use the Admin API Path
- You want Claude Code usage data available in AI Analytics.
- Your organization uses Claude Code through an Anthropic API plan or license.
Before You Begin
- LinearB role: Company Admin
- Anthropic access: Organization Admin
- An Admin-level Anthropic API key
Step 1 — Generate an Anthropic Admin API Key
- Log in to your Anthropic admin console.
- Go to the API Keys section.
- Generate a new API key.
- Confirm the key has Admin access.
- Store the key securely. You may not be able to view it again after creation.
Step 2 — Add the Claude Code Admin API Connector in LinearB
- Go to Settings → Company Settings → AI Tools → Claude Code.
- Choose Add connector.
- Select Admin API as the connector type.
- Paste the API key into the required token field.
- Click Save.
After validation succeeds, the connector appears as a separate Claude configuration with its own status.
Historical Data & Refresh Cadence
- Up to 90 days of historical Claude usage data can be backfilled on initial connection.
- Activity before that window does not appear in AI Analytics or AI Insights.
- After the initial connection, data is updated on a daily cadence.
What Data This Path Provides
The Claude Code Admin API is the richest current Claude collection path supported by LinearB.
- User-level daily usage data
- Session counts
- Commit and pull request counts
- Accepted and rejected tool action counts
- Accepted lines added and deleted
- Per-model token breakdown
- Estimated cost by model
Where Data Appears
- AI Active Users
- AI Adoption Rate
- AI Coding Activity
- AI Actions
- AI Analytics Dashboard
- AI Insights Dashboard
Known Limitations
- Claude data is updated daily, not in real time.
- Suggestion-level acceptance metrics are not exposed as a separate Claude metric.
- AWS Bedrock Claude integrations are not part of this Admin API setup path.
Related Claude Integration Paths
How did we do?