Skip to main content

Claude Code integration (OTLP)

Send Claude Code usage to Leanmote with OTLP telemetry or an Admin API key, and what each method reads.

The Claude Code integration uses OpenTelemetry (OTLP) to stream session telemetry into Leanmote. It populates AI Return alongside other AI tool integrations.


​

What Leanmote pulls from Claude Code


​

  • Session counts and duration per user and team.

  • Command and tool-use volumes.

  • Token consumption when reported.


​

Connect Claude Code


​

Open Administration → Integrations, find Claude Code under AI tools and click Connect. Leanmote asks how your company pays for Claude Code:


​

Team or Enterprise plan (billed per seat) — OpenTelemetry. This is the main method.


​

  1. Leanmote generates your settings: the OTLP addresses and a token of your own.

  2. In your Claude.ai admin console, go to Admin Settings › Claude Code › Managed settings, paste the settings and save.

  3. Tell your team before you save: the next time each person opens Claude Code, they see a screen asking them to approve the settings and must choose Yes, I trust these settings. Its text about running code and reading prompts is generic for any company setting, not a description of what Leanmote does.

  4. Activity shows up in Leanmote within a few minutes.


​

What Leanmote receives: how often and how long your team uses Claude Code, lines changed, commits and pull requests created with it, cost by model, accepted and rejected suggestions, each account's email and the name and URL of each repository. What it never receives: prompts, Claude's answers, the content Claude reads or writes, or your source code. OTEL_LOG_USER_PROMPTS, OTEL_LOG_ASSISTANT_RESPONSES, OTEL_LOG_TOOL_CONTENT and OTEL_LOG_RAW_API_BODIES stay off.


​

Claude Console (billed per use) — Admin API key. Paste an Admin API key of your Anthropic Console organization (it starts with sk-ant-admin).


​

What you'll see


​

  • Adoption panel on AI Return showing active Claude Code users by team.

  • Session-volume trend over the period.

  • Impact comparisons against teams not yet using Claude Code.


​

Common issues


​

  • No telemetry arriving — verify the OTLP endpoint URL and token in your Claude Code configuration. Network egress from your dev machines to Leanmote must be allowed.

  • User mapping missing — Claude Code emits a user identifier; map that identifier to a Leanmote teammate in Administration → Users.


​

Connection details


​

Detail

Value

Connection type

OpenTelemetry (OTLP): Claude Code pushes usage data to Leanmote with a token Leanmote generates. Or an Admin API key of Claude Console.

Who connects in Claude

OTLP: an admin of your Claude.ai Team or Enterprise organization, who can edit Managed settings; then each person approves the settings in Claude Code. Admin API key: an admin of your Anthropic Console organization, the only role that can create Admin API keys.

Who can connect in Leanmote

Owner or Manager.

Write access

OTLP: none — Leanmote gets no access to your Claude organization; Claude Code sends data to Leanmote. Admin API key: the key can administer your Anthropic organization (API keys, members, invites, workspaces), and Anthropic does not offer a read-only Admin key. Leanmote only reads.


​

Permissions required


​

  • OTLP — Managed settings in Claude.ai, and each person's approval in Claude Code. Leanmote's token only lets Claude Code send data to Leanmote.

  • Admin API key — read calls only: your organization, its users and invites, the Claude Code usage report and the messages usage report.


​

Related articles


​

  • AI Return

  • Integrations overview

  • Working with the Leanmote API

Did this answer your question?