通过 APIXO 一键接入 OpenClaw
只需四个清晰步骤:创建一个 APIXO 密钥,按官方方式安装 OpenClaw,将配置粘贴到 openclaw.json,即可开始测试 Claude、GPT 和 Gemini。
4 步时间线
从获取 API 密钥到完成首次 OpenClaw 测试的一站式路径
01
创建您的 APIXO API 密钥
这是在通过 APIXO 测试 OpenClaw 之前唯一需要的账户步骤。
先创建密钥,然后在 OpenClaw 配置中的 Anthropic、OpenAI 和 Google 供应商条目中使用该密钥。
02
安装 OpenClaw (推荐)
请先使用官方快速入门流程,然后继续 APIXO 设置。
单行命令是最短的路径,也符合官方推荐。但如果更适合您的环境,也可以使用 npm、pnpm、源码安装或 macOS 客户端。
官方推荐
适用于 macOS 和 Linux。这是最简捷的安装路径,将为您安装所有必要组件。
curl -fsSL https://openclaw.ai/install.sh | bash03
打开 openclaw.json 并粘贴 APIXO 配置
找到该文件,使用普通编辑器打开,粘贴推荐配置并保存,然后重启 OpenClaw。
在主设置流程中,您只需编辑 openclaw.json。推荐的示例已包含主模型及别名允许列表,方便您立即测试。
路径
~/.openclaw/openclaw.json
Open the folder in Finder, or open the file directly with TextEdit if you only want to paste the config.
打开文件
open ~/.openclaw
open -a TextEdit ~/.openclaw/openclaw.json推荐的 openclaw.json
{
"agents": {
"defaults": {
"model": { "primary": "apixo-openai/gpt-5.4" },
"models": {
"apixo-openai/gpt-5.4": { "alias": "GPT 5.4" },
"apixo-anthropic/claude-sonnet-4-6": { "alias": "Claude Sonnet 4.6" },
"apixo-google/gemini-3.1-pro-preview": { "alias": "Gemini 3.1 Pro Preview" }
}
}
},
"models": {
"providers": {
"apixo-anthropic": {
"baseUrl": "https://llm.apixo.ai/v1",
"apiKey": "${apixo api key}",
"auth": "api-key",
"api": "anthropic-messages",
"models": [
{ "id": "claude-sonnet-4-6", "name": "Claude Sonnet 4.6"},
{ "id": "claude-opus-4-6", "name": "Claude Opus 4.6"},
{ "id": "claude-haiku-4-5-20251001", "name": "Claude Haiku 4.5"}
]
},
"apixo-openai": {
"baseUrl": "https://llm.apixo.ai/v1",
"apiKey": "${apixo api key}",
"auth": "token",
"api": "openai-responses",
"models": [
{ "id": "gpt-5.4", "name": "GPT 5.4"},
{ "id": "gpt-5.2", "name": "GPT 5.2"},
{ "id": "gpt-5.3-codex", "name": "GPT 5.3 Codex"},
{ "id": "gpt-5.2-codex", "name": "GPT 5.2 Codex"}
]
},
"apixo-google": {
"baseUrl": "https://llm.apixo.ai/v1beta",
"apiKey": "${apixo api key}",
"auth": "api-key",
"api": "google-generative-ai",
"models": [
{ "id": "gemini-3.1-pro-preview", "name": "Gemini 3.1 Pro Preview"},
{ "id": "gemini-3-pro-preview", "name": "Gemini 3 Pro Preview"},
{ "id": "gemini-2.5-pro", "name": "Gemini 2.5 pro"}
]
}
}
}
}供应商详情
{
"apixo-anthropic": {
"baseUrl": "https://llm.apixo.ai/v1",
"apiKey": "${apixo api key}",
"auth": "api-key",
"api": "anthropic-messages",
"models": [
{ "id": "claude-sonnet-4-6", "name": "Claude Sonnet 4.6"},
{ "id": "claude-opus-4-6", "name": "Claude Opus 4.6"},
{ "id": "claude-haiku-4-5-20251001", "name": "Claude Haiku 4.5"}
]
}
}04
设置默认模型并运行一次测试
选择一个 provider/model 引用,重启网关,并发送一条简短的提示词。
OpenClaw 模型引用格式为 provider/model。请先尝试 apixo-openai/gpt-5.4,确认正常运行后,再切换至 Claude 或 Gemini。
Shell
openclaw models list --provider apixo-openai --plain
openclaw models set apixo-openai/gpt-5.4
openclaw models status --plain
openclaw gateway restart
openclaw agent --agent main -m "hi" --json准备测试
创建您的 API 密钥并运行首次 OpenClaw 测试
上方的页面特意简化了设置路径:先获取密钥,再安装,接着配置,最后测试。