yymaxapi
v1.0.116
Published
跨平台 OpenClaw/Clawdbot 配置管理工具 - 管理中转地址、模型切换、API Keys、测速优化
Maintainers
Readme
yymaxapi - AI 模型配置
配置 OpenClaw 连接 AI 模型(Claude、GPT 等),一条命令搞定。
快速开始
方式一:交互式(推荐新手)
npx yymaxapi@latest按提示选择模型并输入 Key 即可,默认会直接使用预设默认节点。 主菜单已简化为:一键配置 / 配置外部工具 / 测速节点 / 测试连接 / 查看配置 / 恢复 / 退出。
需要手动测速时
npx yymaxapi@latest speed-test或在具体配置命令后追加 --speed-test,按测速结果手动选点。
如需直接切换到其他云翼域名,可在预设/一键激活命令后追加 --endpoint-url https://yunyi.cfd,也兼容 --base-url https://你的域名/claude 这种写法。
方式二:一键配置 Claude
# macOS/Linux
OPENCLAW_CLAUDE_KEY="你的Key" npx yymaxapi@latest preset-claude
# Windows PowerShell
$env:OPENCLAW_CLAUDE_KEY="你的Key"; npx yymaxapi@latest preset-claude
# Windows CMD
set OPENCLAW_CLAUDE_KEY=你的Key && npx yymaxapi@latest preset-claude说明:preset-claude 现在只写 Claude Code CLI 自身配置,不会改动 OpenClaw、Codex CLI、Opencode。
方式三:一键配置 Codex
# macOS/Linux
OPENCLAW_CODEX_KEY="你的Key" npx yymaxapi@latest preset-codex
# Windows PowerShell
$env:OPENCLAW_CODEX_KEY="你的Key"; npx yymaxapi@latest preset-codex
# Windows CMD
set OPENCLAW_CODEX_KEY=你的Key && npx yymaxapi@latest preset-codex方式四:完全自动化(无交互)
# macOS/Linux
OPENCLAW_CLAUDE_KEY="你的Key" npx yymaxapi@latest preset-claude --model claude-opus-4-7 --set-primary true --force --test true
# Windows PowerShell
$env:OPENCLAW_CLAUDE_KEY="你的Key"; npx yymaxapi@latest preset-claude --model claude-opus-4-7 --set-primary true --force --test true
# Windows CMD
set OPENCLAW_CLAUDE_KEY=你的Key && npx yymaxapi@latest preset-claude --model claude-opus-4-7 --set-primary true --force --test true
# macOS/Linux
OPENCLAW_CODEX_KEY="你的Key" npx yymaxapi@latest preset-codex --model gpt-5.4 --set-primary true --force --test true
# Windows PowerShell
$env:OPENCLAW_CODEX_KEY="你的Key"; npx yymaxapi@latest preset-codex --model gpt-5.4 --set-primary true --force --test true
# Windows CMD
set OPENCLAW_CODEX_KEY=你的Key && npx yymaxapi@latest preset-codex --model gpt-5.4 --set-primary true --force --test true重要说明
- 一键激活/预设会默认只保留一个中转配置,避免写入过多节点导致混乱
- 若检测到已有中转配置,会提示确认;使用
--force将直接覆盖
配置入口(无需记忆)
节点/模型/API 类型配置在:
Service/OpenClawApi/config/API节点设置.md
CLI 会自动读取该文件内的 JSON5 配置块。只需修改这个文件即可。
如需自定义路径,可设置:
OPENCLAW_PRESET_PATH=/path/to/你的配置.md
文档入口
更详细说明在:
Service/OpenClawApi/docs/README.md
