All Products
Search
Document Center

AI Guardrails:Qoder integration guide

Last Updated:Dec 02, 2026

Agent runtimes such as Qoder, QoderCLI, and QoderWork face security risks including prompt injection, sensitive data leakage, and malicious instruction execution, which are difficult to defend against by relying on the model's own capabilities alone. This topic describes how to use AI Guardrails to build runtime security protection through a Qoder native plugin, detecting and blocking potential threats in real time at both the user input and model output stages to keep your Agent running safely and under control.

Solution overview

The Qoder series is an enterprise-grade coding Agent product family that includes Qoder (IDE plugin), QoderCLI (command-line tool), and QoderWork (desktop workbench), supporting coding tasks driven by natural language instructions that invoke large models. However, at runtime, coding Agents face the following security risks:

  • Prompt Injection: Attackers use carefully crafted inputs to manipulate the model into outputting malicious code or performing unauthorized operations.

  • Sensitive data leakage: The model may accidentally expose sensitive content such as enterprise source code, API keys, or internal endpoint addresses when generating code.

  • Malicious instruction execution: Attackers induce the model to visit phishing links or download trojan files, threatening the security of the development environment.

Alibaba Cloud AI Guardrails provides protection for Agent inputs and outputs. Through a Qoder native plugin, it detects risks in real time at both the user input (Prompt) and model output (Response) stages and blocks threatening requests. The protection mechanisms include:

  • Prompt injection detection: Performs input detection before requests are sent to the large model, identifies prompt injection and jailbreak attacks, and blocks maliciously crafted instructions to prevent the model from being manipulated into outputting malicious code or performing unauthorized operations.

  • Sensitive data leakage detection: Masks sensitive information such as enterprise source code, API keys, and internal endpoint addresses at the input stage so that real sensitive data never reaches the model side; detects and blocks sensitive information leakage in responses at the output stage. It also supports restoring masked content, avoiding exposure of sensitive data in transit and on the model side without affecting the normal coding experience.

  • Malicious instruction execution detection: Performs output detection before model responses are returned to the user, identifies and filters malicious links and dangerous content such as phishing links and trojan file downloads, preventing the coding Agent from being induced to perform operations that threaten the development environment.

Prerequisites

Before installing the plugin, make sure your environment meets the following requirements.

Environment dependencies

Depending on the type of coding Agent you use, confirm that the corresponding installation is complete:

Agent type

Installation requirement

Qoder

Qoder IDE plugin (Enterprise Edition) installed

QoderCLI

QoderCLI command-line tool installed

QoderWork

QoderWork desktop workbench installed

Permission requirements

  • You must have an Alibaba Cloud account with access to the AI Guardrails console.

  • Packaging and distributing the plugin requires enterprise administrator permissions.

Install the plugin

Log on to the AI Guardrails console, click Overview in the left-side navigation pane, and find Qoder/QoderWork in the Integrated Products area. Hover over it to see the complete integration steps in the pop-up.

The overall steps are as follows:

  1. Authorize the security plugin to call the AI Guardrails service

  2. Obtain the installation command

  3. Run the installation command

  4. Upload the installation package

Step 1: Authorize the security plugin to call the AI Guardrails service

  1. Click Go to Authorize next to Service-Linked Role Authorization and complete the authorization as prompted.

Step 2: Obtain the installation command

  1. In the pop-up, click the Add Configuration button to create a configuration with one click. The system generates the integration configuration and installation command. Alternatively, click Provisioning in the left-side navigation pane to create an integration configuration.

  2. Copy the installation command for the configuration. The installation command has the following format:

    curl -fsSL https://update.aegis.aliyun.com/download/agent-security-installer/1.3.6/installer.sh -o installer.sh && chmod +x installer.sh && ./installer.sh pack --agent qoder --key <installation credential> --region cn
The installation credential is included in the --key parameter and is valid for 24 hours. After it expires, obtain a new one from the console.

Step 3: Run the installation command

Open your local command-line tool, paste the installation command obtained in Step 2, and run it. The system automatically downloads the plugin installation package to your local machine.

macOS: Press Command + Space and type "Terminal" to open it.

Windows: Press Win + R and type cmd to open it.

After the command runs successfully, the installation package is downloaded to the current working directory by default. To specify an output path, add the --output parameter:

./installer.sh pack --agent qoder --key "<installation credential>" --region cn --output ./coding-agent-security.zip

Step 4: Upload the installation package

Choose administrator installation or personal installation based on your scenario. Administrator installation distributes the plugin centrally through the Qoder Enterprise Edition console and is suitable for enterprise batch deployment; personal installation uploads the plugin through the Qoder IDE client yourself and is suitable for individual developers who want quick integration.

Administrator installation

  1. Log on to the Qoder Enterprise Edition console with an administrator account (regular members do not have this permission).

  2. Go to Extensions & Marketplace > Enterprise Marketplace.

  3. Upload the coding-agent-security.zip generated in Step 3. The backend automatically parses the plugin name and version information. Confirm that they are correct and continue.

  4. Set the distribution scope (all members or by group) and the client policy (client-configurable, force-enabled, or silently enabled).

  5. After confirming, click Save Policy. Once distribution succeeds, organization members can see and use the plugin in the Plugin Marketplace of their respective clients.

Personal installation

In the Qoder IDE client, go to Settings > Extension Management, click the Add button on the right side of the plugin list, and upload the coding-agent-security.zip plugin package generated in Step 3 to complete the installation.

Verify the installation

