SecureAuth AI Gateway
IntegrationsOpenTelemetry

Claude

Send Claude Code and Claude Cowork telemetry to the gateway

Claude Code and Claude Cowork emit OpenTelemetry usage data. Point them at your gateway's …/claude ingest endpoint to populate LLM Usage analytics.

Claude Code

Add the telemetry block to Claude Code's managed settings. Because managed settings apply to every user on a machine, shipping this file through your device-management tooling turns telemetry on for the whole organization automatically — no per-developer setup.

{
  "env": {
    "CLAUDE_CODE_ENABLE_TELEMETRY": "1",
    "OTEL_METRICS_EXPORTER": "otlp",
    "OTEL_LOGS_EXPORTER": "otlp",
    "OTEL_EXPORTER_OTLP_PROTOCOL": "http/protobuf",
    "OTEL_EXPORTER_OTLP_ENDPOINT": "<endpoint>/claude",
    "OTEL_EXPORTER_OTLP_HEADERS": "Authorization=Bearer <token>"
  }
}

Replace <endpoint> with the OTLP endpoint shown when you created the ingest key (for example, https://telemetry.your-gateway-host/api/v1/telemetry) and <token> with the saai_ingest_… key.

Claude Cowork

For Claude Cowork, configure telemetry in the Claude desktop app under Admin settings → Cowork:

FieldValue
OTLP endpoint<endpoint>/claude
OTLP protocolhttp/protobuf
OTLP headersAuthorization=Bearer <token>

On this page