chore: mini-openclaw 初始版本

Next.js 前端 + FastAPI/LangChain 后端透明 agent平台
- 含 .gitignore, 敏感文件(sessions数据/.env/venv等)已排除
- 待后续添加 trajectory 自进化机制
This commit is contained in:
NathanAlex7
2026-09-01 16:40:10 +08:00
committed by NathanAlex7
parent 73796a6abd
commit 42ce992a0f
76 changed files with 14207 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
# 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