Install on Linux
Install the Octic sensor on a Linux host with systemd, enroll it in your workspace and confirm it started.
By the end of this page the Octic sensor runs on a Linux host as the
octic-sensor systemd service and reports into your workspace. It takes a
few minutes per host.
You need root on a host with systemd, and an owner or admin role in Octic. Check the host against Requirements first.
Open the Enroll Host dialog
In Octic, open Sensors and choose Enroll Host. At Operating system, choose Linux.
Choose an enrollment token
Under Use an existing token, choose Use next to the token for this fleet. To make a new one, enter a New token name and choose Create token. See Enrollment tokens for how to organize them.

Copy the install command
The Install step shows the command with your token in it. Choose Copy command.

The command looks like this, with the token from the previous step in place of
<enrollment-token>:Linux host, as rootbash curl -fsSL https://get.octic.ai/sensor-linux/latest/install.sh | \ OCTIC_ENROLLMENT_TOKEN=<enrollment-token> \ shRun it on the host as root
Open a root shell on the host, for example with
sudo -i, and paste the command. The installer:- Checks it runs as root, on Linux, with systemd as PID 1, on x86_64 or arm64.
- Downloads the sensor and verifies it against the published SHA-256 checksums.
- Installs it as
/usr/bin/octic-sensor. - Writes the token to
/etc/octic/octic-sensor/enrollment.token, readable by root only. - Asks Octic to accept the token. If Octic doesn't, the installer stops here, with nothing started; fix the token and run the command again.
- Installs, enables and starts the
octic-sensorservice, then prints the result ofoctic-sensor status.
A successful install ends with:
Installer outputtext ==> Done The Octic sensor is installed and running. Check it any time with: octic-sensor statusCheck the host
Run the health check on the host:
Linux hostbash octic-sensor statusThe first line reads
octic-sensor status: HEALTHY (exit 0)when all is well. In Octic, the host appears on Sensors after its first heartbeat, usually within 5 minutes. Verify a host explains every check.
| Path | What it is |
|---|---|
/usr/bin/octic-sensor | The sensor. |
/usr/lib/systemd/system/octic-sensor.service | The systemd unit. It runs octic-sensor run as root, sandboxed. |
/usr/lib/tmpfiles.d/octic-sensor.conf | Creates the event queues under /var/spool/octic-sensor. |
/etc/octic/octic-sensor/enrollment.token | The enrollment token, mode 0600. |
/etc/octic/octic-sensor/config.yaml.example | Every setting, commented out. See Configure the sensor. |
/etc/claude-code/managed-settings.d/50-octic.json | Written by the service: the Claude Code hooks and telemetry settings. |
/etc/codex/requirements.toml, /etc/codex/managed_config.toml | The service adds its own Codex hook and telemetry entries. |
/var/spool/octic-sensor/claude-hooks, /var/spool/octic-sensor/codex-hooks | Queues for Claude Code and Codex events until they're sent. |
A standard install writes no config.yaml: the sensor runs on built-in
defaults. What the sensor collects explains the
Claude Code and Codex settings it deploys.
To review the installer before it runs as root, download it, read it, then run it. Without a token in the environment, it prompts for one and doesn't echo what you paste:
curl -fsSLO https://get.octic.ai/sensor-linux/latest/install.shless install.shsudo sh install.shPass options to the piped installer after sh -s --. For example, to
install and enable the service without starting it:
curl -fsSL https://get.octic.ai/sensor-linux/latest/install.sh | \ OCTIC_ENROLLMENT_TOKEN=<enrollment-token> \ sh -s -- --no-start| Option | Effect |
|---|---|
--no-start | Install and enable the service without starting it. Start it later with systemctl start octic-sensor.service. |
--skip-verify | Don't ask Octic to accept the token before installing. The install can't then tell a working token from a wrong one. |
Command-line reference lists every option and environment variable.
latest in the URL installs the current stable release. To install a
specific version, put it in the URL instead, or set Version under
Advanced options in the dialog:

curl -fsSL https://get.octic.ai/sensor-linux/<version>/install.sh | \ OCTIC_ENROLLMENT_TOKEN=<enrollment-token> \ shReplace <version> with a published release number, such as 1.0.0.
Last updated
Was this page helpful?


