All Products
Search
Document Center

Cloud Monitor:Onboarding AI Coding Agents

Last Updated:Jul 17, 2026

Use LoongSuite Pilot to connect AI Coding Agent data from developer machines to AgentLoop. After onboarding, you can analyze sessions, model calls, tool calls, token usage, logs, and trace data in AgentLoop.

Overview of LoongSuite Pilot

LoongSuite Pilot is a lightweight collector that runs on developer machines. It automatically discovers installed AI Coding Agents and deploys the required hooks or plugins. LoongSuite Pilot normalizes raw activity data from different agents into a unified event format and reports the data to the log or trace backend used by AgentLoop.

Scenarios

When your team uses AI Coding Agents such as Claude Code, Codex, Cursor, or Qoder for daily development, you can use LoongSuite Pilot to collect client-side activity data for the following scenarios:

  • View which AI Coding Agents are being used across the team.

  • Analyze sessions, model calls, tool calls, and error events.

  • Track token usage broken down by agent.

  • Investigate agent runtime behavior through log queries, trace links, or custom interfaces.

  • Filter sensitive content such as prompts, completions, and tool parameters before data is reported.

Supported AI Coding Agents

The following tables list the AI Coding Agents supported by LoongSuite Pilot and the collection capabilities for each agent, organized by operating system.

macOS / Linux

AI Coding Agent

Integration Method

Trace Reporting

Log Reporting

Token Collection

Session and Tool Call Collection

Claude Code

Hook

Supported

Supported

Supported

Supported

Codex

Hook

Supported

Supported

Supported

Supported

Cursor

Hook

Supported

Supported

Supported

Supported

Qoder

Hook

Supported

Supported

Supported

Supported

Qoder CN

Hook

Supported

Supported

Supported

Supported

Qoder CLI

Hook / Logs

Supported

Supported

Supported

Supported

Qoder for JetBrains

Hook / SQLite

Supported

Supported

Supported

Supported

Qoder Work

Hook / Logs

Supported

Supported

Not supported

Supported

Qoder Work CN

Hook / Logs

Supported

Supported

Not supported

Supported

Qwen Code CLI

Hook

Supported

Supported

Supported

Supported

OpenCode

Plugin

Supported

Supported

Supported

Supported

Wukong

CLI API

Supported

Supported

Supported

Supported

Note

Qoder Work and Qoder Work CN do not support token collection. To estimate token usage for these agents, you can use model call records in the log data.

Windows

AI Coding Agent

Integration Method

Trace Reporting

Log Reporting

Token Collection

Session and Tool Call Collection

Cursor

Hook

Supported

Supported

Supported

Supported

Qoder Work (User version)

Hook / Local data source

Supported

Supported

Not supported

Supported

Claude Code

Hook

Supported

Supported

Supported

Supported

Qoder CLI

Hook

Supported

Supported

Not supported

Supported

Qoder IDE (Qoder ≥ 1.10.0, User version)

Hook / Local data source

Supported

Supported

Supported

Supported

OpenCode

Plugin

Supported

Supported

Supported

Supported

Prerequisites

Before you begin, make sure that the following general requirements are met:

  • The target AI Coding Agent is installed and has been used at least once.

  • The AI Coding Agent onboarding resources have been initialized in the AgentLoop console, and you have obtained the auto-generated installation command.

macOS / Linux

Make sure that the following requirements are also met on your machine:

  • Node.js 22.22 or later is installed.

  • npm is installed.

  • curl or wget is installed.

Windows

Make sure that the following requirements are also met on your machine:

  • Windows 10 or later.

  • PowerShell 5.x.

  • nvm and Node.js 22.22. To install them:

    1. Install nvm for Windows. Run the following command in PowerShell:

      curl.exe -L -o "$env:TEMP\nvm-setup.exe" "https://github.com/coreybutler/nvm-windows/releases/download/1.2.2/nvm-setup.exe"; Start-Process -FilePath "$env:TEMP\nvm-setup.exe" -ArgumentList "/SILENT" -Wait
    2. Open a new PowerShell window and run the following commands to install and activate Node.js 22.22:

      nvm install 22.22
      nvm use 22.22

Install LoongSuite Pilot

For AgentLoop users, we recommend that you copy the installation command auto-generated in the AgentLoop console. The resource names and connection parameters in the command (except true and false) are generated automatically during onboarding resource initialization.

