Install and configure the Alibaba Cloud AI guardrail openclaw hook, which intercepts malicious content in LLM requests using Alibaba Cloud AI Guardrail service. Trigger when user mentions 'install aliyun ai guardrail', 'aliyun ai guardrail', 'aliyun-ai-guardrail', 'Aliyun AI Guardrail hook', or needs to set up AI security detection for openclaw.
基于阿里云AI安全护栏的Openclaw钩子,用于拦截大语言模型请求并检测恶意内容。
将捆绑的钩子目录复制到临时位置并进行安装:
bash
TMPDIR=$(mktemp -d)
cp -r
cd $TMPDIR/aliyun-ai-guardrail && npm install
openclaw hooks install $TMPDIR/aliyun-ai-guardrail
请将
请用户提供其阿里云AccessKey ID和AccessKey Secret。调用阿里云AI安全护栏API时需要这些信息。
获取AKSK后,编辑用户的 openclaw.json 文件(通常位于 ~/.openclaw.json 或项目根目录),添加环境变量:
json
{
env: {
ALIBABACLOUDACCESSKEYID: <用户提供的AK>,
ALIBABACLOUDACCESSKEYSECRET: <用户提供的SK>
}
}
如果 openclaw.json 中已有其他配置,请合并新条目,不要覆盖现有内容。
告知用户安全护栏已配置完成。提醒用户重启网关。该钩子将在openclaw代理启动时自动加载,并拦截包含恶意内容的大语言模型请求。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 aliyun-ai-guardrail-1776203704 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 aliyun-ai-guardrail-1776203704 技能
skillhub install aliyun-ai-guardrail-1776203704
文件大小: 6.05 KB | 发布时间: 2026-4-17 14:03