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

.

相关推荐
love530love12 小时前
Scoop 完整迁移指南:从 C 盘到 D 盘的无缝切换
java·服务器·前端·人工智能·windows·scoop
SJjiemo15 小时前
Simple Sticky Notes 轻量级桌面便签工具
windows
Kelvin_Ngan18 小时前
windows环境变量超出长度限制无法添加新变量
windows
福大大架构师每日一题19 小时前
openclaw v2026.2.21版本正式发布:新增Gemini 3.1支持、火山引擎对接、全新Discord语音系统与超200项安全和性能升级
安全·火山引擎·openclaw
一个人旅程~1 天前
《七重时间的织锦》-致初七
windows·经验分享·笔记·微信公众平台
liuyunshengsir1 天前
1分钟使用openclaw生成ppt
人工智能·openclaw
Boxsc_midnight1 天前
【windows电脑浏览器直接访问虚拟机或云端openclaw的方法】一个不需要HTTPS的安全连接通道(基于SSH)
windows·安全·https·openclaw
开开心心就好1 天前
内存清理软件灵活设置,自动阈值快捷键清
运维·服务器·windows·pdf·harmonyos·risc-v·1024程序员节
技术程序猿华锋1 天前
OpenClaw (CloudBot) 国内完美运行指南:自定义API 代理与飞书协同部署
人工智能·飞书·openclaw
先做个垃圾出来………1 天前
pytest冒烟测试用例过滤执行实例
windows·测试用例·pytest