Skip to content

Claude Console ​

The Claude Console Source connects an AI System to a Claude API organization on platform.claude.com. Modulos reads the Claude Code usage, the API cost, the members, the API keys, and the rate limits of that organization. Modulos only reads.

Used byMetric Tests, Agent Tests, Scout, Risk Agent
ModePull
CredentialsAn Admin API key
Metric selectionType the metric name

For a Claude Enterprise organization on claude.ai, use the Claude Enterprise Source. It uses different keys.

What this is ​

The Claude Console Source reads the Claude Code usage of the API keys of the organization. It does not read Claude Code use through Amazon Bedrock, Google Cloud, or Microsoft Foundry, or through claude.ai Enterprise and Team seats.

Where in Modulos ​

  • AI System → Settings → Sources → Add Source → Claude Console adds the Source.

Before you start ​

  • An Organization Admin makes Claude Console available. See Source & Connectors.
  • You must be an organization admin on platform.claude.com.

How to create the Admin API key ​

  1. Sign in to platform.claude.com.
  2. Open Settings → Admin keys.
  3. Create a key.

An Admin API key starts with sk-ant-admin01-.

How to connect Claude Console ​

  1. Open AI System → Settings → Sources.
  2. Select Add Source.
  3. Select Claude Console.
  4. Type a Source Name.
  5. Paste the key into Admin API Key.
  6. Select Save.
Add Source dialog with Claude Console selected: the connection instructions on the left, the fields on the right.
Add a Claude Console Source.
  1. 1
    Admin API Key
    An Admin API key. It starts with sk-ant-admin01-.

If the key does not start with sk-ant-admin01-, the dialog tells you to use an Admin API key from Settings → Admin keys. When you save, Modulos reads the organization with the key. If Anthropic rejects the key, Modulos shows a general error and does not save the Source.

Metrics for Metric Tests ​

A Metric Test on a Claude Console Source reads one of these metrics:

  1. In the test dialog, type a metric name from the table.
  2. Select Check.

The first ten metrics give the Claude Code usage of the most recent closed UTC day that has data. Modulos looks back 7 to 31 days, more for a longer schedule period. us_inference_token_share covers the full look-back period.

MetricValue
tool_acceptance_ratePart of the edit and write suggestions of Claude Code that users accepted, from 0 to 1
tool_rejection_countSuggestions of Claude Code that users rejected
lines_of_code_addedLines of code that Claude Code added
commits_by_claude_codeCommits that Claude Code created
pull_requests_by_claude_codePull requests that Claude Code created
active_usersUsers or API keys that used Claude Code. Each counts one time.
sessions_totalClaude Code sessions
estimated_cost_centsEstimated spend of Claude Code for each currency, in the smallest unit of the currency (cents for USD). The value is a JSON object, for example {"EUR":1200,"USD":50000}.
distinct_models_usedDifferent models used through Claude Code
subscription_record_countUsage records of the subscription type. A Claude Console organization usually has none.
us_inference_token_sharePart of the tokens, from 0 to 1, that used US-only inference, from the tokens with a known inference location (US or global)
requests_per_minute_limitThe lowest requests-per-minute limit of the model groups of the organization
org_user_countMembers of the Claude Console organization, in all roles

estimated_cost_cents is a text metric. All other metrics are number metrics.

Scout, Agent Tests, and the Risk Agent ​

Scout, Agent Tests, and the Risk Agent read a Claude Console Source with read-only queries:

  • Usage: the Claude Code data of each user, totaled for 1 to 14 days, with sessions, lines of code, commits, pull requests, accepted and rejected suggestions, estimated cost, and models.
  • Cost: the spend in USD for a period of days, for each billing line item. It includes Claude Code and other API use.
  • Organization posture: members and roles, open invites, API keys with their status and age, workspaces, and rate limits.

Modulos does not read prompts, transcripts, file contents, or the secret values of API keys. Usage data appears about 1 hour late.

Important considerations ​

  • Give the Admin API key to Modulos only. Do not use it for other tools.
  • Scout marks active API keys that are older than 90 days and have no expiry date.