热门工具
OpenClaw 安装教程(Linux / WSL2)
Linux 和 WSL2 更适合跑 OpenClaw 这类后台网关服务,整体体验通常也会更稳定。
0. 前置:Node.js 22+
SECTION-1
先装 Node.js:Nodejs Linux
1. 安装 OpenClaw
SECTION-2
curl -fsSL https://openclaw.ai/install.sh | bash
验证:
openclaw --version
openclaw doctor
2. 初始化(Onboard)
SECTION-3
openclaw onboard --install-daemon
推荐选择:
ManualLocal gateway (this machine)- 端口
18789 - 认证方式
Token
3. 写入配置文件
SECTION-4
配置文件路径:~/.openclaw/openclaw.json
mkdir -p ~/.openclaw
{
"agents": {
"defaults": {
"model": {
"primary": "flyapi/gpt-5.2"
}
}
},
"models": {
"mode": "merge",
"providers": {
"flyapi": {
"baseUrl": "https://ai.flyapi.top/v1",
"apiKey": "你的飞行API Key",
"api": "openai-responses"
}
}
},
"gateway": {
"mode": "local",
"port": 18789,
"auth": {
"mode": "token",
"token": "your-token"
}
}
}
4. 重启网关并验证
SECTION-5
openclaw gateway restart
openclaw doctor
openclaw status
openclaw dashboard
