Install on Windows
Install the beta Octic sensor on a Windows host as the OcticSensor service and enroll it in your workspace.
By the end of this page the Octic sensor runs on a Windows host as the
OcticSensor service and reports into your workspace. The Windows sensor
is in beta.
You need an elevated PowerShell on the host (Windows PowerShell 5.1 or PowerShell 7) 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 Windows.
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 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>:Windows host, elevated PowerShellpowershell $env:OCTIC_ENROLLMENT_TOKEN = '<enrollment-token>'irm https://get.octic.ai/sensor-windows/latest/install.ps1 | iexRun it in an elevated PowerShell
Right-click PowerShell, choose Run as administrator, and paste the command. The installer:
- Checks it runs elevated, on x64 or ARM64.
- Downloads the sensor into a temporary folder only SYSTEM and Administrators can read, and verifies it against the published SHA-256 checksums.
- Passes the token to the sensor on its standard input, never on a command line or in a file.
- Installs the sensor in
C:\Program Files\OcticSensorand registers and starts theOcticSensorservice, which runs as LocalSystem and starts automatically. - Asks Octic to accept the token. If Octic doesn't, the installer stops the service, sets it to manual start, keeps the files for a retry and fails.
- Confirms the service is running and prints the result of
octic-sensor.exe status.
A successful install ends with:
Installer outputtext ==> Done The Octic sensor is installed and running. Check it any time with: & 'C:\Program Files\OcticSensor\octic-sensor.exe' statusCheck the host
Check the service, then run the health check:
Windows host, elevated PowerShellpowershell Get-Service OcticSensor& 'C:\Program Files\OcticSensor\octic-sensor.exe' statusIn Octic, the host appears on Sensors after its first heartbeat, usually within 5 minutes. Verify a host explains every check.
| Path | What it is |
|---|---|
C:\Program Files\OcticSensor\octic-sensor.exe | The sensor. |
C:\Program Files\OcticSensor\service.log | The service's own log. |
C:\ProgramData\Octic\Sensor\ | The enrollment token and configuration, private to LocalSystem, and the event queues. |
C:\Program Files\ClaudeCode\managed-settings.d\50-octic.json | Written by the service: the Claude Code hooks and telemetry settings. |
C:\ProgramData\OpenAI\Codex\requirements.toml, config.toml | The service adds its own Codex hook and telemetry entries. |
The service also writes install, start, stop and failure events to the
Windows Application log under the source OcticSensor. It never logs the
enrollment token. If the service crashes, Windows restarts it after 10, 30
and 60 seconds.
irm | iex can't pass parameters to the script. To use one, run the
downloaded text as a script block. For example, to install without asking
Octic to accept the token once the service starts:
$env:OCTIC_ENROLLMENT_TOKEN = '<enrollment-token>'& ([scriptblock]::Create((irm https://get.octic.ai/sensor-windows/latest/install.ps1))) -SkipVerifyYou can also save the script and run it as a file. Because the script isn't signed, give it an execution policy for that one run; this doesn't change the machine's policy:
irm https://get.octic.ai/sensor-windows/latest/install.ps1 -OutFile install.ps1powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\install.ps1Command-line reference lists every parameter 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:
$env:OCTIC_ENROLLMENT_TOKEN = '<enrollment-token>'irm https://get.octic.ai/sensor-windows/<version>/install.ps1 | iexReplace <version> with a published release number, such as 1.0.0.
Last updated
Was this page helpful?
