Preview
Agent Console is available to all Datadog customers in Preview.
Set up an integration for each coding agent you want to monitor in Agent Console.
Claude Code
Option 1: Anthropic Usage and Costs integration (recommended)
To monitor Claude Code with Agent Console, set up the Anthropic Usage and Costs integration.
After setup, navigate to the Agent Console and click the Claude Code tile to view metrics.
Option 2: OpenTelemetry (OTLP)
The following procedure configures Claude Code to send telemetry directly to Datadog with the OpenTelemetry protocol (OTLP).
Make sure that your Logs configuration includes a catch-all index, or an index that covers service:claude-code.
Generate a Datadog API key.
Set the following environment variables in your Claude Code settings file (for example, ~/.claude/settings.json):
{
"env": {
"CLAUDE_CODE_ENABLE_TELEMETRY": "1",
"OTEL_LOGS_EXPORTER": "otlp",
"OTEL_EXPORTER_OTLP_LOGS_PROTOCOL": "http/protobuf",
"OTEL_EXPORTER_OTLP_LOGS_ENDPOINT": "",
"OTEL_METRICS_EXPORTER": "otlp",
"OTEL_EXPORTER_OTLP_METRICS_PROTOCOL": "http/protobuf",
"OTEL_EXPORTER_OTLP_METRICS_ENDPOINT": "",
"OTEL_EXPORTER_OTLP_HEADERS": "dd-api-key=<DATADOG_API_KEY>"
}
}
Replace <DATADOG_API_KEY> with your Datadog API key.
To set up Agent Console for Claude Code across your organization, your IT team can use a Mobile Device Management (MDM) system or
server-managed settings to distribute the Claude Code settings file across all managed devices.
Restart Claude Code.
After you restart Claude Code, navigate to the Agent Console and click the Claude Code tile. Metrics (usage, cost, latency, errors) should appear within a few minutes.
Option 3: Forward data through the Datadog Agent
Make sure that your Logs configuration includes a catch-all index, or an index that covers service:claude-code.
Install the Datadog Agent.
Configure your Datadog Agent to enable the OpenTelemetry Collector:
otlp_config:
receiver:
protocols:
grpc:
endpoint: 0.0.0.0:4317
logs:
enabled: true
otelCollector:
enabled: true
Set the following environment variables in your Claude Code settings file (for example, ~/.claude/settings.json):
{
"env": {
"CLAUDE_CODE_ENABLE_TELEMETRY": "1",
"OTEL_METRICS_EXPORTER": "otlp",
"OTEL_LOGS_EXPORTER": "otlp",
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://127.0.0.1:4317",
"OTEL_EXPORTER_OTLP_PROTOCOL": "grpc",
"OTEL_METRIC_EXPORT_INTERVAL": "10000"
}
}
To set up Agent Console for Claude Code across your organization, your IT team can use a Mobile Device Management (MDM) system or
server-managed settings to distribute the Claude Code settings file across all managed devices.
Restart Claude Code.
After you restart Claude Code, navigate to the Agent Console and click the Claude Code tile. Metrics (usage, cost, latency, errors) should appear within a few minutes.
Cursor
To monitor Cursor with Agent Console, set up the Cursor integration using the Datadog Extension for Cursor.
After setup, navigate to the Agent Console and click the Cursor tile to view metrics.
GitHub Copilot
To monitor GitHub Copilot with Agent Console, set up the GitHub Copilot integration.
After setup, navigate to the Agent Console and click the GitHub Copilot tile to view metrics.
Further reading
Additional helpful documentation, links, and articles: