Api.Airforce
OPENCLAW

OpenClaw 配置指南

将你的自托管 OpenClaw 助手指向 Api.Airforce 作为其 LLM 提供商。

1

安装 OpenClaw

在你的设备上安装 OpenClaw(macOS / iOS / Android / Linux)并完成首次运行设置。clawhub CLI 必须在你的 PATH 中。

2

设置 OpenAI 提供商

运行下面的两个 clawhub 命令 — 它们将 OpenAI 兼容的提供商条目写入你的本地 OpenClaw 配置。

clawhub config set provider.openai.base_url https://api.airforce/v1
clawhub config set provider.openai.api_key YOUR_AIRFORCE_API_KEY
3

设置默认模型

告诉 OpenClaw 默认使用哪个 Airforce 模型。任何聊天模型都可以 — claude-sonnet-4.6 或 gpt-4o 是不错的默认值。

clawhub config set provider.openai.default_model claude-sonnet-4.6
4

重启代理

重启 OpenClaw 让它加载新的提供商配置。CLI 在启动时显示活动的提供商 — 验证它显示「openai (api.airforce)」。

5

在任何渠道交流

通过 OpenClaw 的任何渠道(Discord、Telegram、iMessage、Slack…)发送消息 — 回复现在通过 Api.Airforce 路由。

提示

通过 clawhub 安装的 OpenClaw 技能使用代理配置的模型 — 切换默认模型会同时影响所有技能。