---
title: "Deploy Skyvern"
description: "AI browser automation with LLMs: API, web UI, Postgres and a login gateway"
category: "AI/ML"
url: https://railway.com/deploy/skyvern-1
---

# Deploy Skyvern

AI browser automation with LLMs: API, web UI, Postgres and a login gateway

**[Deploy Skyvern on Railway](https://railway.com/template/skyvern-1)**

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

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

## Template content

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

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

### skyvern-api https://raw.githubusercontent.com/Skyvern-AI/skyvern/v1.0.58/skyvern-frontend/public/favicon.png

- **Source:** https://github.com/aalfath/skyvern-railway-template
- **Health check:** /api/v1/heartbeat

### skyvern-ui https://raw.githubusercontent.com/Skyvern-AI/skyvern/v1.0.58/skyvern-frontend/public/favicon.png

- **Source:** https://github.com/aalfath/skyvern-railway-template
- **Health check:** /

### Skyvern https://raw.githubusercontent.com/Skyvern-AI/skyvern/v1.0.58/skyvern-frontend/public/favicon.png

- **Source:** https://github.com/aalfath/skyvern-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host Skyvern on Railway

Skyvern is an open-source tool that automates browser work with LLMs and computer vision. You describe a task in plain language, such as filling a form, downloading invoices or applying to a job, and Skyvern drives a real Chromium browser to do it. You can also chain tasks into workflows and run them on a schedule, from the web UI or the API.

## About Hosting Skyvern

Skyvern needs a Python API that runs Chromium inside a virtual display, a web UI, a Postgres database and somewhere to keep screenshots, recordings and downloads. On first start the API runs its database migrations and creates an organization and its API key, and the UI must receive that key before it can serve. The UI has no login of its own, so it must never be exposed directly. This template wires all of that up: the API, UI and database talk over Railway's private network, a small gateway puts a password in front of the UI, and the API's files sit on a volume.

## Common Use Cases

* Automate repetitive work on websites that have no API: forms, portals, invoice and report downloads
* Run scheduled browser workflows, such as daily data extraction or monitoring
* Give your own apps or AI agents a browser through the Skyvern API, SDK or MCP server

## Dependencies for Skyvern Hosting

* An LLM: an OpenAI, Anthropic or Gemini API key, or any model you add later in Settings (OpenAI-compatible, OpenRouter, Ollama)
* PostgreSQL (included)

### Deployment Dependencies

* [Skyvern on GitHub](https://github.com/Skyvern-AI/skyvern) (AGPL-3.0)
* [Skyvern self-hosting docs](https://www.skyvern.com/docs/self-hosted/overview)
* [Template source and changelog](https://github.com/aalfath/skyvern-railway-template)

### Implementation Details

Services (Skyvern v1.0.58, upstream images pinned by digest, built from the template repo):

* **Skyvern**: the public gateway (Caddy). It asks for `SKYVERN_USERNAME` / `SKYVERN_PASSWORD` before the web UI and passes `/api/*` calls straight to the API, which checks its own API key.
* **skyvern-api**: the API, the Chromium browser and the task runner. It runs the migrations and creates the organization on first start. Volume `/data` holds artifacts, recordings, downloads, browser sessions and the API key file.
* **skyvern-ui**: the web UI. It waits for the API's first-start key, then serves the app.
* **Postgres**: the database, on its own volume.

After deploy:

1. Wait for `skyvern-api` to turn healthy (the first start takes a few minutes). Then open the `Skyvern` service's URL and log in with the username `admin` and the `SKYVERN_PASSWORD` from that service's Variables tab.
2. If you didn't set an LLM key, add a model under Settings, Custom LLMs, or set `OPENAI_API_KEY`, `ANTHROPIC_API_KEY` or `GEMINI_API_KEY` on `skyvern-api`.
3. For the SDK, MCP or REST calls, copy the API key from Settings and call `https://YOUR-DOMAIN/api/v1/...` with the `x-api-key` header.

Updates: Railway notifies you when the template repo bumps the Skyvern version. Read `CHANGELOG.md` in the repo, then apply the update. Migrations run automatically on the next start. Left out on purpose: the optional Vaultwarden/Bitwarden services, the raw VNC port and the Streamlit demo.

## Why Deploy Skyvern 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 Skyvern 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 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/skyvern-1
