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
{{ message }}
Repository navigation
Commit d0285ea
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/enterprise/self-hosted.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Set the server flag, then restart the application:
19
19
ENTERPRISE_ENABLED=true
20
20
```
21
21
22
-
The server flag controls access and everything the browser shows, including SSO on the login page and the Function block's **Sandbox** selector: the browser reads the server's resolved settings, so there is no `NEXT_PUBLIC_` variable to set. Browser variables left over from older releases do nothing; on a Compose install or source checkout, `bunx sim-setup doctor` reports them. See [Verify your install](/platform/self-hosting/verify).
22
+
The server flag controls access and everything the browser shows, including SSO on the login page and the Function block's **Sandbox** selector: the browser reads the server's resolved settings, so there is no `NEXT_PUBLIC_` variable to set. Browser variables left over from older releases do nothing; on a Compose install or source checkout, `npx sim-setup doctor` reports them. See [Verify your install](/platform/self-hosting/verify).
23
23
24
24
Individual flags override the master switch. For example, to enable the suite with data drains disabled:
25
25
@@ -268,7 +268,7 @@ JavaScript without `import`, `require`, a selected sandbox, or a sandbox file-pa
268
268
| Symptom | Check |
269
269
| --- | --- |
270
270
| A settings section is missing | Check its server flag and restart the app after changing environment variables. These values load at boot; a rebuild is not needed. |
271
-
| The login page has no SSO option, or Function has no Sandbox selector | Check `SSO_ENABLED` (or `ENTERPRISE_ENABLED`) and Sandbox readiness, then restart the app. Run `bunx sim-setup doctor` to check Sandbox readiness. |
271
+
| The login page has no SSO option, or Function has no Sandbox selector | Check `SSO_ENABLED` (or `ENTERPRISE_ENABLED`) and Sandbox readiness, then restart the app. Run `npx sim-setup doctor` to check Sandbox readiness. |
272
272
|**Settings → Sandboxes** shows an upgrade notice | Check Sandbox entitlement, provider credentials, and the immutable Function base. |
273
273
| An enabled feature has no effect in a workspace | Confirm that the workspace belongs to an organization. Use the backfill or workspace move procedure if needed. |
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/architecture.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ The chart can also render the optional `copilot` service, its separate PostgreSQ
74
74
|**Secrets**|`ENCRYPTION_KEY`, `API_ENCRYPTION_KEY`, `BETTER_AUTH_SECRET`, `INTERNAL_API_SECRET`, `CRON_SECRET`| Secret manager and separate recovery copies |
75
75
76
76
<Callouttype="error">
77
-
Neither the production Compose file nor the Helm chart mounts a volume for local uploads. Without configured cloud storage or your own volume, recreating the app container loses those files. Local files are also invisible to other replicas. Configure [object storage](/platform/self-hosting/object-storage) before storing durable files or scaling.
77
+
The production Compose file keeps local uploads in the `sim_uploads` volume on its host; the Helm chart mounts no volume for them, so without cloud storage or your own volume, recreating an app pod loses those files. Local files are also invisible to other replicas. Configure [object storage](/platform/self-hosting/object-storage) before storing durable files or scaling.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/desktop.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,13 @@ Install the official Sim desktop app and connect it to your deployment. You do n
30
30
From your installation directory:
31
31
32
32
```bash
33
-
bunx sim-setup desktop
33
+
npx sim-setup desktop
34
34
```
35
35
36
36
The command reads Compose/Helm configuration, resolves the installer, and prints the download link and server URL. It offers to open the installer in your browser. Use `--no-open` to skip that prompt, or supply the public origin directly:
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/docker.mdx
+24-12Lines changed: 24 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,17 +11,17 @@ Use the production Compose stack for a single-node installation. It starts the a
11
11
12
12
- Docker Engine or Docker Desktop, running.
13
13
- Docker Compose 2.24.0 or later. The file uses optional `env_file` entries introduced in that version.
14
-
-Bun for `bunx`, and Node.js 20 or laterfor the published `sim-setup`executable.
14
+
- Node.js 20 or later, which provides `npx`for the `sim-setup`CLI.
15
15
- Available host ports 3000 and 3002, with enough resources for your workload. See [resource examples](/platform/self-hosting#requirements).
16
16
- A public domain and TLS proxy for remote access.
17
17
18
18
## Quick start
19
19
20
20
```bash
21
-
bunx sim-setup
21
+
npx sim-setup
22
22
```
23
23
24
-
The wizard creates `./sim` with a generated `.env` and production Compose file, then starts published container images. Pass `--dir <path>` for another directory. Open [http://localhost:3000](http://localhost:3000).
24
+
The wizard creates `./sim` with a generated `.env` and production Compose file, then starts published container images. Pass `--dir <path>` for another directory, and `--url https://sim.yourdomain.com` to set the public URL (Custom setup also asks for it). Open [http://localhost:3000](http://localhost:3000), or your public URL. `bunx sim-setup` works too if you use Bun.
25
25
26
26
For a manual installation, obtain the Compose file from a source checkout:
27
27
@@ -69,11 +69,20 @@ Set `CRON_SECRET` for scheduled work. Without it, the cron service prints instru
69
69
70
70
### 2. Configure durable uploads
71
71
72
-
<Callouttype="warn">
73
-
The production Compose file persists PostgreSQL but does not mount `/app/apps/sim/uploads`. Recreating the app container loses uploads stored there. Configure object storage or a persistent mount before saving files you need to retain.
74
-
</Callout>
72
+
Without object storage, the app stores uploads in `/app/apps/sim/uploads`. The production Compose file mounts the `sim_uploads` volume there, so files survive container recreation and updates. The volume is still local to this host: it is not shared across hosts or app replicas, and it needs its own backup. A one-shot `uploads-init` service makes the volume writable by the app user before the app starts.
73
+
74
+
Follow [Object storage](/platform/self-hosting/object-storage) for AWS S3, Azure Blob, or Google Cloud Storage.
75
+
76
+
#### Existing installs: keep uploads from before the volume
75
77
76
-
Follow [Object storage](/platform/self-hosting/object-storage) for AWS S3, Azure Blob, Google Cloud Storage, or local-volume configuration. Local disk is not shared across app replicas.
78
+
Compose files from before `sim_uploads` stored local uploads inside the app container, and recreating it discards them. Copy them out before you switch to the new Compose file or run `npx sim-setup update`, then copy them into the volume:
Route `/socket.io` to realtime on 3002 and other requests to the app on 3000. The 250 MB decimal Caddy limit clears the configured 220 MiB deployed-chat cap, but the app's current Next.js proxy buffer still limits matching requests to 10 MiB. See [Request size limits](/platform/self-hosting/networking#request-size-limits) before increasing payload sizes. `flush_interval -1` explicitly disables response buffering; Caddy already flushes SSE immediately. It also keeps the upstream request running if the client disconnects. See [Caddy streaming behavior](https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#streaming).
125
135
136
+
When the proxy runs on the same host, set `SIM_APP_PUBLISH=127.0.0.1:3000` and `SIM_REALTIME_PUBLISH=127.0.0.1:3002` in `.env` so the app and realtime are reachable only through it. Change only the bind address, not the ports: `sim-setup` checks the app on 3000 and realtime on 3002.
137
+
126
138
This example assumes Caddy runs on the Docker host. A containerized proxy needs reachable Compose service addresses instead of its own `localhost`. For Nginx, Traefik, cloud load balancers, or separate socket hosts, see [Networking](/platform/self-hosting/networking).
Invoke commands as `bunx sim-setup <command>` unless the package is installed globally. Run `doctor`, `config`, and the wizard from the configuration directory. Lifecycle commands discover running production/local Compose stacks, source checkouts, and Helm releases. A stack started withthe Ollama overlay is managed as a production install, through`docker-compose.prod.yml`alone: the CLI acts on the Sim services and leaves the Ollama container untouched.
240
+
Invoke commands as `npx sim-setup <command>` unless the package is installed globally. Run `doctor`, `config`, and the wizard from the configuration directory. Lifecycle commands discover running production/local Compose stacks, source checkouts, and Helm releases. Compose commands apply every file the stack was started with, such as the Ollama overlay. For a stopped stack they use `COMPOSE_FILE` from its `.env`, else`docker-compose.prod.yml`plus `docker-compose.override.yml` when that file exists. `update` prints the files it applies. Compose does not record profiles, so set `COMPOSE_PROFILES` in `.env` (for example `COMPOSE_PROFILES=cpu`) for a stack that uses them.
229
241
230
242
| Command | Behavior |
231
243
| --- | --- |
232
-
|`sim-setup`| Wizard. `--quick` uses defaults and asks essential questions; `--mode compose\|dev\|k8s` chooses the target. Dev and Kubernetes modes require a source checkout. |
244
+
|`sim-setup`| Wizard. `--quick` uses defaults and asks essential questions; `--mode compose\|dev\|k8s` chooses the target; `--url <origin>` sets a Compose install's public URL. Dev and Kubernetes modes require a source checkout. |
233
245
|`status`| Reports detected installations and health. |
234
246
|`logs`| Follows Compose logs or the Kubernetes app deployment. In dev mode, prints container log commands; the app runs in your terminal. |
235
247
|`start` / `stop` / `restart`| Starts, stops, or restarts Compose services. In dev mode, manages only PostgreSQL and Redis; start/stop the dev server yourself. For Kubernetes, prints port-forward or scale commands without applying them. |
@@ -261,12 +273,12 @@ Restore only to the intended database:
Use your configured role/database if you changed `POSTGRES_*`. `-T` disables TTY allocation for redirected input/output. Compose stores database data in the `postgres_data` volume; file uploads and encryption keys need separate backups.
276
+
Use your configured role/database if you changed `POSTGRES_*`. `-T` disables TTY allocation for redirected input/output. Compose stores database data in the `postgres_data` volume and local uploads in the `sim_uploads` volume; back up uploads and encryption keys separately.
265
277
266
278
For an image update, change the pinned `SIM_VERSION` in `.env`, then:
267
279
268
280
```bash
269
-
bunx sim-setup update
281
+
npx sim-setup update
270
282
```
271
283
272
284
Read [Upgrades](/platform/self-hosting/upgrades) before updating or restoring an existing installation.
For Compose or a source checkout, run `bunx sim-setup add knowledge-embeddings` to choose OpenAI, Azure OpenAI, OpenRouter, Gemini, or Ollama and write its configuration. The three OpenAI-family transports share model/width choices. `bunx sim-setup config` reports the family selected by `KB_EMBEDDING_MODEL`. For Helm, set the variables through chart values or your secret strategy. Run Ollama yourself; the setup command configures a connection, not an Ollama installation.
149
+
For Compose or a source checkout, run `npx sim-setup add knowledge-embeddings` to choose OpenAI, Azure OpenAI, OpenRouter, Gemini, or Ollama and write its configuration. The three OpenAI-family transports share model/width choices. `npx sim-setup config` reports the family selected by `KB_EMBEDDING_MODEL`. For Helm, set the variables through chart values or your secret strategy. Run Ollama yourself; the setup command configures a connection, not an Ollama installation.
150
150
151
151
The Embeddings block reads the same `OLLAMA_URL`. It lists the models on that server that report an
152
152
embedding capability, with the width each one emits where Ollama reports it, so a workflow can embed
@@ -214,7 +214,7 @@ Plain JavaScript without imports runs in isolated-vm within Node child workers i
214
214
|`COPILOT_API_KEY`| API key for the Chat service (the Mothership). Required for Chat, the Sim Chat workflow block, and Inbox operations that use that service. See [Chat service](/platform/self-hosting/chat)|
215
215
|`SIM_AGENT_API_URL`| Mothership origin the Sim server calls. Defaults to `https://www.copilot.sim.ai`, the Sim-hosted service |
216
216
|`MOTHERSHIP_SIM_TRANSPORT`|`direct` (the Mothership calls Sim) or `checkpoint` (Sim polls the Mothership for workspace tool calls over outbound HTTPS). Self-hosted Sim defaults to `checkpoint`|
217
-
|`NEXT_PUBLIC_CHAT_DISABLED`| Set to `true` to hide the Chat module: the workspace lands on your first workflow, with no chats list or editor Chat panel. Chat is shown when unset; `bunx sim-setup` sets it for you if you skip the chat key |
217
+
|`NEXT_PUBLIC_CHAT_DISABLED`| Set to `true` to hide the Chat module: the workspace lands on your first workflow, with no chats list or editor Chat panel. Chat is shown when unset; `npx sim-setup` sets it for you if you skip the chat key |
218
218
|`PII_URL`| Base URL of the Presidio service backing PII detection and redaction. The Helm chart wires it to its own `pii` Service when `pii.enabled`; on Compose point it at the PII service on your network. Local development and the Helm fallback use `http://localhost:5001`; that address works only when the service is reachable there. Point production at a running service to use redaction |
219
219
|`ADMIN_API_KEY`| Admin API key for GitOps operations and organization provisioning |
220
220
@@ -236,7 +236,7 @@ Most enterprise features read their settings from the organization that owns a w
236
236
237
237
## File storage
238
238
239
-
By default Sim writes uploads to local disk. Neither stock production Compose nor the default Helm chart mounts the upload directory, so configure cloud storage or a persistent local layout before retaining files. See [Object storage](/platform/self-hosting/object-storage) for the full setup, bucket layout, and IAM policy.
239
+
By default Sim writes uploads to local disk. Production Compose keeps them in the `sim_uploads` volume on its host; the default Helm chart mounts no upload directory, so configure cloud storage or a persistent local layout there before retaining files. See [Object storage](/platform/self-hosting/object-storage) for the full setup, bucket layout, and IAM policy.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,10 @@ Compose bundles PostgreSQL, Redis, and a scheduler. The Helm chart bundles Postg
19
19
20
20
## Quick start
21
21
22
-
Install Bun, Node.js 20 or newer, Docker, and Docker Compose 2.24.0 or later, then run:
22
+
Install Node.js 20 or newer, Docker, and Docker Compose 2.24.0 or later, then run:
23
23
24
24
```bash
25
-
bunx sim-setup
25
+
npx sim-setup
26
26
```
27
27
28
28
The wizard creates a `./sim` directory with a production Compose file and generated `.env`, including `POSTGRES_PASSWORD`. It starts published container images. Open [http://localhost:3000](http://localhost:3000).
@@ -50,7 +50,7 @@ These are sizing suggestions, not enforced minimums or capacity guarantees. The
50
50
- Verify [background jobs](/platform/self-hosting/background-jobs), including the scheduler's `CRON_SECRET`.
51
51
52
52
<Callouttype="warn">
53
-
Recreating an app container with unmounted local uploads loses those files. Losing an encryption key makes the data encrypted with it unreadable. A database backup does not replace file storage or key backups.
53
+
Local uploads live on the Docker host (the `sim_uploads` volume on Compose) and are not shared across hosts; on Kubernetes without object storage, recreating an app pod loses them. Losing an encryption key makes the data encrypted with it unreadable. A database backup does not replace file storage or key backups.
54
54
</Callout>
55
55
56
56
Run [Verify your install](/platform/self-hosting/verify) before opening the deployment to your team and after upgrades or restores.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/object-storage.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Configure file storage before uploading durable files or adding app replicas. Si
17
17
|**[Google Cloud Storage](https://cloud.google.com/storage)**| Production on GCP |
18
18
19
19
<Callouttype="warn">
20
-
Local disk writes to `/app/apps/sim/uploads` inside the container. Neither `docker-compose.prod.yml`nor the Helm chart mounts a volume there, so every uploaded file is lost the moment the container is recreated — and files are **not** shared across replicas. Mount your own volume at that path if you must stay on local disk; for any multi-replica or production deployment, use S3, Azure Blob, or Google Cloud Storage.
20
+
Local disk writes to `/app/apps/sim/uploads` inside the container. `docker-compose.prod.yml`mounts the `sim_uploads`volume there, so files survive container recreation, but they stay on that one host and are **not** shared across replicas. The Helm chart mounts no volume there, so recreating a pod loses them. For any multi-replica or production deployment, use S3, Azure Blob, or Google Cloud Storage.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/security.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -340,7 +340,7 @@ The Compose files do not publish `db` on a host port. `simstudio`, `realtime`, a
340
340
- **You set `POSTGRES_PASSWORD` before the first start.** Nothing else to do — updating the file closes the port.
341
341
- **You never set it.** Postgres applies `POSTGRES_PASSWORD` only when it creates the data volume, so the database still uses `postgres`. Set `POSTGRES_PASSWORD=postgres` in `.env` so the stack starts, then rotate it: run `docker compose -f docker-compose.prod.yml exec db psql -U postgres -c "ALTER ROLE CURRENT_USER PASSWORD '<new password>'"` (with your `POSTGRES_USER` in place of `postgres` if you set one), set `POSTGRES_PASSWORD` to the same value, and run `docker compose -f docker-compose.prod.yml up -d`. Setting a new value in `.env` alone does not change the database's password and locks the app out.
342
342
343
-
`bunx sim-setup start`and `bunx sim-setup update` write the right value for you and print the rotation steps.
343
+
`npx sim-setup start`and `npx sim-setup update` write the right value for you and print the rotation steps.
344
344
</Callout>
345
345
346
346
To reach the database from the host — `psql`, a desktop client, a backup job — use `docker compose -f docker-compose.prod.yml exec db psql -U postgres simstudio`, or pass a second Compose file that publishes it on loopback only and connect over an SSH tunnel:
0 commit comments