OpenClaw Detection Scripts

February 5, 2026 · View on GitHub

██╗  ██╗███╗   ██╗ ██████╗ ███████╗████████╗██╗ ██████╗
██║ ██╔╝████╗  ██║██╔═══██╗██╔════╝╚══██╔══╝██║██╔════╝
█████╔╝ ██╔██╗ ██║██║   ██║███████╗   ██║   ██║██║     
██╔═██╗ ██║╚██╗██║██║   ██║╚════██║   ██║   ██║██║     
██║  ██╗██║ ╚████║╚██████╔╝███████║   ██║   ██║╚██████╗
╚═╝  ╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚══════╝   ╚═╝   ╚═╝ ╚═════╝

OpenClaw Detection Scripts

By Knostic

Find OpenClaw on managed devices. Lightweight detection scripts for macOS, Linux, and Windows that check for CLI binaries, app bundles, config files, gateway services, and Docker artifacts. Designed for MDM deployment via Jamf, Intune, JumpCloud, and more.

Also check out:


OpenClaw Detection Scripts - TL;DR

Detection scripts for MDM deployment to identify OpenClaw installations on managed devices.

What It Detects

CheckmacOSLinuxWindows
CLI binary (openclaw)YesYesYes
CLI versionYesYesYes
macOS app (/Applications/OpenClaw.app)Yes--
State directory (~/.openclaw)YesYesYes
Config file (~/.openclaw/openclaw.json)YesYesYes
Gateway service (launchd/systemd/schtasks)YesYesYes
Gateway port (default 18789)YesYesYes
Docker containersYesYesYes
Docker imagesYesYesYes

Exit Codes

Exit CodeMeaningMDM Status
0NOT installedSuccess (clean)
1Installed (running or not)Error (found)
2Script errorError (investigate)

Usage

macOS/Linux

curl -sL https://raw.githubusercontent.com/knostic/openclaw-detect/refs/heads/main/detect-openclaw.sh | bash

Windows (PowerShell)

iwr -useb https://raw.githubusercontent.com/knostic/openclaw-detect/refs/heads/main/detect-openclaw.ps1 | iex

Without curl

Copy detect-openclaw.sh (macOS/Linux) or detect-openclaw.ps1 (Windows) and run directly.

Run as root/admin

Running with elevated privileges scans all user directories:

curl -sL https://raw.githubusercontent.com/knostic/openclaw-detect/refs/heads/main/detect-openclaw.sh | sudo bash

Environment Variables

VariableDefaultDescription
OPENCLAW_PROFILE(none)Profile name for multi-instance setups
OPENCLAW_GATEWAY_PORT18789Gateway port to check

Example Output

summary: installed-and-running
platform: darwin
cli: /usr/local/bin/openclaw
cli-version: 2026.1.15
app: /Applications/OpenClaw.app
state-dir: /Users/alice/.openclaw
config: /Users/alice/.openclaw/openclaw.json
gateway-service: gui/501/bot.molt.gateway
gateway-port: 18789
docker-container: not-found
docker-image: not-found

MDM Integration

PlatformGuide
Addigydocs/addigy.md
CrowdStrike Falcondocs/crowdstrike.md
JumpClouddocs/jumpcloud.md
Microsoft Intunedocs/intune.md
Jamf Prodocs/jamf.md
VMware Workspace ONEdocs/workspace-one.md
Kandjidocs/kandji.md

Apache 2.0 — see LICENSE for details.