After the plugin is installed, verify that the protection features work properly.

  1. Confirm that the plugin is installed.

    Qoder CLI users can run the following command to view the list of installed plugins. If the output includes the coding-agent-security plugin, the installation succeeded.

    qodercli plugins list

    Qoder/QoderWork users can open the plugin management interface in the client and confirm that the plugin is installed and enabled.

  2. Test the protection effect.

    1. Send a test request.

      Send a test request containing risky content such as sensitive words or abnormal instructions through Qoder/QoderCLI/QoderWork.

    2. View the blocking logs in the console.

      • Log on to the AI Guardrails console and click Detection Results > Result Query in the left-side navigation pane.

      • On the Real-Time Protection tab, filter by Service agent_runtime_guard and the relevant time range to view the blocking logs.

  3. View the Agent protection status.

    Log on to the AI Guardrails console, click Agent Threat > Agent Overview in the left-side navigation pane, and switch to Real-Time Protection in the Agent List on the left to view the offline and online status of all Agents with the protection plugin installed.

Modify the protection policy

After the plugin is installed, you can adjust the protection policy based on your business needs.

  1. Log on to the AI Guardrails console and click Provisioning in the left-side navigation pane.

  2. On the Provisioning page, search for Security Plugins and find the configuration whose source is Qoder.

  3. Click Edit, adjust the protection dimensions and handling rules based on your business needs, and click Save when done. Changes take effect immediately after saving, with no need to reinstall the plugin.

Uninstall the plugin

If you no longer need AI Guardrails to protect the Qoder series coding Agents, you can uninstall the plugin. Uninstalling removes the plugin and its configuration, and protection stops immediately.

Before uninstalling, we recommend that you:

  • Confirm in the console that there are no active protection policies.

  • Confirm that business traffic has been switched to another protection solution.

Administrator operations

On the Enterprise Marketplace page of the Qoder Enterprise Edition console, remove the distributed security protection plugin. After removal, the plugin is automatically uninstalled from the target users' clients.

Personal operations

QoderWork: Find the security protection plugin in the client's Expert Suite and select Uninstall / Remove.

QoderCLI: Run the following command to uninstall the plugin.

macOS/Linux

./install.sh uninstall --agent qodercli

Windows

.\install.ps1 uninstall --agent qodercli

Troubleshooting

If you encounter problems during installation or verification, refer to the following troubleshooting table.

Symptom

Possible cause

Troubleshooting steps

The pack command fails

The installer script is missing or lacks execute permission

Confirm that the install.sh/install.ps1 file exists. On macOS/Linux, run chmod +x install.sh to grant execute permission

The installation credential is invalid or expired

Return to the console to obtain a new installation credential and use it within its validity period

Network connection failure

Check the network connection and make sure Alibaba Cloud APIs are reachable

QoderCLI installation fails

A zip file path was used instead of a directory path

Extract the .zip file into a directory first, then run the installation command using the extracted directory path

The QoderCLI version is incompatible

Upgrade QoderCLI to the latest version

The plugin is installed but not activated

The plugin is not loaded correctly

Restart Qoder/QoderCLI/QoderWork and check the plugin status again

The plugin configuration file is corrupted

Run the packaging and installation process again

Blocking does not take effect

The console authorization configuration is incomplete

Log on to the console to check the authorization status and redo the authorization configuration in Step 1

The console policy configuration is not enabled

Go to the policy configuration page and confirm that the protection dimensions are enabled

The test request does not trigger detection rules

Strengthen the risk characteristics of the test request (for example, add more obvious sensitive words)

No detection results in the console

The plugin is not properly connected to the Protection Server

Check the network connection and confirm that the plugin can reach the Protection Server

Detection result reporting is delayed

Wait 1-2 minutes and refresh the console page

Data collection checklist

This plugin collects the following data for runtime protection, consistent with the data collection scope described in OpenClaw integration guide.

This plugin does not collect the following sensitive information from standard HTTP request headers: Authorization, X-API-Key, API-Key, apikey, X-Auth-Token, auth-token, Cookie, Set-Cookie

Device and environment information

Data item

Description

Purpose

machine_id

Unique device identifier

Identifies the device for security auditing

platform

Operating system platform (such as macOS, Windows)

Identifies the runtime environment type

arch

CPU architecture (such as x64, arm64)

Adapts to platform characteristics

agent_type

Coding Agent type (qoder/qodercli/qoderwork)

Identifies the Agent source

agent_version

Coding Agent version number

Adapts to version characteristics

LLM request/response content (security auditing)

Data item

Description

Purpose

user_prompt

The prompt entered by the user

Detects prompt attacks and sensitive content

system_prompt

System prompt

Detects configuration risks

llm_response

The response content generated by the LLM

Detects content compliance and sensitive information leakage

model_name

The name of the model invoked

Analyzes model behavior characteristics

Tool Call information (security auditing)

Data item

Description

Purpose

tool_name

The name of the tool invoked

Detects malicious tool calls

tool_input

The input parameters of the tool call

Detects injection attacks and sensitive information

tool_output

The result returned by tool execution

Detects information leakage

error_message

Tool execution error message (if any)

Detects abnormal behavior

Data transmission notes

Service endpoint

Transmitted data type

Transmission frequency

Encryption

Management Server

Device information, Agent configuration

Once at plugin startup; in real time on configuration changes

HTTPS + TLS 1.2+

Protection Server

LLM requests/responses, Tool Call information

In real time for each request

HTTPS + TLS 1.2+