Next.js 前端 + FastAPI/LangChain 后端透明 agent平台 - 含 .gitignore, 敏感文件(sessions数据/.env/venv等)已排除 - 待后续添加 trajectory 自进化机制
1.1 KiB
1.1 KiB
mini-OpenClaw 快速启动指南
阶段一:环境搭建
后端安装(在 F:\mini-OpenClaw\backend 目录执行)
# 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 目录执行)
# 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