You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<a href="https://cursor.com/link/prompt?text=Help%20me%20set%20up%20Sim%20Studio%20locally.%20Follow%20these%20steps%3A%0A%0A1.%20First%2C%20verify%20Docker%20is%20installed%20and%20running%3A%0A%20%20%20docker%20--version%0A%20%20%20docker%20info%0A%0A2.%20Clone%20the%20repository%3A%0A%20%20%20git%20clone%20https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim.git%0A%20%20%20cd%20sim%0A%0A3.%20Start%20the%20services%20with%20Docker%20Compose%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20up%20-d%0A%0A4.%20Wait%20for%20all%20containers%20to%20be%20healthy%20(this%20may%20take%201-2%20minutes)%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20ps%0A%0A5.%20Verify%20the%20app%20is%20accessible%20at%20http%3A%2F%2Flocalhost%3A3000%0A%0AIf%20there%20are%20any%20errors%2C%20help%20me%20troubleshoot%20them.%20Common%20issues%3A%0A-%20Port%203000%2C%203002%2C%20or%205432%20already%20in%20use%0A-%20Docker%20not%20running%0A-%20Insufficient%20memory%20(needs%2012GB%2B%20RAM)%0A%0AFor%20local%20AI%20models%20with%20Ollama%2C%20use%20this%20instead%20of%20step%203%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.ollama.yml%20--profile%20setup%20up%20-d"><img src="https://img.shields.io/badge/Set%20Up%20with-Cursor-000000?logo=cursor&logoColor=white" alt="Set Up with Cursor"></a>
18
+
</p>
19
+
16
20
### Build Workflows with Ease
17
21
Design agent workflows visually on a canvas—connect agents, tools, and blocks, then run them instantly.
18
22
@@ -60,17 +64,11 @@ Docker must be installed and running on your machine.
If you already have Ollama running on your host machine (outside Docker), you need to configure the `OLLAMA_URL` to use `host.docker.internal` instead of `localhost`:
92
+
If Ollama is running on your host machine, use `host.docker.internal` instead of `localhost`:
95
93
96
94
```bash
97
-
# Docker Desktop (macOS/Windows)
98
95
OLLAMA_URL=http://host.docker.internal:11434 docker compose -f docker-compose.prod.yml up -d
99
-
100
-
# Linux (add extra_hosts or use host IP)
101
-
docker compose -f docker-compose.prod.yml up -d # Then set OLLAMA_URL to your host's IP
102
96
```
103
97
104
-
**Why?** When running inside Docker, `localhost` refers to the container itself, not your host machine. `host.docker.internal` is a special DNS name that resolves to the host.
105
-
106
-
For Linux users, you can either:
107
-
- Use your host machine's actual IP address (e.g., `http://192.168.1.100:11434`)
108
-
- Add `extra_hosts: ["host.docker.internal:host-gateway"]` to the simstudio service in your compose file
98
+
On Linux, use your host's IP address or add `extra_hosts: ["host.docker.internal:host-gateway"]` to the compose file.
109
99
110
100
#### Using vLLM
111
101
112
-
Sim also supports [vLLM](https://docs.vllm.ai/) for self-hosted models with OpenAI-compatible API:
113
-
114
-
```bash
115
-
# Set these environment variables
116
-
VLLM_BASE_URL=http://your-vllm-server:8000
117
-
VLLM_API_KEY=your_optional_api_key # Only if your vLLM instance requires auth
118
-
```
119
-
120
-
When running with Docker, use `host.docker.internal` if vLLM is on your host machine (same as Ollama above).
102
+
Sim supports [vLLM](https://docs.vllm.ai/) for self-hosted models. Set `VLLM_BASE_URL` and optionally `VLLM_API_KEY` in your environment.
121
103
122
104
### Self-hosted: Dev Containers
123
105
@@ -128,14 +110,9 @@ When running with Docker, use `host.docker.internal` if vLLM is on your host mac
128
110
129
111
### Self-hosted: Manual Setup
130
112
131
-
**Requirements:**
132
-
-[Bun](https://bun.sh/) runtime
133
-
-[Node.js](https://nodejs.org/) v20+ (required for sandboxed code execution)
134
-
- PostgreSQL 12+ with [pgvector extension](https://github.com/pgvector/pgvector) (required for AI embeddings)
135
-
136
-
**Note:** Sim uses vector embeddings for AI features like knowledge bases and semantic search, which requires the `pgvector` PostgreSQL extension.
113
+
**Requirements:**[Bun](https://bun.sh/), [Node.js](https://nodejs.org/) v20+, PostgreSQL 12+ with [pgvector](https://github.com/pgvector/pgvector)
137
114
138
-
1. Clone and install dependencies:
115
+
1. Clone and install:
139
116
140
117
```bash
141
118
git clone https://github.com/simstudioai/sim.git
@@ -145,75 +122,33 @@ bun install
145
122
146
123
2. Set up PostgreSQL with pgvector:
147
124
148
-
You need PostgreSQL with the `vector` extension for embedding support. Choose one option:
149
-
150
-
**Option A: Using Docker (Recommended)**
151
-
```bash
152
-
# Start PostgreSQL with pgvector extension
153
-
docker run --name simstudio-db \
154
-
-e POSTGRES_PASSWORD=your_password \
155
-
-e POSTGRES_DB=simstudio \
156
-
-p 5432:5432 -d \
157
-
pgvector/pgvector:pg17
158
-
```
159
-
160
-
**Option B: Manual Installation**
161
-
- Install PostgreSQL 12+ and the pgvector extension
162
-
- See [pgvector installation guide](https://github.com/pgvector/pgvector#installation)
# Edit both .env files to set DATABASE_URL="postgresql://postgres:your_password@localhost:5432/simstudio"
193
137
```
194
138
195
-
5. Start the development servers:
196
-
197
-
**Recommended approach - run both servers together (from project root):**
139
+
4. Run migrations:
198
140
199
141
```bash
200
-
bun run dev:full
142
+
cd packages/db && bunx drizzle-kit migrate --config=./drizzle.config.ts
201
143
```
202
144
203
-
This starts both the main Next.js application and the realtime socket server required for full functionality.
204
-
205
-
**Alternative - run servers separately:**
145
+
5. Start development servers:
206
146
207
-
Next.js app (from project root):
208
147
```bash
209
-
bun run dev
148
+
bun run dev:full # Starts both Next.js app and realtime socket server
210
149
```
211
150
212
-
Realtime socket server (from `apps/sim` directory in a separate terminal):
213
-
```bash
214
-
cd apps/sim
215
-
bun run dev:sockets
216
-
```
151
+
Or run separately: `bun run dev` (Next.js) and `cd apps/sim && bun run dev:sockets` (realtime).
217
152
218
153
## Copilot API Keys
219
154
@@ -224,17 +159,17 @@ Copilot is a Sim-managed service. To use Copilot on a self-hosted instance:
224
159
225
160
## Environment Variables
226
161
227
-
Key environment variables for self-hosted deployments (see `apps/sim/.env.example` for full list):
162
+
Key environment variables for self-hosted deployments. See [`.env.example`](apps/sim/.env.example) for defaults or [`env.ts`](apps/sim/lib/core/config/env.ts) for the full list.
228
163
229
164
| Variable | Required | Description |
230
165
|----------|----------|-------------|
231
166
|`DATABASE_URL`| Yes | PostgreSQL connection string with pgvector |
0 commit comments