在Windows系统下安装小龙虾OpenClaw的几种方式

一. 安装:
方式1:原生 PowerShell 安装
OpenClaw 提供了原生 PowerShell 安装器
# 以管理员身份运行 PowerShell,执行:
iwr-useb https://openclaw.ai/install.ps1 |iex
install-cli.sh)~/.openclaw)下,而不依赖系统范围的 Node 安装时,请使用此方法:curl -fsSL https://openclaw.ai/install-cli.sh | bash
git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install && pnpm build && pnpm ui:build
pnpm link –global
openclaw onboard –install-daemon
npm install -g github:openclaw/openclaw#main
↓
安装 WSL2
↓
安装 Ubuntu
↓
在 Ubuntu 里安装 OpenClaw
↓
运行 OpenClaw onboard
大概流程:
wsl--install然后进入 Ubuntu,再按官方 CLI 方式安装
curl -fsSL https://openclaw.ai/install.sh | bash
二. 安装完成后运行: 运行新手引导
openclaw onboard --install-daemon向导会引导你选择模型提供商、设置 API key, 并配置 Gateway 网关。大约需要 2 分钟。
验证 Gateway 网关正在运行
openclaw gateway status你应该会看到 Gateway 网关正在监听端口 18789。
打开仪表板
openclaw dashboard这会在你的浏览器中打开 Control UI。如果它能加载,说明一切正常。
发送你的第一条消息
在 Control UI 聊天中输入一条消息,你应该会收到 AI 回复。
三.配置LLM模型:
openclaw onboard.设置默认模型: {agents: { defaults: { model: { primary: "anthropic/claude-opus-4-6" } } },
}支持的模型如下:
-
Alibaba Model Studio -
Amazon Bedrock -
Amazon Bedrock Mantle -
Anthropic (API + Claude CLI) -
Arcee AI (Trinity models) -
Azure Speech -
BytePlus (International) -
Cerebras -
Chutes -
Cloudflare AI Gateway -
ComfyUI -
DeepSeek -
ds4 (local DeepSeek V4) -
ElevenLabs -
fal -
Fireworks -
GitHub Copilot -
GLM models -
Google (Gemini) -
Gradium -
Groq (LPU inference) -
Hugging Face (Inference) -
inferrs (local models) -
Kilocode -
LiteLLM (unified gateway) -
LM Studio (local models) -
MiniMax -
Mistral -
Moonshot AI (Kimi + Kimi Coding) -
NVIDIA -
Ollama (cloud + local models) -
OpenAI (API + Codex) -
OpenCode -
OpenCode Go -
OpenRouter -
Perplexity (web search) -
Qianfan -
Qwen Cloud -
Runway -
SenseAudio -
SGLang (local models) -
StepFun -
Synthetic -
Tencent Cloud (TokenHub) -
Together AI -
Venice (Venice AI, privacy-focused) -
Vercel AI Gateway -
vLLM (local models) -
Volcengine (Doubao) -
Vydra -
xAI -
Xiaomi -
Z.AI
夜雨聆风