首页openclaw插件 › Alibabacloud Hitl Claw Plugin — 阿里云HITL — 人工介入插件

代码插件 扫描中

Alibabacloud Hitl Claw Plugin — 阿里云HITL — 人工介入插件

v0.0.4

阿里云OpenClaw插件,执行阿里云CLI命令时进行风险检测,必要时触发人工介入(HITL)机制以降低运营风险,支持风险命令拦截和用户确认。

0· 4·0 当前
by @sdk-team·Prerequisites
下载插件包 项目主页
License
Prerequisites
最后更新
2026/4/8
安全扫描
VirusTotal
Pending
查看报告
OpenClaw
扫描中
medium confidence
该插件似乎实现了声称的阿里云HITL拦截行为,但存在一些不一致和未披露行为,安装前应验证。
安全有层次,运行前请审查代码。

License

Prerequisites

请查看许可证条款了解详情。

版本

latestv0.0.42026/3/31
● Pending

安装命令 点击复制

官方npx clawhub@latest install @alicloud/alibabacloud-hitl-claw-plugin
镜像加速npx clawhub@latest install @alicloud/alibabacloud-hitl-claw-plugin --registry https://cn.clawhub-mirror.com

插件文档

Alibaba Cloud Agent HITL (Preview)

中文文档

An OpenClaw plugin that performs risk detection when executing Alibaba Cloud CLI commands, triggering Human-in-the-Loop (HITL) mechanism when necessary to reduce operational risks.

Note: Large language models have strong autonomy, and there is still some uncertainty during Agent execution. Please strictly control Agent permissions; This plugin is in preview and may not cover all risky operations. Please thoroughly test to ensure it meets your needs.

Table of Contents

Prerequisites

  • OpenClaw >= 2026.3.24
  • Node.js >= 22.0.0
  • Alibaba Cloud CLI (aliyun) installed and configured
  • When using external channels, run: openclaw config set session.dmScope per-channel-peer
  • Custom API configurations are not supported

Quick Start

openclaw plugins install @alicloud/alibabacloud-hitl-claw-plugin

Features

  • CLI Command Recognition: Recognizes aliyun CLI commands executed by the Agent
  • Risk Assessment: Integrates with Alibaba Cloud IMS CheckHitlRule API for risk detection
  • Human Approval: High and medium-risk commands require human approval via a secure link
  • Multi-Channel Support: Works with DingTalk, Feishu, and OpenClaw console interfaces

Command Recognition

Trigger Conditions

ConditionDescription
Tool TypeOnly checks `exec` tool calls for Alibaba Cloud CLI: `aliyun`
Command PatternMatches `aliyun <ProductCode> <APIName> [Parameters...]`
Supported StylesBoth RPC and ROA styles

Parsing Method

Uses shell-quote library for professional shell command parsing, supporting:

  • Pipe operator |
  • Logical operators &&, ||
  • Command separator ;
  • Background execution &
  • Quotes and escape characters

Examples

Original CommandServer CheckCommand Sent to ServerNotes
`aliyun ecs DescribeInstances`✅ Yes`aliyun ecs DescribeInstances`Standard RPC style
`aliyun ram CreateUser --UserName test`✅ Yes`aliyun ram CreateUser --UserName test`Write operation with params
`aliyun cs GET /clusters`✅ Yes`aliyun cs GET /clusters`ROA style
`ls && aliyun ecs DeleteInstance --InstanceId i-xxx`✅ Yes`aliyun ecs DeleteInstance --InstanceId i-xxx`Extracts Alibaba Cloud part from composite command
`aliyun configure`❌ No-Missing API name, no check triggered
`aws ec2 describe-instances`❌ No-Not an Alibaba Cloud command

Risk Decisions

Risk API (aliyun ims CheckHitlRule) returns three decisions:

DecisionMeaningPlugin Behavior
`ALLOW`Low risk, allow executionPass through
`ESCALATE`High risk, requires approvalSuspend and wait for approval

How It Works

HITL Workflow
HITL Workflow

Configuration

The plugin reads configuration from config.json:

{
  "enabled": true,
  "confirmationTimeoutSeconds": 600
}
OptionTypeDefaultDescription
`enabled`boolean`true`Whether to enable the plugin
`confirmationTimeoutSeconds`number`600`Approval timeout in seconds

Security

1. Shell Command Execution

This plugin invokes the Alibaba Cloud CLI for:

ScenarioDescription
Sensitive Operation DetectionCalls `aliyun ims CheckHitlRule` to detect if the current command is a sensitive operation
Resume User CLI RequestAfter user approval, resumes execution of the original command

This plugin runs in Node.js and uses the child_process module to invoke the aliyun CLI.

Data sent to server: aliyun CLI command content, CLI version, plugin version, Agent type, Session ID

2. Network Requests

This plugin uses fetch to poll approval status and sends approval result notifications to external channels (DingTalk, Feishu) via OpenClaw's dispatchReplyFromConfig API.

  • No sensitive credentials are sent to the server
  • Network requests are only for approval status polling and message notifications

All above behaviors are essential for core plugin functionality. Sensitive information is processed locally and will not be sent to the server.

License

MIT

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务