/install llm-proxy
LLM Proxy Skill
LLM API 代理服务,统一管理多个 LLM Provider,支持内容安全审计。
功能
- 多 Provider 统一代理(22+ 提供商)
- 内容安全审计(恶意指令检测、敏感内容过滤)
- 流式响应实时检测
- 健康状态监控
使用方法
启动代理
启动llm-proxy
停止代理
停止llm-proxy
查看状态
llm-proxy状态
重启代理
重启llm-proxy
手动操作
进入 skill 目录后执行:
启动
./scripts/llm-proxy-ctl.sh start
停止
./scripts/llm-proxy-ctl.sh stop
状态
./scripts/llm-proxy-ctl.sh status
重启
./scripts/llm-proxy-ctl.sh restart
配置说明
配置文件:scripts/llm-proxy-config.json
基本配置
| 字段 | 默认值 | 说明 |
|---|---|---|
listen_host |
127.0.0.1 |
监听地址 |
proxy_port |
18888 |
代理端口 |
read_timeout |
60 |
读取超时(秒) |
max_body_size_mb |
10 |
最大请求体(MB) |
max_threads |
50 |
最大线程数 |
安全检测配置
| 配置项 | 说明 |
|---|---|
rules_file |
内容过滤规则文件 |
quick_check_keywords |
快速检测关键词列表 |
修改端口
编辑 llm-proxy-config.json 中的 proxy_port 字段,重启服务生效。
支持的 Provider
免费/免费额度
ollama- 本地 Ollamagemini- Google Geminigroq- Groqcloudflare- Workers AIdeepseek- DeepSeekmoonshot- 月之暗面zhipu- 智谱siliconflow- SiliconFlow
付费
openai- OpenAIanthropic- Anthropicopenrouter- OpenRouternvd- NVIDIA NIMbailian- 阿里百炼baidu- 百度文心spark- 讯飞星火minimax- MiniMaxyi- 零一万物baichuan- 百川together- Together AIfireworks- Fireworks AIreplicate- Replicate
健康检查
curl http://127.0.0.1:18888/health
响应示例:
{
"status": "ok",
"uptime": 3600,
"rules_loaded": {
"layer1": 10,
"layer2": 7,
"whitelist": 6
},
"stats": {
"total_requests": 100,
"total_responses": 98,
"blocked": 0,
"errors": 2
}
}
安全检测机制
三层审核
- L1 - 恶意指令检测:危险命令、提权操作、SQL注入、后门等
- L2 - 敏感内容检测:个人身份信息、凭证密钥、违法内容
- 快速关键词检测:流式响应实时检测风险关键词
流式响应检测
- 每 100 字符检测一次
- 发现风险关键词时注入警告提醒
- 严重违规时阻断响应
自定义关键词
编辑 llm-proxy-config.json 中的 quick_check_keywords 数组添加新关键词。
日志
日志目录:~/.openclaw/logs/llm-proxy/
proxy-YYYY-MM-DD.jsonl- 请求日志ctl-service.log- 服务日志(手动启动时)
注意事项
- 默认端口
18888 - 仅监听本地
127.0.0.1 - 无自动监控,需手动管理
- 修改配置后需重启服务
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install llm-proxy - After installation, invoke the skill by name or use
/llm-proxy - Provide required inputs per the skill's parameter spec and get structured output
What is AI守门人?
LLM API 代理服务管理工具。支持多 Provider 转发(百炼/OpenRouter/NVIDIA)、内容安全审计、健康监控。使用场景:(1)启动/停止/重启代理服务 (2)查看代理状态和统计 (3)配置内容过滤规则。 It is an AI Agent Skill for Claude Code / OpenClaw, with 312 downloads so far.
How do I install AI守门人?
Run "/install llm-proxy" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is AI守门人 free?
Yes, AI守门人 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does AI守门人 support?
AI守门人 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created AI守门人?
It is built and maintained by 394286006 (@394286006); the current version is v1.0.4.