This document provides a high-level introduction to Sim Studio, an AI agent workflow platform for building and deploying automated agentic workforces. It covers the system's purpose, core capabilities, architectural patterns, and technology stack.
Sim Studio is an open-source platform designed to visually orchestrate AI agents, tools, and LLMs. Users build workflows by connecting "blocks" (logic units) into directed acyclic graphs (DAGs) on a visual canvas README.md24-29 These workflows can be executed instantly, deployed as APIs, or triggered via webhooks and schedules README.md11-18
The system is architected as a Next.js 16 monorepo using the Bun runtime for high-performance execution package.json3-10 apps/sim/package.json6-9
The platform features a visual canvas that allows for drag-and-drop workflow construction README.md24-29 It supports real-time collaborative editing powered by a dedicated Socket.io server apps/sim/package.json185 apps/realtime/package.json72
Sim Studio integrates with 30+ AI providers, including OpenAI, Anthropic, Google Gemini, and local providers like Ollama apps/sim/package.json35-191 Agents can utilize over 200 built-in tools to perform complex tasks README.md24-25
An integrated Copilot allows users to generate nodes, fix workflow errors, and iterate on designs using natural language README.md31-36 The Copilot infrastructure includes specialized API routes and message persistence apps/sim/package.json162
The platform supports document uploads to a vector store, enabling agents to perform RAG (Retrieval-Augmented Generation) using PostgreSQL with pgvector README.md38-43 docker-compose.prod.yml88
The following diagram illustrates the high-level relationship between the user interface, the application logic, and the infrastructure components.
Sim Studio Architecture Map
Sources: apps/sim/package.json107-162 apps/realtime/package.json57-73 README.md11-18 docker-compose.prod.yml88
Sim Studio leverages a modern, type-safe stack designed for scale and developer velocity.
| Layer | Technology | Key Package/Version |
|---|---|---|
| Runtime | Bun | ^1.3.13 package.json3 |
| Framework | Next.js | 16.2.4 apps/sim/package.json156 |
| Frontend | React | 19.2.4 apps/sim/package.json171 |
| Database | PostgreSQL | ^3.4.5 (driver) apps/sim/package.json166 |
| ORM | Drizzle | ^0.45.2 apps/sim/package.json124 |
| Auth | Better Auth | 1.3.12 apps/sim/package.json109 |
| Real-time | Socket.io | ^4.8.1 apps/realtime/package.json72 |
| Workflow Engine | Trigger.dev | 4.4.3 apps/sim/package.json107 |
For a comprehensive breakdown, see Technology Stack.
The project is organized as a Turborepo monorepo package.json7-65 separating the core application from shared libraries and the documentation site.
Code Entity Space Bridge
Sources: package.json7-10 apps/sim/package.json96-103 apps/realtime/package.json57-67 apps/docs/package.json18 docker/app.Dockerfile142 docker/realtime.Dockerfile52
Sim Studio implements enterprise-grade security patterns:
isolated-vm to prevent SSRF and unauthorized system access apps/sim/package.json141 docker/app.Dockerfile109-113turbo prune docker/app.Dockerfile17-24Sources: .github/workflows/test-build.yml58-112 apps/sim/package.json109-141 docker/app.Dockerfile17-24