Install on macOS
Install the Octic sensor on an Apple silicon Mac as the com.octic.sensor launch daemon, start it and confirm it reports into your workspace.
By the end of this page the Octic sensor runs on a Mac as the
com.octic.sensor launch daemon and reports into your workspace. It takes
two commands: one installs the sensor and leaves it stopped, the other starts
it.
You need an administrator account on a Mac with Apple silicon running macOS 15, 26 or 27, and an owner or admin role in Octic. Check the Mac against Requirements first.
Open the Enroll Host dialog
In Octic, open Sensors and choose Enroll Host. At Operating system, choose macOS.
Choose an enrollment token
Under Use an existing token, choose Use next to the token for this fleet, or enter a New token name and choose Create token. See Enrollment tokens.
Copy the install command
The Install step shows two commands. Under 1. Install on your Mac, choose Copy command.
The command looks like this, with the token from the previous step in place of
<enrollment-token>:Mac, Terminal, as your own userbash ( umask 077 sudo -v || exit octic_install_tmp=$(mktemp -d) || exit trap 'rm -rf "$octic_install_tmp"' EXIT curl -fsSL 'https://get.octic.ai/sensor-macos/latest/install.sh' -o "$octic_install_tmp/bootstrap-macos.sh" || exit printf '%s\n' '<enrollment-token>' | /bin/sh "$octic_install_tmp/bootstrap-macos.sh" --token-stdin)Run it in Terminal as your own user
Open Terminal as your own administrator account, not as root, and paste the command.
sudoasks for your password once. The installer:- Checks it runs on macOS on Apple silicon, as an ordinary user. It
downloads as you and uses
sudoonly to install. - Downloads the sensor, its installer and the published SHA-256 checksums into a private temporary folder, and checks every file against them. It also checks that the sensor is an Apple silicon executable of the expected version.
- Installs the sensor as
/usr/local/libexec/octic-sensor. - Writes the token to
/Library/Application Support/OcticSensor/enrollment.token, readable by root only, on standard input rather than on a command line. - Registers the
com.octic.sensorlaunch daemon, disabled and not loaded. Nothing runs yet.
A successful install ends by saying the sensor is staged and unloaded:
Installer outputtext macOS sensor staged and unloaded; boot/nonzero-exit recovery enabled=false. Use start for explicit activation.- Checks it runs on macOS on Apple silicon, as an ordinary user. It
downloads as you and uses
Start the sensor
Under 2. Start after installation succeeds, choose Copy start command, then run it:
Mac, Terminalbash sudo /usr/local/libexec/octic-sensor startThis starts the sensor now. It doesn't start again after the Mac restarts, or after it exits with an error, until you turn on start at boot.
Check the host
Run the health check with the token probe:
Mac, Terminalbash sudo /usr/local/libexec/octic-sensor status --probeThe
enrollmentcheck shows the probeacceptedwhen Octic accepts the token. Until you turn on start at boot, the first line readsoctic-sensor status: DEGRADED (exit 1), because theservicecheck reports the start modemanual.In Octic, the host appears on Sensors after its first heartbeat, usually within 5 minutes, under the Mac's computer name. Verify a host explains every check.
By default the sensor runs only after start, and doesn't come back after a
restart or a crash. To have launchd start it at every boot and restart it
when it exits with an error, stage the boot profile while the sensor is
stopped, then start it:
sudo /usr/local/libexec/octic-sensor stopsudo /usr/local/libexec/octic-sensor install --enablesudo /usr/local/libexec/octic-sensor startThe service check in status then passes, with the start mode
boot_recovery. Running the install command again, for an
upgrade, puts the default profile back;
repeat these three commands afterwards.
macOS privacy protections keep even root out of some folders unless the
program has Full Disk Access: each user's Desktop, Documents and
Downloads, iCloud Drive, cloud storage folders such as Dropbox and
OneDrive, and other apps' containers. Without the grant the sensor still
reports, but anything kept in those folders is invisible to it. Folders such
as ~/.claude, ~/.codex and /Applications aren't affected.
To grant it:
- Open System Settings, then Privacy & Security, then Full Disk Access.
- Add
/usr/local/libexec/octic-sensorand turn it on. - Restart the sensor with
sudo /usr/local/libexec/octic-sensor stop, thensudo /usr/local/libexec/octic-sensor start.
The sensor checks for the grant on every heartbeat. Its executable isn't signed, so macOS ties the grant to that exact build: add it again after each upgrade.
| Path | What it is |
|---|---|
/usr/local/libexec/octic-sensor | The sensor. |
/Library/LaunchDaemons/com.octic.sensor.plist | The launch daemon. It runs octic-sensor run as root. |
/Library/Application Support/OcticSensor/enrollment.token | The enrollment token, mode 0600, in a folder only root can open. |
/Library/Application Support/OcticSensor/config.yaml | The configuration. The installer writes {}, which keeps every default. See Configure the sensor. |
/Library/Logs/octic-sensor.log | The service's log, readable by root only. At 10 MiB it moves to octic-sensor.log.1, replacing the previous one. |
/Library/Application Support/ClaudeCode/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. |
The service writes the Claude Code settings, the Codex entries and the queues when it first starts, not at install. What the sensor collects explains the settings it deploys.
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:
( umask 077 sudo -v || exit octic_install_tmp=$(mktemp -d) || exit trap 'rm -rf "$octic_install_tmp"' EXIT curl -fsSL 'https://get.octic.ai/sensor-macos/<version>/install.sh' -o "$octic_install_tmp/bootstrap-macos.sh" || exit printf '%s\n' '<enrollment-token>' | /bin/sh "$octic_install_tmp/bootstrap-macos.sh" --token-stdin)Replace <version> with a published release number, such as 1.2.0. The
first release for macOS is 1.1.0.
Last updated
Was this page helpful?