Get started
Scout Trails records what your LLM coding agents do. Nothing is installed: the agent’s own OpenTelemetry exporter sends the data.
Set up from the dashboard
Open Get started in the dashboard →
The dashboard’s Get started page connects the agent on the machine you’re using. It creates your ingest key and fills it into a setup prompt you paste into your agent. Sign in when the dashboard asks, then follow its four steps:
- Your machine’s ingest key. If the page doesn’t show a key linked to your login yet, select Create my machine’s key. Scout Trails creates an actor named for you, linked to your login, and issues its ingest key.
- Set up your agent. Choose Claude Code or Codex CLI and select Copy prompt. Give the prompt to your agent: it adds the ingest endpoint and your key to its own settings. Then start a new agent session, since the agent reads its settings only at startup.
- Check the connection. Ask your agent to run a tool, such as listing the files in the current directory. The page shows Waiting for your first event… until your telemetry arrives, then Connected, with a link to the session.
- Query it from your agent (optional). Select Create an API key for the command that adds the Scout Trails MCP server to your agent.
Set up manually
Set an agent up by hand to connect a CI runner, a shared agent or another machine, or to edit its configuration yourself. It takes three steps: create an ingest key, give it to your agent, and run a session.
1. Create an ingest key
An ingest key belongs to an actor, which is one machine or agent that sends telemetry. Create one for the machine you’re setting up:
- Sign in to the dashboard at https://scoutmonitoring.io.
- Open the Actors & ingest keys page. To get there from the dashboard, open the organization menu (your organization’s name in the header) and choose Manage, then open the Actors & ingest keys tab.
- Under New actor, enter a Display name for the machine, for example
alice-laptop, choose a Kind, and select Create actor. - Select Copy in the dialog that shows the new key.
Any member of the organization can create actors. The key stays in the All actors table, so you can copy it again later. See Actors for more.
2. Configure your agent
Each agent below has two ways to set it up: paste the settings yourself, or hand your agent the prompt and let it edit its own configuration. Either way, replace <your-ingest-key> with the key you copied.
Claude Code
Add these entries to the top-level env object in ~/.claude/settings.json, keeping any entries already there:
{
"env": {
"CLAUDE_CODE_ENABLE_TELEMETRY": "1",
"OTEL_LOGS_EXPORTER": "otlp",
"OTEL_EXPORTER_OTLP_PROTOCOL": "grpc",
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://ingest.scoutmonitoring.io:443",
"OTEL_EXPORTER_OTLP_HEADERS": "Authorization=Bearer <your-ingest-key>",
"OTEL_LOG_TOOL_DETAILS": "1",
"OTEL_METRICS_INCLUDE_REPOSITORY": "1"
}
}
Or give Claude Code this prompt:
Send your telemetry to Scout Trails.
In ~/.claude/settings.json, add these entries to the top-level "env" object,
keeping every entry already there, and create the file if it doesn't exist:
CLAUDE_CODE_ENABLE_TELEMETRY "1",
OTEL_LOGS_EXPORTER "otlp",
OTEL_EXPORTER_OTLP_PROTOCOL "grpc",
OTEL_EXPORTER_OTLP_ENDPOINT "https://ingest.scoutmonitoring.io:443",
OTEL_EXPORTER_OTLP_HEADERS "Authorization=Bearer <your-ingest-key>",
OTEL_LOG_TOOL_DETAILS "1",
OTEL_METRICS_INCLUDE_REPOSITORY "1".
Then tell me to restart Claude Code.
Then quit Claude Code and start a new session: it reads these settings only at startup. The full recipe, with shell variables, team rollout and what each setting does, is Claude Code.
Codex CLI
Add this block to ~/.codex/config.toml. If the file already has an [otel] table, keep a single one: replace any exporter already set in it, and check its other keys, which keep applying:
[otel]
log_user_prompt = false
[otel.exporter.otlp-grpc]
endpoint = "https://ingest.scoutmonitoring.io:443"
headers = { "Authorization" = "Bearer <your-ingest-key>" }
Or give Codex this prompt:
Send your telemetry to Scout Trails.
In ~/.codex/config.toml, set log_user_prompt = false in the [otel] table
and add an [otel.exporter.otlp-grpc] table with
endpoint = "https://ingest.scoutmonitoring.io:443" and
headers = { "Authorization" = "Bearer <your-ingest-key>" }.
Keep a single [otel] table, replacing any exporter already set in it,
and create the file if it doesn't exist.
List any other keys already in the [otel] table for me to check.
If OTEL_EXPORTER_OTLP_HEADERS or OTEL_EXPORTER_OTLP_LOGS_HEADERS is set
in your environment, tell me: an Authorization header in it replaces this key.
Then tell me to start a new Codex session.
Then start a new Codex session: it reads the file at startup. An Authorization header in OTEL_EXPORTER_OTLP_HEADERS or OTEL_EXPORTER_OTLP_LOGS_HEADERS, in the shell that starts Codex, replaces the key in this block; see Shell OTEL_* variables. The full recipe is Codex CLI.
3. Run a session
Ask your agent to do something that uses a tool, such as listing the files in the current directory. Within a few seconds the session appears on the dashboard’s Overview and under Sessions, with your actor’s display name in the Actor column.
Until your organization’s first telemetry arrives, Overview shows Waiting for data. Reload the page once your agent has run a tool. If nothing appears, see Troubleshooting.
4. Query it from your agent (optional)
The Scout Trails MCP server lets your agent answer questions about its own sessions, such as “which sessions yesterday hit errors?”. It uses an API key rather than an ingest key: create one under Manage → API keys, then follow MCP setup for Claude Code, Codex CLI or Cursor.