Scout Trails Docs

Scout Trails

Scout Trails records what your LLM coding agents do. Claude Code and Codex CLI send their built-in OpenTelemetry data to Scout Trails with a few lines of configuration — nothing to install — and the dashboard turns it into sessions, tool calls, cost and trends for your organization.

Get started

Connect your first agent →

Get started takes you to the dashboard’s guided setup, which creates your ingest key and fills it into a setup prompt for your agent. It also covers setting an agent up by hand, with the settings and a copy-paste setup prompt for each agent.

For Claude Code, add these lines to your shell profile (~/.zshrc, ~/.bashrc), replacing <your-ingest-key> with your ingest key, then start a new Claude Code session:

export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_LOGS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_PROTOCOL=grpc
export OTEL_EXPORTER_OTLP_ENDPOINT=https://ingest.scoutmonitoring.io:443
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <your-ingest-key>"
export OTEL_LOG_TOOL_DETAILS=1
export OTEL_METRICS_INCLUDE_REPOSITORY=1

Keep the double quotes around the OTEL_EXPORTER_OTLP_HEADERS value. Ask Claude Code to run a tool, such as listing the files in a directory, and the session appears under Sessions in the dashboard.

  • Claude Code — the ~/.claude/settings.json variant, team rollout and optional settings.
  • Codex CLI — the [otel] block for ~/.codex/config.toml.
  • MCP setup — let your agent query its own data.
  • Core concepts — organizations, members, actors, sessions and tool calls.

Guides