English | 简体中文
Use this guide to install, verify, uninstall, or run LoongSuite Pilot from source.
- Node.js 18 or later
npmcurlorwget- PowerShell 5.1 or later on Windows
curl -fsSL https://loongcollector-community-edition.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh installThe installer detects supported agents, lets you choose which agents to monitor, deploys hooks/plugins, writes the local configuration, and starts the background service.
Run PowerShell and install from the published Windows package:
$installer = "$env:TEMP\loongsuite-pilot-installer.ps1"
Invoke-WebRequest `
-Uri "https://loongcollector-community-edition.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.ps1" `
-OutFile $installer
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $installer installThe Windows installer downloads loongsuite-pilot.zip by default. It stores data under %USERPROFILE%\.loongsuite-pilot and installs the loongsuite-pilot command under %USERPROFILE%\.local\bin. Open a new PowerShell window if the command is not found immediately after installation.
Linux/macOS:
curl -fsSL https://loongcollector-community-edition.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh install \
--agents "claude-code,cursor,codex" \
--userId "your-user-id" \
--sls-endpoint "https://cn-hangzhou.log.aliyuncs.com" \
--sls-project "my-project" \
--sls-logstore "my-logstore" \
--mask-mode allWindows PowerShell:
$installer = "$env:TEMP\loongsuite-pilot-installer.ps1"
Invoke-WebRequest `
-Uri "https://loongcollector-community-edition.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.ps1" `
-OutFile $installer
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $installer install `
-Agents "claude-code,cursor,codex" `
-UserId "your-user-id" `
-SlsEndpoint "https://cn-hangzhou.log.aliyuncs.com" `
-SlsProject "my-project" `
-SlsLogstore "my-logstore" `
-MaskMode allInstaller options:
The Linux/macOS installer uses --kebab-case options. The Windows PowerShell installer uses the corresponding -PascalCase options, for example --version becomes -Version and --data-dir becomes -DataDir.
| Parameter | Description |
|---|---|
--version <ver> |
Install a specific version, for example 1.2.0. |
--agents <list> |
Comma-separated agent list. Skips interactive selection. |
--userId <id> |
Set user identity written to output events. |
--data-dir <path> |
Override data directory. Default is ~/.loongsuite-pilot. |
--package-url <url> |
Install from a custom URL or local file:// path. |
--sls-endpoint <url> |
SLS endpoint URL. |
--sls-project <name> |
SLS project name. |
--sls-logstore <name> |
SLS logstore name. |
--sls-ak-id <key> |
SLS Access Key ID for AK mode. |
--sls-ak-secret <key> |
SLS Access Key Secret for AK mode. |
--mask-mode <mode> |
Data masking mode: all, none, or custom. |
--mask-types <list> |
Comma-separated mask types. Required when --mask-mode custom. |
--collect-log <true|false> |
Enable or disable SLS log reporting. |
--collect-trace <true|false> |
Enable or disable trace reporting. |
--cms-license-key <key> |
CMS or ARMS trace license key. |
--cms-endpoint <url> |
CMS or ARMS trace endpoint. |
--cms-workspace <name> |
CMS workspace value. |
--service-name-prefix <name> |
Service name prefix used by reporting backends. |
--system-service |
Deprecated — ignored. Init system is now auto-detected (systemd-user → systemd-system → init.d). |
--lang <lang> |
Output language: zh or en. |
loongsuite-pilot status
loongsuite-pilot infoLocal JSONL output is enabled by default:
ls ~/.loongsuite-pilot/logs/outputOn Windows:
Get-ChildItem "$env:USERPROFILE\.loongsuite-pilot\logs\output"loongsuite-pilot start
loongsuite-pilot stop
loongsuite-pilot restart
loongsuite-pilot status
loongsuite-pilot info
loongsuite-pilot token-usage
loongsuite-pilot rollbackOptional local dashboard:
loongsuite-pilot monitor startThen open:
http://127.0.0.1:8765/
Uninstall stops the service, removes installed files, and cleans the integrations written into agent configs (hook entries for Claude Code, Codex, Cursor, Qoder, Qwen, etc., and the injected plugin spec in OpenCode's config). Add --purge (-Purge on Windows) to also delete the local data directory.
Keep data on Linux/macOS:
curl -fsSL https://loongcollector-community-edition.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh uninstallRemove installed files and local data on Linux/macOS:
curl -fsSL https://loongcollector-community-edition.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh uninstall --purgeKeep data on Windows:
$installer = "$env:TEMP\loongsuite-pilot-installer.ps1"
Invoke-WebRequest `
-Uri "https://loongcollector-community-edition.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.ps1" `
-OutFile $installer
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $installer uninstallRemove installed files and local data on Windows:
$installer = "$env:TEMP\loongsuite-pilot-installer.ps1"
Invoke-WebRequest `
-Uri "https://loongcollector-community-edition.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.ps1" `
-OutFile $installer
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $installer uninstall -Purgegit clone https://github.com/loongsuite/loongsuite-pilot.git
cd loongsuite-pilot
npm install
npm run build
node scripts/postinstall.js
node dist/index.jsThis starts the collector in the foreground. On startup, Pilot reads agent definitions from agents.d/, auto-detects installed agents, and deploys collection capabilities for detected agents.
bash deploy/package-opensource.sh
bash deploy/installer-opensource.sh --package-url "file://$(pwd)/loongsuite-pilot.tar.gz"- Choose agents in Agent Configuration.
- Configure local output in Local JSONL Output.
- Configure SLS reporting in SLS Output.
- Configure trace reporting in Trace Output.
- Configure secret masking in Data Masking.