openclaw在Windows部署

1、下载代码:下载

2、执行命令:

bash 复制代码
C:\bot\openclaw>npx tsx src/index.ts
C:\bot\openclaw>npx tsx src/index.ts setup

-- 配置
npx tsx src/index.ts config

--  下面是核心步骤
Where will the Gateway run?
|  > Local (this machine) (No gateway detected (ws://127.0.0.1:18789))

Select sections to configure
|  >    Model

*  Model/auth provider
|  > Qwen (OAuth)----阿里千问(需要等好一会儿)

*  Models in /model picker (multi-select)
 [•] openrouter/qwen/qwen3-coder:free (我选的这个,看着想免费的)

*  Select sections to configure
|  > Continue (Done)
bash 复制代码
# 1. 启动网关服务(主要服务)
npx tsx src/index.ts gateway

-- 生成token(网上随机生成)
claw-1473829f102e516193f5f209002xxxxx

npx tsx src/index.ts config set gateway.auth.token "claw-1473829f102e516193f5f209002xxxxx"
npx tsx src/index.ts config set gateway.remote.token "claw-1473829f102e516193f5f209002xxxxx"

# 2. 在另一个窗口测试
npx tsx src/index.ts status
npx tsx src/index.ts health

# 3. 使用AI功能(通过命令能回答,说明已经成功了)
npx tsx src/index.ts agent --message "你好,介绍一下你自己"

运行效果:

3、安装pnpm、配置环境目录(用于启动前端)

(执行圈出来的两部,别走弯路):

管理员运行powershell

npm install -g pnpm

pnpm config get registry

没有则修改pnpm源 pnpm config set registry https://registry.npmmirror.com

pnpm config set store-dir "C:\Users\(你的电脑用户名)\.pnpm-store"

pnpm ui:dev

but??----等待有时间研究

带token访问:http://127.0.0.1:18789/?token=claw-1473829f102e516193f5f209002xxxxx

.

相关推荐
kcuwu.15 分钟前
Python进阶:生成器与协程,高效并发编程的核心实践
windows·python·php
竹之却39 分钟前
【Agent-阿程】OpenClaw 2026.4.1 版本更新与使用体验
agent·openclaw
2401_835792541 小时前
FastAPI 速通
windows·python·fastapi
孤独的小丑2 小时前
OpenClaw 架构深度剖析:从设计哲学到技术实现
架构·openclaw·tokens使用优化·大模型云api
easyboot3 小时前
Visual Studio 2026安装Avalonia
ide·windows·visual studio
行者无疆_ty3 小时前
小龙虾(OpenClaw)安装教程
人工智能·agent·openclaw·小龙虾
竹之却6 小时前
Typora 添加锚点实现文档内部快速跳转
ai·typora·openclaw
cxr8286 小时前
龙虾长程任务测试 —— 撰写零人公司自动化运营实践研究报告
运维·人工智能·自动化·openclaw
枕石 入梦6 小时前
【源码解析】OpenClaw 多渠道 AI 助手网关的架构设计与核心原理
人工智能·openclaw·小龙虾
逻极6 小时前
Windows平台Ollama AMD GPU编译全攻略:基于ROCm 6.2的实战指南(附构建脚本)
人工智能·windows·gpu·amd·ollama