---
title: "Deploy Sim Studio | One Click | Zero Config | Hardened"
description: "One-click Sim Studio: build and deploy AI agent workflows, zero setup."
category: "AI/ML"
url: https://railway.com/deploy/sim-studio-or-one-click-or-zero-config-o
---

# Deploy Sim Studio | One Click | Zero Config | Hardened

One-click Sim Studio: build and deploy AI agent workflows, zero setup.

**[Deploy Sim Studio | One Click | Zero Config | Hardened on Railway](https://railway.com/template/sim-studio-or-one-click-or-zero-config-o)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/sim-studio-or-one-click-or-zero-config-o/manifest.json

- **Creator:** YAV.AI
- **Category:** AI/ML
- **Total deploys:** 2

## Template content

### simstudio https://i.ibb.co/Tx94B41X/sim-studio-icon-filled-256.png

- **Image:** ghcr.io/simstudioai/simstudio:latest
- **Health check:** /api/health
- **Public domain:** Yes

### migrations https://i.ibb.co/Tx94B41X/sim-studio-icon-filled-256.png

- **Image:** ghcr.io/simstudioai/migrations:latest
- **Start command:** `sh -c "cd /app/packages/db && bun run db:migrate"`

### cron https://i.ibb.co/Tx94B41X/sim-studio-icon-filled-256.png

- **Image:** ghcr.io/simstudioai/cron:latest

### 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"`

### Postgres https://i.ibb.co/21qKfXmb/images.png

- **Image:** pgvector/pgvector:pg17

### realtime https://i.ibb.co/Tx94B41X/sim-studio-icon-filled-256.png

- **Image:** ghcr.io/simstudioai/realtime:latest
- **Start command:** `sh -c 'n=0; until bun apps/realtime/src/bootstrap.ts; do n=$((n+1)); [ $n -ge 60 ] && exit 1; echo "realtime: database schema not ready, retry $n/60 in 10s"; sleep 10; done'`
- **Health check:** /health
- **Public domain:** Yes

## Buckets

- **sim-files**

## Documentation

# Deploy and Host Sim Studio on Railway

Sim Studio is an open-source platform for building and running AI agent workflows. You connect LLMs, tools, APIs and knowledge bases on a visual canvas, then deploy the workflows as APIs, chat apps, webhooks, schedules or MCP tools. It supports OpenAI, Anthropic, Gemini and many other model providers, plus over 100 integrations.

## About Hosting Sim Studio

Self-hosting Sim Studio involves several cooperating services. These are the Next.js app, a realtime WebSocket server for live collaboration, a one-off migrations job, and a cron scheduler for background jobs, schedules and polling triggers. Data is stored in PostgreSQL with pgvector for knowledge-base embeddings, Redis handles pub/sub and caching, and S3-compatible storage holds uploaded files. This template wires everything together over Railway's private network. It generates unique secrets for every install, sets up healthchecks and restart policies, and connects a Railway bucket for file storage. Only the app and the realtime server are public. Postgres, Redis and the cron service stay private.

## Common Use Cases

- Building AI agents and multi-step LLM workflows with a visual editor
- Automating business processes with scheduled, webhook or email-triggered workflows across tools like Gmail, Slack, HubSpot and Google Workspace
- Running private RAG and knowledge-base assistants on your own data and infrastructure
- Exposing your workflows to Claude, Cursor and other AI clients through the built-in MCP server

## Dependencies for Sim Studio Hosting

- PostgreSQL 17 with pgvector (`pgvector/pgvector:pg17`)
- Redis
- S3-compatible object storage (Railway Bucket)
- Sim Studio images: `simstudio`, `realtime`, `migrations` and `cron` from `ghcr.io/simstudioai`

### Implementation Details

**Services included:** simstudio (app, port 3000), realtime (WebSocket, port 3002), migrations (runs once, then exits), cron (background jobs), Postgres (pgvector), Redis and a Railway Bucket. All images track `latest`.

**After deploying:**

1. Open the simstudio domain and sign up. The first account becomes yours. Signup is open by default.
2. Add your model provider key as a workspace secret (Settings &gt; Secrets), for example `OPENAI_API_KEY`, and reference it in Agent blocks as `{{OPENAI_API_KEY}}`. On self-hosted Sim, Agent blocks don't use a server-level provider key.

**Optional variables (set on the simstudio service):**

| Variable | Purpose |
|---|---|
| `ALLOWED_LOGIN_EMAILS` | Comma-separated emails allowed to sign up. Recommended, to lock down your instance. |
| `ALLOWED_LOGIN_DOMAINS` | Allow signup for whole email domains, e.g. `company.com` |
| `DISABLE_REGISTRATION` | Set `true` to block all new signups after your account exists |
| `OPENAI_API_KEY` | Enables knowledge-base document embeddings |
| `COPILOT_API_KEY` | Enables the built-in Chat/Copilot (key from sim.ai). Also set `NEXT_PUBLIC_CHAT_DISABLED=false`. |

**MCP server:** available at `https:///api/mcp`, with OAuth sign-in or a Sim API key.

**Notes:**

- Chat is disabled by default because it needs a Sim Copilot key. An OpenAI key can't be used for Chat.
- Railway Buckets require `S3_FORCE_PATH_STYLE=true` and `AWS_REGION=auto` for browser uploads. Both are preconfigured.
- Email (invites, password reset, verification) and OAuth sign-in providers aren't configured by default.
- PII detection (Guardrails PII block) is an optional add-on. Add a service from `ghcr.io/simstudioai/pii:latest` (port 5001, private) and set `PII_URL=http://${{pii.RAILWAY_PRIVATE_DOMAIN}}:5001` and `INTERNAL_API_BASE_URL=http://${{RAILWAY_PRIVATE_DOMAIN}}:3000` on simstudio. It needs about 4 GB of RAM or more.

## Why Deploy Sim Studio 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 Studio 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.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius v0.1 Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/sim-studio-or-one-click-or-zero-config-o
