Sim Studio - 构建、测试和优化智能体工作流的强大平台
一、关于 Sim Studio
1、项目概览
Sim Studio 是一个功能强大且用户友好的平台,专为构建、测试和优化智能体工作流而设计。
2、相关链接资源
- Github:https://github.com/simstudioai/sim
- 官网:https://simstudio.ai
- 官方文档:https://docs.simstudio.ai
- 社区支持:Discord | Twitter
- License:Apache-2.0 | https://www.apache.org/licenses/LICENSE-2.0
二、运行方式
1、使用云端托管版本
2、自行托管部署
三、自行托管部署指南
方式 1、Docker 环境部署(推荐)
# 克隆仓库
git clone https://github.com/YOUR_USERNAME/sim.git
cd sim# 配置环境变量
cp sim/.env.example sim/.env# 启动服务
docker compose up -d --build
# 或
./start_simstudio_docker.sh
访问应用
- 打开浏览器访问 http://localhost:3000/w/
/w/
路径是主工作区界面
常用 Docker 命令
# 查看日志
docker compose logs -f simstudio# 访问数据库
docker compose exec db psql -U postgres -d simstudio# 停止服务
docker compose down# 重建并重启(代码变更后)
docker compose up -d --build
使用本地模型
# 拉取模型
./sim/scripts/ollama_docker.sh pull <model_name># 启动本地模型支持
./start_simstudio_docker.sh --local
# 或(NVIDIA GPU)
docker compose up --profile local-gpu -d --build
# 或(CPU)
docker compose up --profile local-cpu -d --build
连接现有 Ollama 实例
方法1(使用主机网络):
docker compose up --profile local-cpu -d --build --network=host
方法2(修改 docker-compose.yml):
services:simstudio:extra_hosts:- "host.docker.internal:host-gateway"environment:- OLLAMA_HOST=http://host.docker.internal:11434
方式 2、开发容器部署
- 安装 VS Code 的 Remote - Containers 扩展
- 打开项目后选择"在容器中重新打开"
- 在终端运行
npm run dev
或使用sim-start
别名
方式 3、手动安装
# 克隆仓库
git clone https://github.com/YOUR_USERNAME/sim.git
cd sim/sim# 安装依赖
npm install# 配置环境
cp .env.example .env# 初始化数据库
npx drizzle-kit push# 启动开发服务器
npm run dev
访问地址:http://localhost:3000
四、技术栈
- 框架:Next.js (App Router)
- 数据库:PostgreSQL + Drizzle ORM
- 认证:Better Auth
- UI:Shadcn + Tailwind CSS
- 状态管理:Zustand
- 流程图编辑器:ReactFlow
- 文档:Fumadocs
伊织 xAI 2025-05-05(一)