OpenClaw 安装指南
官方文档:https://docs.openclaw.ai/start/getting-started
需要先安装 Node 22,建议使用 nvm 安装。Windows 可使用以下命令自动安装 Node 22,Linux 需自行手动安装并安装 Git。
安装命令
Windows:
iwr -useb https://openclaw.ai/install.ps1 | iex
Linux/Mac:
curl -fsSL https://openclaw.ai/install.sh | bash
运行引导程序
安装服务:
openclaw onboard --install-daemon
选择 quickstart qwen 模型,其他跳过,最后一步选择 TUI,后台运行 openclaw。
常用命令
- 查看状态:
openclaw status - 启动网关:
openclaw gateway - 重启网关:
openclaw gateway restart - 查看仪表盘网址:
openclaw dashboard - 检查修复:
openclaw doctor --fix - 引导配置:
openclaw onboard
访问配置
Windows 执行完成后输入 openclaw dashboard 查看网址。若访问无 token 的 URL,直接访问 127.0.0.1:18789 会出现设备身份错误。
Linux 本机部署默认在内网,需进行端口映射实现外网访问。
- 修改
openclaw.json,添加controlUi并将gateway下的bind由loopback改为lan。
{
"controlUi": { "allowInsecureAuth": true },
"bind": "lan"
}
完整 gateway 配置示例:
{
"gateway": {

