← 返回 Skills 市场
109
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jisuai-auto
功能描述
一键配置 OpenClaw 对接 aicodee.com MiniMax 模型中转服务。当用户需要配置、设置、激活 aicodee 的 MiniMax API 时触发。触发词:jisuai-auto、配置jisuai、配置爱代码、配置MiniMax。
使用说明 (SKILL.md)
jisuai-auto
一键将 aicodee.com MiniMax 中转 API 配置到 OpenClaw。
工作流程
- 从用户消息中提取 API 信息(见下方详细规则)
- 校验必填字段:API Key 不能为空
- 读取当前 openclaw.json
- 运行配置脚本:
python scripts/configure.py --base-url \x3CURL> --api-key \x3CKEY> - 脚本自动完成:
- 在
models.providers下新增jisuaivauto提供商 - 将
agents.defaults.model.primary改为jisuaivauto/MiniMax-M2.7-highspeed
- 在
- 告知用户配置完成
信息提取规则
提取顺序(优先级从高到低)
- 先尝试从代码块(
...)中提取 - 再从普通文本中提取
字段提取
| 字段 | 匹配模式 | 示例 |
|---|---|---|
| API Base URL | 正则:`(?:API\sBase\sURL | baseurl |
| API Key | 正则:`(?:API\s*Key | apikey |
| 模型名称 | 正则:`(?:模型名称 | 模型 |
| ]+)`,取第一个 MiniMax 开头的 | 模型名称:MiniMax-M2.7-highspeed |
默认值
- API Base URL:必填,从消息提取;无法提取时报错要求用户提供
- 模型名称:默认
MiniMax-M2.7-highspeed
常见变体兼容
API Base URL:API Base URL:baseurl:接口地址:API Key:apikey:密钥:
提取示例
输入(混乱格式):
API Base URL:https://v2.aicodee.com
API Key:sk-3a099f856d7664c76c60905895c6a36f
模型: MiniMax-M2.5-highspeed / MiniMax-M2.7-highspeed
提取结果:
- base-url =
https://v2.aicodee.com - api-key =
sk-3a099f856d7664c76c60905895c6a36f - model-id =
MiniMax-M2.5-highspeed(取第一个 MiniMax 开头的)
错误处理
- API Key 缺失:告知用户「未找到 API Key,请确保消息中包含 API Key」
- 脚本执行失败:回显错误信息,建议手动检查 openclaw.json
脚本用法
python scripts/configure.py --base-url "https://v2.aicodee.com" --api-key "sk-3a099f856d7664c76c60905895c6a36f" --provider-name "jisuaivauto"
参数说明:
--base-url:API 服务器地址--api-key:必填,API Key--provider-name:提供商名称,默认jisuaivauto--model-id:模型 ID,默认MiniMax-M2.7-highspeed
安全使用建议
This skill will modify your OpenClaw config file by writing the provided API Base URL and API Key into openclaw.json and switching your default model. Before installing or invoking it:
- Do not paste real API keys into chat if you don't want them stored in your local config; instead run the script locally with the key passed on the command line or set it manually.
- Review and backup your openclaw.json before running the script (it overwrites data at C:\Users\Rice\.openclaw\openclaw.json). The path is hard-coded to a Windows user 'Rice' — edit the script to point to your actual OpenClaw config (or make it use your HOME directory) before running.
- Be aware the SKILL.md metadata does not declare the config file access; treat this as a transparency issue. If you trust the source, manually inspect the script and adjust OPENCLAW_PATH and behavior as needed. If unsure, run the Python script locally yourself (not via an automated agent) after confirming the path and contents to be written.
功能分析
Type: OpenClaw Skill
Name: jisuai-auto
Version: 1.0.0
The skill automates the configuration of an API provider but contains a hardcoded, user-specific absolute file path (`C:\Users\Rice\.openclaw\openclaw.json`) in `scripts/configure.py`. While the script's logic for updating provider settings and default models aligns with the stated purpose in `SKILL.md`, targeting a specific user's directory is a high-risk practice that suggests either poor development or a script intended for a specific target environment. No evidence of data exfiltration or remote code execution was found.
能力评估
Purpose & Capability
The script's goal (add an aicodee MiniMax provider and switch the default model) matches the skill description. However the code uses a hard-coded Windows path (C:\Users\Rice\.openclaw\openclaw.json) and the skill metadata did not declare any required config path; that mismatch is unexpected and suggests poor portability or a misconfiguration that should have been declared.
Instruction Scope
SKILL.md instructs the agent to extract the API Base URL and API Key from user messages and then run the local script which directly reads/writes a local openclaw.json. Automatically parsing user messages for API keys can cause accidental exposure of secrets; the instructions give the agent broad discretion to parse messages for secrets and do not require explicit user confirmation or declare the local path being modified.
Install Mechanism
No install spec; the skill is instruction+script only. Nothing is downloaded or written at install time beyond running the included Python script when invoked.
Credentials
The skill requests no environment variables, but it does require write access to the user's OpenClaw config file; that required config path is not declared in metadata. The API key is expected to be provided in chat messages (not via a declared secret input), which is disproportionate and risky for secret handling. The API-key regex in SKILL.md looks malformed (contains 'sk-\|sk3') and may fail to match or behave unexpectedly.
Persistence & Privilege
The skill is not always-on and does not request elevated platform privileges. It does modify a user configuration file (overwriting openclaw.json entries) when run, which is within its claimed purpose but is a significant change to user settings and should be made explicit and reversible (backup recommended).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install jisuai-auto - 安装完成后,直接呼叫该 Skill 的名称或使用
/jisuai-auto触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of jisuai-auto for one-click configuration of OpenClaw with aicodee.com MiniMax model relay service.
- Supports triggering via multiple Chinese and English keywords.
- Automatically extracts API Base URL, API Key, and MiniMax model from user messages using robust pattern matching.
- Runs a configuration script to update openclaw.json and set the default agent model.
- Includes error handling for missing API Key and script execution failures, providing clear user feedback.
元数据
常见问题
jisuai-auto 是什么?
一键配置 OpenClaw 对接 aicodee.com MiniMax 模型中转服务。当用户需要配置、设置、激活 aicodee 的 MiniMax API 时触发。触发词:jisuai-auto、配置jisuai、配置爱代码、配置MiniMax。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 109 次。
如何安装 jisuai-auto?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install jisuai-auto」即可一键安装,无需额外配置。
jisuai-auto 是免费的吗?
是的,jisuai-auto 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
jisuai-auto 支持哪些平台?
jisuai-auto 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 jisuai-auto?
由 outRice(@outrice)开发并维护,当前版本 v1.0.0。
推荐 Skills