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

。

.

相关推荐
kakakahahahaha6 小时前
Win10开始菜单打不开排查:explorer、AppX注册、SFC、服务与用户配置修复
windows·电脑·笔记本电脑·内容运营·软件需求
ITHAOGE157 小时前
下载 | Windows Server 2016最新纯净版ISO映像!(集成9月更新、标准版、数据中心版、14393.9514)
windows·科技·微软·电脑
传奇开心果编程12 小时前
【Compose Multiplatform 跨端开发学与练】第3课 布局与组件
android·windows·学习·ui·ios·kotlin·composer
懒人813 小时前
Windows11系统优化指南
windows·经验分享
Vex2une13 小时前
Windows 磁盘管理发展史:从 FDISK 分区表到存储池与虚拟磁盘
windows·gpt·磁盘管理·mbr·fdisk·动态磁盘·储存池
今夕资源网14 小时前
从夯到拉模拟器RankPix windows本地版 exe
windows·exe·从夯到拉·从夯到拉模拟器·rankpix·本地版
kakakahahahaha14 小时前
Windows系统时间校准指南:time命令、date命令、w32tm /resync与CMOS排查
windows·笔记本电脑·软件需求
一技安身15 小时前
【mysql】Windows MySQL 8.4.10 绿色免安装喂饭教程
windows·mysql·adb
传奇开心果编程15 小时前
【Compose Multiplatform 跨端开发学与练】第8课 资源管理与主题
android·windows·学习·ios·kotlin·web·composer
sukalot16 小时前
Windows 驱动实例分析系列:libwdi 驱动分析 - 应用篇(一)
windows·驱动开发