安全扫描
OpenClaw
安全
high confidence插件代码、配置字段和运行指令与其声明目的(发现和调用 QVeris 主机工具)一致;请求的访问和行为是合理的并且有文档记录。
安全有层次,运行前请审查代码。
版本
latestv2026.3.232026/4/4
● 无害
安装命令 点击复制
官方npx clawhub@latest install @qverisai/qveris
镜像加速npx clawhub@latest install @qverisai/qveris --registry https://cn.clawhub-mirror.com
插件文档
QVeris 插件 for OpenClaw
[图标: npm 版本] [图标: OpenClaw] [图标: 许可证: MIT] [图标: TypeScript]
OpenClaw 插件,通过 QVeris API 实现代理动态工具发现和调用。
功能
加载插件后,代理上下文中注册了以下三个工具:
| 工具 | 描述 |
|---|---|
qveris_discover | 通过自然语言查询(如“天气”、“货币兑换”)搜索工具 |
qveris_call | 执行已发现的工具并传递参数 |
qveris_inspect | 查阅已知工具 ID 的详细模式和示例 |
典型的代理工作流:qveris_discover → qveris_inspect(可选)→ qveris_call。
要求
安装
从 npm 安装
openclaw plugins install @qverisai/qveris从本地源安装(开发)
# 从仓库根目录 openclaw plugins install -l ./extensions/qveris配置
在你的 openclaw.json 中添加以下内容:
{ // 1. 允许插件并使其工具对代理可见 plugins: { allow: ["qveris"], entries: { qveris: { enabled: true, config: { apiKey: "qv-your-api-key-here", // 或使用环境变量 QVERIS_API_KEY region: "cn" // "global"(qveris.ai)或 "cn"(qveris.cn) } } } }, // 2. 将 QVeris 工具添加到代理的工具允许列表 tools: { alsoAllow: ["qveris"] } } 注意: tools.alsoAllow 是必需的。没有它,插件工具将不会传递给 LLM,即使插件已加载。 通过环境变量设置 API 密钥
如果你不想在配置文件中存储密钥:
export QVERIS_API_KEY=qv-your-api-key-here插件首先检查 plugins.entries.qveris.config.apiKey,然后回退到 QVERIS_API_KEY。
安全: 如果启动时未找到 API 密钥,所有三个工具将被默默省略 — 不会抛出错误。
完整配置参考
所有 plugins.entries.qveris.config 下的字段:
| 字段 | 类型 | 默认值 | 描述 | |
|---|---|---|---|---|
apiKey | string | — | QVeris API 密钥。敏感 — 使用环境变量 QVERIS_API_KEY 作为替代。 | |
region | "global" 或 | "cn" | "global" | API 区域。global → qveris.ai,cn → qveris.cn。 |
baseUrl | string | (根据区域推导) | 覆盖 API 基础 URL。仅用于指向私有/预发布端点时使用。 | |
searchTimeoutSeconds | number | 5 | qveris_discover 调用的超时时间(秒)。 | |
executeTimeoutSeconds | number | 60 | qveris_call 的默认超时时间(秒)。可以通过每次调用时的 timeout_seconds 参数覆盖。 | |
searchLimit | number | 10 | qveris_discover 返回的最大工具数量。 | |
maxResponseSize | number | 20480 | 响应体最大大小(字节),超过后将截断。 | |
autoMaterializeFullContent | boolean | false | 如果为 true,则自动下载工具结果中引用的完整内容文件到代理工作空间。 | |
fullContentMaxBytes | number | 10485760 (10 MB) | 完整内容下载的最大大小。 | |
fullContentTimeoutSeconds | number | 30 | 完整内容下载的超时时间(秒)。 |
区域和基础 URL
| 区域 | API 基础 URL | 完整内容下载域 |
|---|---|---|
global | https://qveris.ai/api/v1 | qveris.ai |
cn | https://qveris.cn/api/v1 | qveris.cn |
最小配置 vs 完整配置示例
最小配置(全球区域,环境变量密钥)
export QVERIS_API_KEY=qv-...{ plugins: { allow: ["qveris"], entries: { qveris: { enabled: true } } }, tools: { alsoAllow: ["qveris"] } } 中国区域
{ plugins: { allow: ["qveris"], entries: { qveris: { enabled: true, config: { apiKey: "qv-...", region: "cn" } } } }, tools: { alsoAllow: ["qveris"] } } 启用完整内容物化
{ plugins: { allow: ["qveris"], entries: { qveris: { enabled: true, config: { apiKey: "qv-...", region: "global", autoMaterializeFullContent: true, fullContentMaxBytes: 20971520, // 20 MB fullContentTimeoutSeconds: 60, executeTimeoutSeconds: 120 // 适用于慢速图像/视频生成工具 } } } }, tools: { alsoAllow: ["qveris"] } } 验证
重启网关后,验证插件已加载并工具已注册:
# 重启网关 openclaw gateway restart # 检查插件 openclaw plugins inspect qveris预期输出应包括:
状态: 已加载 工具: qveris_discover, qveris_call, qveris_inspect故障排除
工具不可见于代理
确保设置了 tools.alsoAllow: ["qveris"]。没有这一设置,即使插件加载了,插件工具也将被排除在传递给 LLM 的工具列表之外。
插件加载但工具在 plugins inspect 中缺失
API 密钥未配置。检查:
openclaw config get plugins.entries.qveris # 或 echo $QVERIS_API_KEYplugin id 不匹配 启动时警告
你的 npm 包名必须未作用域以匹配插件 ID qveris。正确的包名是 @qverisai/qveris(不是 @qverisai/openclaw-qveris-plugin)。
无法找到模块 '@.../dist/plugin-sdk/root-alias.cjs/plugin-entry'
OpenClaw 主机的 dist/ 未构建。要么:
- 使用官方
openclawnpm 包作为主机,或者 - 在加载插件之前,在 OpenClaw 分支上运行
pnpm build。
许可证
MIT
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制