Files

45 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2026-09-01 16:33:25 +08:00
# mini-OpenClaw 快速启动指南
## 阶段一:环境搭建
### 后端安装(在 F:\mini-OpenClaw\backend 目录执行)
```bash
# 1. 创建虚拟环境
python -m venv venv
# 2. 激活虚拟环境
venv\Scripts\activate.bat # Windows CMD
# 或
.\venv\Scripts\Activate.ps1 # PowerShell
# 3. 安装依赖(使用清华镜像)
pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# 4. 启动后端
uvicorn app:app --host 0.0.0.0 --port 8002
```
### 前端安装(在 F:\mini-OpenClaw 目录执行)
```bash
# 1. 安装依赖(使用淘宝镜像)
npm install --registry=https://registry.npmmirror.com
# 2. 启动前端
npm run dev
```
## 验证
- 后端:访问 http://localhost:8002 应返回 {"name":"mini OpenClaw","version":"0.1.0","status":"running"}
- 前端:访问 http://localhost:3000 应看到聊天界面
## 配置
后端 .env 已配置:
- API Key: 使用 Hermes 的 DEEPSEEK_API_KEY
- Base URL: http://49.232.133.151/v1
- Model: deepseek-v4-flash