Obtain the CMS and SLS parameter values from the AgentLoop console.

macOS / Linux

# Run the installation command. Replace all parameter values with the ones obtained above.
curl -fsSL https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh install \
  --collect-log "true" \
  --collect-trace "true" \
  --sls-project "your_SLS_Project_name" \
  --sls-logstore "your_SLS_Logstore_name" \
  --sls-endpoint "your_SLS_endpoint" \
  --cms-license-key "your_Trace_License_Key" \
  --cms-endpoint "your_Trace_endpoint" \
  --cms-workspace "your_Trace_workspace" \
  --service-name-prefix "your_service_name_prefix"

Windows

# Download the installer script
Invoke-WebRequest `
    -Uri 'https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.ps1' `
    -OutFile installer.ps1

# Run the installer. Replace all parameter values with the ones obtained above.
.\installer.ps1 install `
    -CollectLog 'true' `
    -CollectTrace 'true' `
    -SlsProject "your_SLS_Project_name" `
    -SlsLogstore "your_SLS_Logstore_name" `
    -SlsEndpoint "your_SLS_endpoint" `
    -CmsLicenseKey "your_Trace_License_Key" `
    -CmsEndpoint "your_Trace_endpoint" `
    -CmsWorkspace "your_Trace_workspace" `
    -ServiceNamePrefix "your_service_name_prefix"

The installer automatically performs the following operations:

  • Detects the AI Coding Agents supported on your machine.

  • Allows you to select the agents whose data you want to collect.

  • Deploys the corresponding hooks or plugins.

  • Writes the local configuration.

  • Starts the LoongSuite Pilot background service.

After the installation is complete, run the following commands to check the service status:

loongsuite-pilot status
loongsuite-pilot info

By default, LoongSuite Pilot writes local configuration, runtime status, and JSONL collection results to the .loongsuite-pilot directory under the current user's home directory. The default paths are as follows:

Purpose

macOS / Linux

Windows

Data root directory

~/.loongsuite-pilot/

C:\Users\<username>\.loongsuite-pilot\

Configuration file

~/.loongsuite-pilot/config.json

C:\Users\<username>\.loongsuite-pilot\config.json

Local JSONL output directory

~/.loongsuite-pilot/logs/output/

C:\Users\<username>\.loongsuite-pilot\logs\output\

Agent access control file

~/.loongsuite-pilot/agent-control.json

C:\Users\<username>\.loongsuite-pilot\agent-control.json

Manage LoongSuite Pilot

To enable the local dashboard, run the following command:

loongsuite-pilot monitor start

Then visit the following URL:

http://127.0.0.1:8765/

To uninstall LoongSuite Pilot and retain local data, run the following command:

macOS / Linux:

curl -fsSL https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh uninstall

Windows:

.\installer.ps1 uninstall

To remove both installation files and local data, run the following command:

macOS / Linux:

curl -fsSL https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh uninstall --purge

Windows:

.\installer.ps1 uninstall -Purge

Configure Agent Collection

After installation, you can control whether to collect data from a specific AI Coding Agent by modifying the agents section in the local configuration file. The default configuration file path is as follows:

OS

Configuration file path

macOS / Linux

~/.loongsuite-pilot/config.json

Windows

C:\Users\<username>\.loongsuite-pilot\config.json

{
  "agents": {
    "claude-code": {
      "enabled": true
    },
    "cursor": {
      "enabled": true
    },
    "qoder": {
      "enabled": false
    }
  }
}

Configuration

Description

enabled: true

Enables data collection for this agent. LoongSuite Pilot still checks whether the corresponding data source exists on your machine.

enabled: false

Disables data collection for this agent.

For example, to collect data from Claude Code and Cursor but disable Qoder, use the configuration shown above. After you modify the configuration, restart LoongSuite Pilot:

loongsuite-pilot restart

Configure Data Masking

LoongSuite Pilot can mask common credentials in normalized events before they are sent to the output backend. Masking applies to scenarios in which prompts, completions, tool parameters, or tool results may contain credentials.

To enable or adjust the masking policy, modify the local configuration file. The default configuration file path is as follows:

OS

Configuration file path

macOS / Linux

~/.loongsuite-pilot/config.json

Windows

C:\Users\<username>\.loongsuite-pilot\config.json

To enable all masking rules:

{
  "mask": {
    "mode": "all"
  }
}

To enable only specific masking rules:

{
  "mask": {
    "mode": "custom",
    "types": [
      "apiKey",
      "databaseUrl"
    ]
  }
}

The following table describes the masking modes.

Mode

Description

none

No masking is applied. This is the default mode when the mask mode is not configured.

all

Enables all built-in sensitive data rules.

custom

Enables only the masking types listed in mask.types.

The following table describes the masking types.

Type

Coverage

Replacement Marker

cloudAccessKey

AccessKey IDs in Alibaba Cloud, AWS, or Tencent Cloud format.

[ACCESSKEY_MASKED]

apiKey

OpenAI-compatible and common platform API keys.

[APIKEY_MASKED]

privateKey

PEM or OpenSSH private key blocks.

[PRIVATEKEY_MASKED]

databaseUrl

Database URLs that contain passwords.

[DATABASEURL_MASKED]

LoongSuite Pilot primarily scans fields that may contain user or tool content, such as:

  • LLM input and output messages.

  • Tool call parameters.

  • Tool call results.

  • Known agent content fields.

Stable metadata such as model names, token counts, latency, Git branches, and workspace paths are not scanned as credential content fields.

After you modify the configuration, run the following command to restart LoongSuite Pilot:

loongsuite-pilot restart

Verify the Onboarding Result

After installation or configuration changes, follow these steps to verify that the onboarding is successful.

Check the Local Service Status

loongsuite-pilot status
loongsuite-pilot info

Check the Local Collection Output

macOS / Linux:

ls ~/.loongsuite-pilot/logs/output
tail -f ~/.loongsuite-pilot/logs/output/*.jsonl

Windows:

Get-ChildItem "$env:USERPROFILE\.loongsuite-pilot\logs\output"

Get-ChildItem "$env:USERPROFILE\.loongsuite-pilot\logs\output\*.jsonl" |
  Sort-Object LastWriteTime |
  Select-Object -Last 1 |
  Get-Content -Wait

If new events appear in the local output directory, the AI Coding Agent collection pipeline is working.

Check the AgentLoop Console

After you trigger a new AI Coding Agent activity, go back to the AgentLoop console to check the data status of the corresponding onboarding task. Data arrival may be delayed due to local batch sending and backend processing.

Verify Agent Collection

If the expected agent has no data, check the following:

  1. Make sure that the target agent is installed and has been used at least once.

  2. Make sure that the agent is not set to off in the agent access control file. The default path is ~/.loongsuite-pilot/agent-control.json on macOS/Linux and C:\Users\<username>\.loongsuite-pilot\agent-control.json on Windows.

  3. Make sure that the agent is not set to "enabled": false in the configuration file. The default path is ~/.loongsuite-pilot/config.json on macOS/Linux and C:\Users\<username>\.loongsuite-pilot\config.json on Windows.

  4. After you modify the configuration, run loongsuite-pilot restart.

  5. Trigger a new agent activity and then check the local output or the AgentLoop console.

FAQ

What do I do if the expected agent is not found?

Make sure that the target agent is installed, has been used at least once, and is not disabled in agent-control.json or config.json. After you modify the configuration, run loongsuite-pilot restart. On macOS/Linux, the default configuration directory is ~/.loongsuite-pilot/. On Windows, the default directory is C:\Users\<username>\.loongsuite-pilot\.

What do I do if there is no new data locally?

Make sure that LoongSuite Pilot is running. After the service starts, trigger a new AI Coding Agent activity and then check the local JSONL output directory. The default path is ~/.loongsuite-pilot/logs/output/ on macOS/Linux and C:\Users\<username>\.loongsuite-pilot\logs\output\ on Windows.

What do I do if there is no data in the AgentLoop console?

First, check whether new events exist in the local output. If local events exist but are not displayed in the console, refresh the console later or verify that the installation command corresponds to the current AgentLoop onboarding task.

How do I enable data masking?

Modify the mask section in the local configuration file, save the file, and then run loongsuite-pilot restart. The default configuration file path is ~/.loongsuite-pilot/config.json on macOS/Linux and C:\Users\<username>\.loongsuite-pilot\config.json on Windows.