---
title: "Deploy Sim"
description: "Sim 0.8.59: open-source visual builder for AI agent workflows."
category: "AI/ML"
url: https://railway.com/deploy/sim
---

# Deploy Sim

Sim 0.8.59: open-source visual builder for AI agent workflows.

**[Deploy Sim on Railway](https://railway.com/template/sim)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/sim/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### realtime https://raw.githubusercontent.com/simstudioai/sim/v0.8.59/apps/sim/public/favicon/web-app-manifest-512x512.png

- **Image:** ghcr.io/simstudioai/realtime:v0.8.59
- **Health check:** /health
- **Public domain:** Yes

### migrations https://raw.githubusercontent.com/simstudioai/sim/v0.8.59/apps/sim/public/favicon/web-app-manifest-512x512.png

- **Image:** ghcr.io/simstudioai/migrations:v0.8.59
- **Start command:** `sh -c 'cd /app/packages/db && exec bun run db:migrate'`

### sim https://raw.githubusercontent.com/simstudioai/sim/v0.8.59/apps/sim/public/favicon/web-app-manifest-512x512.png

- **Image:** ghcr.io/simstudioai/simstudio:v0.8.59
- **Start command:** `sh -c 'printf "%s\n" "$SIM_SEED" > /tmp/seed.mjs; bun apps/sim/bootstrap.js & pid=$!; trap "kill -TERM $pid; wait $pid; exit 0" TERM INT; bun /tmp/seed.mjs & wait $pid'`
- **Health check:** /api/health
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Documentation

# Deploy and Host Sim on Railway

Sim is an open-source platform for building and running AI agent workflows on a visual canvas. You connect LLM blocks, tools, APIs, knowledge bases and more than a hundred integrations, then run workflows on schedules, webhooks or chat, with logs and versioning. It is an alternative to Flowise and n8n for AI-heavy automation.

## About Hosting Sim

This template runs the official Sim v0.8.59 images as three services with Railway Postgres (with pgvector) and Redis: `sim` is the app, `realtime` is the socket server for collaborative editing, and `migrations` applies the database schema and exits. Sign-up and login are limited to `SIM_ADMIN_EMAIL`, and a boot script creates that account with a generated password, so strangers cannot register. Encryption, auth and internal secrets are generated. Workflows, logs and credentials live in Postgres. The app needs about 1 GB of RAM. Add your own LLM API keys in the workspace settings.

## Common Use Cases

- Building AI agents and chatbots on a visual canvas
- Automating workflows that mix LLMs with APIs and databases
- Running scheduled or webhook-triggered AI pipelines

## Dependencies for Sim Hosting

- `ghcr.io/simstudioai/simstudio`, `realtime` and `migrations` at `v0.8.59` (official images)
- Railway Postgres and Redis

### Deployment Dependencies

- [Sim documentation](https://docs.sim.ai/)
- [Sim v0.8.59 release](https://github.com/simstudioai/sim/releases/tag/v0.8.59)
- [Railway Postgres](https://docs.railway.com/guides/postgresql)

### Implementation Details

| Service | Source | Networking | Storage |
| --- | --- | --- | --- |
| sim | `ghcr.io/simstudioai/simstudio:v0.8.59` | public domain on 3000 | none (state in Postgres) |
| realtime | `ghcr.io/simstudioai/realtime:v0.8.59` | public domain on 3002 | none |
| migrations | `ghcr.io/simstudioai/migrations:v0.8.59` | none; runs once and exits | none |
| Postgres | Railway Postgres | private | Railway volume |
| Redis | Railway Redis | private | Railway volume |

| Variable (sim) | Default | Purpose |
| --- | --- | --- |
| `SIM_ADMIN_EMAIL` | `admin@example.com` | The only email allowed to sign up and log in |
| `SIM_ADMIN_PASSWORD` | generated | Password of the account created on first boot |
| `ALLOWED_LOGIN_EMAILS` | `${{SIM_ADMIN_EMAIL}}` | Comma-separated allow-list |
| `ENCRYPTION_KEY` | generated | Encrypts stored credentials; never change it |

Notes:

- To add teammates, append their emails to `ALLOWED_LOGIN_EMAILS` and let them sign up.
- The realtime server binds IPv4 only, so the app reaches it through its public domain.
- Redeploy `migrations` after upgrading the image versions.

This is a community-maintained deployment package and does not imply affiliation with or endorsement by Sim Studio.

## Why Deploy Sim on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Sim on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/sim
