Configuration reference
Every key in the Octic sensor's config.yaml, with its default, its limits and what it changes.
This page lists every key the sensor reads from config.yaml, in sensor
version 1.0.0. Every key is optional: a host with no file runs on the
defaults below. Configure the sensor shows how to apply a
change.
| Platform | File |
|---|---|
| Linux | /etc/octic/octic-sensor/config.yaml |
| Windows | C:\ProgramData\Octic\Sensor\config.yaml |
| macOS | /Library/Application Support/OcticSensor/config.yaml |
Durations use Go syntax, such as 30s, 5m or 168h. Timeouts, retry
backoff and request size limits are built in and can't be configured.
| Key | Default | Meaning |
|---|---|---|
api_url | https://api.octic.ai | Where the sensor exchanges its enrollment token for access tokens. Must be http or https with a host. |
ingest_url | https://ingest.octic.ai | Where the sensor sends heartbeats, inventory and events. Must be http or https with a host. |
enrollment_token_file | /etc/octic/octic-sensor/enrollment.token; C:\ProgramData\Octic\Sensor\enrollment.token on Windows; /Library/Application Support/OcticSensor/enrollment.token on macOS | The file holding the enrollment token. Must be an absolute path. The sensor reads it on every exchange, so a new token takes effect without a restart. |
interval | 5m | How often the sensor collects and sends. Must be greater than zero. |
| Key | Default | Meaning |
|---|---|---|
claude_hooks.enabled | true | Deploy the Claude Code hooks and send their events. false withdraws the settings file. |
claude_hooks.spool_dir | /var/spool/octic-sensor/claude-hooks on Linux and macOS; C:\ProgramData\Octic\Sensor\claude-hooks on Windows | The event queue. Must be an absolute path. On Linux it must match the tmpfiles.d rule. |
claude_hooks.managed_settings_path | /etc/claude-code/managed-settings.d/50-octic.json; C:\Program Files\ClaudeCode\managed-settings.d\50-octic.json on Windows; /Library/Application Support/ClaudeCode/managed-settings.d/50-octic.json on macOS | Where the sensor writes the Claude Code settings. Must be absolute. "" leaves the host's Claude Code policy alone. |
claude_hooks.max_event_age | 168h | Drop queued events older than this, oldest first. |
claude_hooks.max_spool_events | 10000 | Keep at most this many queued events, dropping the oldest. |
claude_hooks.max_event_bytes | 262144 | The largest event, in bytes. Larger events are cut down with a marker. You can only lower it: a higher value is reduced to 262144. |
claude_hooks.capture.prompts | true | Keep prompt text, expanded prompts, session titles and task descriptions. |
claude_hooks.capture.tool_inputs | true | Keep tool arguments, permission-rule content, and MCP elicitation request schemas and URLs. |
claude_hooks.capture.tool_outputs | true | Keep tool results and detailed stop-failure content. |
claude_hooks.capture.assistant_messages | true | Keep the model's replies, compaction summaries, notification text and permission-denial explanations. |
claude_hooks.capture.transcript_usage | true | Read token counts from Claude Code's local transcript. false stops all transcript reads. |
| Key | Default | Meaning |
|---|---|---|
codex_hooks.enabled | true | Deploy the Codex hooks and telemetry settings and send their events. false removes the sensor's own Codex entries. |
codex_hooks.spool_dir | /var/spool/octic-sensor/codex-hooks on Linux and macOS; C:\ProgramData\Octic\Sensor\codex-hooks on Windows | The Codex event queue. Must be absolute, and separate from the Claude Code queue (neither inside the other). |
codex_hooks.managed_settings_path | /etc/codex/requirements.toml on Linux and macOS; C:\ProgramData\OpenAI\Codex\requirements.toml on Windows | The Codex configuration the sensor adds its hooks to. Must be absolute. |
codex_hooks.max_event_age | 168h | As for Claude Code, for the Codex queue. |
codex_hooks.max_spool_events | 10000 | As for Claude Code, for the Codex queue. |
codex_hooks.max_event_bytes | 262144 | As for Claude Code. A higher value is reduced to 262144. |
codex_hooks.capture.prompts | claude_hooks.capture.prompts | Keep prompt text in Codex events. |
codex_hooks.capture.tool_inputs | claude_hooks.capture.tool_inputs | Keep tool arguments in Codex events. |
codex_hooks.capture.tool_outputs | claude_hooks.capture.tool_outputs | Keep tool results in Codex events. |
codex_hooks.capture.assistant_messages | claude_hooks.capture.assistant_messages | Keep the model's replies in Codex events. |
Each codex_hooks.capture key you leave out takes the value of the
matching claude_hooks.capture key. Codex has no transcript_usage: the
sensor never reads Codex transcripts.
| Key | Default | Meaning |
|---|---|---|
telemetry.enabled | true | Turn on Claude Code's OpenTelemetry export and relay it, and Codex's, to Octic. |
telemetry.listen_addr | 127.0.0.1:4318 | The relay's address. Must be a loopback address with a fixed port, not 0. The sensor points Claude Code's exporter at it. |
A configuration that keeps prompts but drops tool output and the model's replies, and reports every 10 minutes:
interval: 10mclaude_hooks: capture: tool_outputs: false assistant_messages: falseOn Linux, /etc/octic/octic-sensor/config.yaml.example holds every key,
commented out, with its default. On macOS, the installer writes the file
containing only {}; replace it with the keys you set.
Last updated
Was this page helpful?