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

.

相关推荐
porschev9 小时前
这 3 年做教育相关项目,我把一些经验整理成了一个开源 Agent Skills 项目
ai教育·openclaw·hermes agent skills
梦想画家9 小时前
企业级 OpenClaw 实战:多用户身份映射与权限隔离架构指南
架构·智能体·openclaw
love530love10 小时前
MingLi-Bench 项目部署实录:基于 EPGF 架构的工程化实践
人工智能·windows·python·架构·aigc·epgf·mingli-bench
leazer12 小时前
Flutter Windows 构建失败:.plugin_symlinks 符号链接异常的排查与修复
windows·flutter
linmoo198613 小时前
Agent应用实践之四 - 基础:AgentScope-SpringBoot集成源码解析
人工智能·spring boot·agent·agentscope·openclaw
大貔貅喝啤酒14 小时前
基于Windows下载安装Android Studio 3.3.2版本教程(2026详细图文版)
android·java·windows·android studio
音视频牛哥14 小时前
大牛直播SDK(SmartMediaKit)Windows平台RTSP/RTMP直播播放SDK集成说明(C++版)
windows·音视频·实时音视频·windows rtsp播放器·windows rtmp播放器·超低延迟rtsp播放器·超低延迟rtmp播放器
前端白袍14 小时前
AI+:OpenClaw:开源 AI Agent 框架的定位与技术分析
人工智能·开源·openclaw
Irene199114 小时前
Windows 11 WSL Ubuntu 环境:实际安装 Hive 踩坑实录
hive·windows·ubuntu
console.log('npc')15 小时前
Windows 11 → WSL2 → Ubuntu → Docker → Codex → Sub2API
windows·ubuntu·docker