What the sensor collects
Every kind of data the Octic sensor sends from a host, what it never collects, and the switches that narrow capture.
This page lists what the Octic sensor reads on a host and sends to Octic, what it leaves out, and how to turn off the parts you don't want. Read it before you roll the sensor out to engineers' workstations, where it records Claude Code and Codex sessions in full by default.
With every heartbeat, the sensor sends:
- The host name, operating system, platform and version, kernel version and architecture, and CPU. On a Mac, also the computer name shown in System Settings.
- The cloud provider, if the host runs on AWS, Google Cloud or Azure. The sensor detects this locally from the machine's firmware tables, without a network call. The macOS sensor doesn't detect a cloud provider.
- On AWS, the instance's identity from the instance metadata service (IMDSv2): instance ID, account, region, availability zone, instance type and AMI.
The sensor looks for AI tools in five places:
| Source | What it finds |
|---|---|
| Binaries | Executables on PATH, in system folders, and in the tool folders of every home directory on the host. On macOS, system folders include Homebrew's and the app bundles of Claude, Codex, Cursor, Windsurf and Ollama in /Applications. |
| Packages | RPM packages, Python packages (system, virtualenvs, pipx and conda), global npm, pnpm, Yarn and Bun packages, Cargo crates, and the module stamp in Go binaries. On Windows, installed programs and packaged apps. On macOS, everything except system packages. |
| Services and processes | systemd units and timers, Windows services and scheduled tasks, running processes, and the ports AI runtimes listen on, such as 11434 for Ollama. On macOS, processes and ports only. |
| Model stores | Ollama, Hugging Face and LM Studio model folders: the path and a count of entries only. |
| Accelerators | NVIDIA and ROCm devices and the NVIDIA driver version. Not on macOS. |
To find a tool's version, the sensor prefers the package manager's record, then the version stamped into the binary. Only when neither exists does it run the tool's own version command, for tools known to have one, with a short time limit. When the sensor runs as root it won't run a program owned by an ordinary user. On macOS it never runs a tool's version command.
On macOS without Full Disk Access, the sensor can't read each user's Desktop, Documents, Downloads, iCloud Drive and other folders macOS protects, so tools kept there don't appear. See Give the sensor Full Disk Access.
The sensor recognizes these tools:
| Kind | Tools |
|---|---|
| Coding assistants | Aider, Amazon Q Developer, Claude Code, Claude Desktop, Cline, Codex, Continue, Crush, Cursor, Gemini CLI, GitHub Copilot CLI, Goose, opencode, Qwen Code, Sourcegraph Cody, Tabby, Tabnine, Windsurf, Zed |
| Model runtimes and servers | GPT4All, Jan, KoboldCpp, LiteLLM, llama.cpp, llamafile, LM Studio, LocalAI, Ollama, RamaLama, SGLang, Text Generation Inference, vLLM, whisper.cpp |
| AI applications | AIChat, AnythingLLM, ComfyUI, Dify, Flowise, Langflow, LLM CLI, Mods, Open Interpreter, Open WebUI, OpenClaw, Stable Diffusion web UI, text-generation-webui |
| SDKs, libraries and CLIs | Anthropic SDK, Hugging Face CLI, Hugging Face Transformers, LangChain, LlamaIndex, OpenAI CLI, OpenAI Whisper, PyTorch |
The sensor records Claude Code sessions through Claude Code's own hooks. On
each host it writes a managed settings file that registers 28 lifecycle
events, such as SessionStart, UserPromptSubmit, PreToolUse,
PostToolUse and SessionEnd:
| Platform | File |
|---|---|
| Linux | /etc/claude-code/managed-settings.d/50-octic.json |
| Windows | C:\Program Files\ClaudeCode\managed-settings.d\50-octic.json |
| macOS | /Library/Application Support/ClaudeCode/managed-settings.d/50-octic.json |
On each event, Claude Code runs octic-sensor claude hook, which writes the
event to a local queue. The service sends the queue to Octic on its next
poll, and deletes events only once Octic has accepted them.
- Managed settings take precedence. A developer can't remove or override
these hooks in their own settings. If your organization delivers Claude
Code settings from the Claude console or through device management, Claude
Code uses that policy instead and ignores this file;
octic-sensor statuscan't tell from the host which one is in force. - The hooks never interfere. They don't approve, deny or change anything Claude Code does, and they fail open, so a sensor problem can't interrupt a session.
- The file is deployed whether or not Claude Code is installed, so a Claude Code installed later is covered from its first session. Claude Code 2.1.83 or later reads it.
The same file turns on Claude Code's own OpenTelemetry export and points it
at the sensor's local relay on 127.0.0.1:4318. That export carries the
cost of each request as Anthropic computes it. The relay forwards it to
Octic with the host's access token; it accepts nothing from other machines.
Octic uses these events for Observe.
The sensor adds its own entries to Codex's machine-wide configuration, leaving any other settings in those files as they are:
| Platform | Hooks | Telemetry settings |
|---|---|---|
| Linux | /etc/codex/requirements.toml | /etc/codex/managed_config.toml |
| Windows | C:\ProgramData\OpenAI\Codex\requirements.toml | C:\ProgramData\OpenAI\Codex\config.toml |
| macOS | /etc/codex/requirements.toml | /etc/codex/managed_config.toml |
Each new Codex CLI or desktop session then runs octic-sensor codex hook on
its events, which queue and send like Claude Code's. Codex's telemetry goes
through a filter in the local relay that keeps only listed metadata fields
and token counts. The sensor never reads Codex transcripts.
If a Codex policy already on the host conflicts with the sensor's entries, the sensor reports the conflict instead of overwriting it.
Capture is full by default. Hook events can hold source code, shell commands, file paths, prompts, model output, secrets that appear in tool arguments or output, and session identifiers. Treat the events as sensitive data.
Five switches control the content fields. Each is on by default:
| Setting | When on, events keep |
|---|---|
capture.prompts | Prompt text, expanded prompts, session titles, and task descriptions. |
capture.tool_inputs | Tool arguments, permission-rule content, and MCP elicitation request schemas and URLs. |
capture.tool_outputs | Tool results, including file contents and command output, and detailed stop-failure content. |
capture.assistant_messages | The model's replies, compaction summaries, notification text and permission-denial explanations. |
capture.transcript_usage | Token counts read from Claude Code's local transcript. Turn it off to stop the sensor reading transcripts at all. Claude Code only. |
A switch that is off removes those fields from the event on the host, before it's queued. Event names, timestamps, file paths, tool and model names, IDs, errors and durations are always kept, and so are fields the sensor doesn't recognize from newer Claude Code versions. The switches reduce what leaves the host; they don't guarantee an event holds nothing sensitive.
Codex events use the Claude Code switches unless you set codex_hooks.capture
separately. Configure the sensor
shows how to change them.
One rule always applies: the content of an MCP elicitation result is discarded, because an accepted elicitation can carry credentials.
- Raw command lines. A process is matched by what it runs, not by arguments that mention a tool's name, and the evidence sent never includes the full command line.
- Network peers and hardware addresses. No remote addresses of connections, and no MAC addresses.
- Model names in model stores. Only the folder and a count.
- Codex transcripts.
- Model calls of its own. Collection never calls a model, so it adds no AI cost.
Events wait in a local queue until Octic accepts them:
| Platform | Claude Code queue | Codex queue |
|---|---|---|
| Linux | /var/spool/octic-sensor/claude-hooks | /var/spool/octic-sensor/codex-hooks |
| Windows | C:\ProgramData\Octic\Sensor\claude-hooks | C:\ProgramData\Octic\Sensor\codex-hooks |
| macOS | /var/spool/octic-sensor/claude-hooks | /var/spool/octic-sensor/codex-hooks |
On Linux and macOS, any user can add events to a queue, but only the root service can list the queue or remove events from it, so one developer can't find or delete another's prompts. Each event records the user account that wrote it. Events older than 7 days, or beyond 10,000 queued events, are dropped oldest first, and the sensor reports the loss. An event larger than 256 KiB is cut down with a marker rather than dropped.
Last updated
Was this page helpful?