---
title: "Deploy Sim AI"
description: "Deploy and Host Sim AI with Railway"
category: "AI/ML"
url: https://railway.com/deploy/sim-ai
---

# Deploy Sim AI

Deploy and Host Sim AI with Railway

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

- **Creator:** Tom
- **Category:** AI/ML
- **Total deploys:** 36

## Template content

### realtime https://www.sim.ai/favicon/favicon.ico

- **Image:** ghcr.io/simstudioai/realtime:v0.8.2@sha256:dd72bef164e69fed345f52feca98663dcdba0409bbb6da439e623992d0b30f67
- **Health check:** /health
- **Public domain:** Yes

### simstudio https://www.sim.ai/favicon/favicon.ico

- **Image:** ghcr.io/simstudioai/simstudio:v0.8.2@sha256:08212f69ee05fd80bafd236b9932974d6704035ba7f50c2b897515b041805fec
- **Health check:** /
- **Public domain:** Yes

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

- **Image:** pgvector/pgvector:pg17
- **Start command:** `/bin/sh -c "unset PGPORT; docker-entrypoint.sh postgres --port=5432"`

### migrations https://www.sim.ai/favicon/favicon.ico

- **Image:** ghcr.io/simstudioai/migrations:v0.8.2@sha256:bd08017162914796c787a5bd7804a5e3c56802511d928b984cecc312c1570cf5
- **Start command:** `bun run db:migrate`

### cron https://www.sim.ai/favicon/favicon.ico

- **Image:** ghcr.io/simstudioai/cron:v0.8.2@sha256:e8a00f3d7292fdd1357e2cb7e09380cc336cdaf15e94d0b0059204a9e719e145

## Documentation

# Deploy and Host Sim AI on Railway

Deploy Sim AI `v0.8.2`, an open-source visual platform for building, running, and scheduling AI-agent workflows.

## About Hosting Sim AI

This template deploys five coordinated services: the Sim web application and API, its realtime Socket.IO service, PostgreSQL 17 with pgvector, a one-shot database migration job, and the Sim cron scheduler. The application and realtime service each receive a Railway HTTPS domain; PostgreSQL, migrations, and cron remain private.

Open the `simstudio` domain to register the first account. Configure model-provider and integration credentials in Sim as needed. Database, authentication, encryption, internal API, and cron secrets are generated per deployment and wired through Railway references.

## Common Use Cases

- Build low-code AI-agent and automation workflows.
- Connect LLMs, SaaS tools, webhooks, knowledge bases, and custom functions.
- Run scheduled workflows and polling triggers through the included cron service.
- Store workflow state, credentials, documents, and embeddings in PostgreSQL with pgvector.
- Use realtime collaboration and execution updates through the dedicated Socket.IO service.

## Dependencies for Sim AI Hosting

- Sim AI `v0.8.2` app, realtime, migrations, and cron images, pinned to matching immutable OCI indexes.
- PostgreSQL 17 with pgvector and a persistent volume.
- Generated Better Auth, encryption, internal API, API encryption, database, and cron secrets.
- Optional external model-provider and integration credentials for the workflows you enable.

### Deployment Dependencies

- [Sim AI v0.8.2 release](https://github.com/simstudioai/sim/releases/tag/v0.8.2)
- [Sim AI repository](https://github.com/simstudioai/sim)
- [Self-hosting documentation](https://docs.sim.ai/platform/self-hosting/docker)
- [Environment-variable reference](https://docs.sim.ai/platform/self-hosting/environment-variables)
- [pgvector](https://github.com/pgvector/pgvector)

### Implementation Details

The `simstudio`, `realtime`, and `migrations` images share one database schema and must be upgraded together. The cron image runs the upstream schedule from `docker/crontab` and authenticates its private HTTP calls with the generated `CRON_SECRET`; it calls the app at `simstudio.railway.internal:8080` and needs no public domain.

The migration service runs `bun run db:migrate` once and exits successfully. The app uses the public Railway origin for Better Auth, while realtime uses shared auth and internal API secrets. PostgreSQL data persists at `/var/lib/postgresql/data`.

## Why Deploy Sim AI on Railway?

Railway provides managed HTTPS, generated secrets, private service networking, persistent PostgreSQL storage, health checks, and coordinated deployment for Sim AI's complete self-hosted runtime.


## 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-ai
