Skip to content

OpenClaw 配置教程

通过 OmniApexRoute 接入 OpenClaw,按需选择 Anthropic(Claude)或 OpenAI(Codex)通道。

两条接入通道

通道服务地址说明
Anthropic(Claude)https://api.omniapexroute.com接口不要带 /v1,示例模型:claude-opus-4-8
OpenAI(Codex)https://api.omniapexroute.com/v1接口必须带 /v1,示例模型:gpt-5.6-sol

注意

安装前请先完成 Node.js 环境安装教程

第一步:安装 OpenClaw

bash
npm install -g @openclaw/cli

第二步:选择接入通道

bash
export ANTHROPIC_API_KEY="YOUR_API_KEY"
openclaw onboard --auth-choice custom-api-key \
  --custom-base-url https://api.omniapexroute.com \
  --custom-api-key-env ANTHROPIC_API_KEY \
  --custom-compatibility anthropic \
  --custom-model claude-opus-4-8
bash
export OPENAI_API_KEY="YOUR_API_KEY"
openclaw onboard --auth-choice custom-api-key \
  --custom-base-url https://api.omniapexroute.com/v1 \
  --custom-api-key-env OPENAI_API_KEY \
  --custom-compatibility openai \
  --custom-model gpt-5.6-sol

提示

请先在 密钥管理 获取对应分组的 API Key,并替换命令中的 YOUR_API_KEY

第三步:开始使用

bash
openclaw