Coding agents
Herd + Claude Code
Score and oversee Claude Code usage.
What it is
Claude Code’s built-in OpenTelemetry export, pointed at Herd with one ingest token for the whole organization. An Anthropic Admin API key adds usage and cost, and agent oversight hooks check tool calls before they run.
Why it exists
Engineers run Claude Code on their own machines, where no provider dashboard shows how it’s being used.
What it means for you
Claude Code activity shows up in AI Insights next to the rest of your AI use, with estimated cost and your highest-cost users. Prompt text is sent only if you turn it on.
- Access
- Inbound (each machine sends telemetry to Herd)
- Connects with
- Ingest token
How to connect Claude Code
The short version. The setup guide has every screen and setting.
Before you start
- Herd admin or Manage AI Governance permission
- A way to set environment variables on each machine that runs Claude Code, such as managed settings
- Works on any Claude plan
Create the ingest token
On the Connect Claude Code card in AI Insights → Setup, click Create ingest token. One token covers the whole organization and is shown once.
Set the exporter variables
Set the six required OpenTelemetry variables on each machine, or once in Claude Code’s managed settings. Copy the block from the card.
Choose what content to send
Prompt text, tool inputs, and tool results are each sent only if you set OTEL_LOG_USER_PROMPTS, OTEL_LOG_TOOL_DETAILS, or OTEL_LOG_TOOL_CONTENT.
Check the card
Start Claude Code in a fresh shell, run a prompt, and check the status row on the Connect Claude Code card.
The full walkthrough is in the Claude Code setup guide.
More Coding agents integrations
Herd connects to the rest of your stack too.
Join the Herd
See Herd working with Claude Code.
Bring your stack to a demo. We’ll connect it and show you what Herd does with it.