乐于分享
好东西不私藏

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

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

一. 安装:

方式1:原生 PowerShell 安装

OpenClaw 提供了原生 PowerShell 安装器

# 以管理员身份运行 PowerShell,执行:
iwr-useb https://openclaw.ai/install.ps1 |iex
注:在安装前有可能需要更新Microsoft Store,更新方法如下:
更新 Microsoft Store:选择“开始”菜单点击按钮,然后从应用列表中选择Microsoft Store
在 Microsoft Store 中,选择 “查看更多” > 下载和更新 >获取更新。如果有 Microsoft Store 更新可用,它将自动开始安装。
方式2本地前缀安装器(install-cli.sh
当你希望将 OpenClaw 和 Node 保存在本地前缀(例如 ~/.openclaw)下,而不依赖系统范围的 Node 安装时,请使用此方法:

curl -fsSL https://openclaw.ai/install-cli.sh | bash

方式3npm安装
如果你想通过 npm 管理 OpenClaw,可以这样做:
npm install -g openclaw@latestopenclaw onboard –install-daemon
方式4:从源码安装

git clone https://github.com/openclaw/openclaw.git

cd openclaw

pnpm install && pnpm build && pnpm ui:build

pnpm link –global

openclaw onboard –install-daemon

方式5从 GitHub main 安装

npm install -g github:openclaw/openclaw#main

方式6:先用在Windows系统下用WSL安装Ubuntu系统,再到Ubuntu下安装OpenClaw, 流程如下
Windows
  ↓
安装 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模型:
  1. openclaw onboard.
  2. 设置默认模型:
{
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
#AI #OpenClaw #AIAgent #小龙虾 #小龙虾安装