---
title: "Deploy bolt.diy"
description: "Open-source AI app builder, v1.0.3, any LLM, password login in front"
category: "AI/ML"
url: https://railway.com/deploy/boltdiy-1
---

# Deploy bolt.diy

Open-source AI app builder, v1.0.3, any LLM, password login in front

**[Deploy bolt.diy on Railway](https://railway.com/template/boltdiy-1)**

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

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

## Template content

### bolt.diy https://raw.githubusercontent.com/stackblitz-labs/bolt.diy/v1.0.3/public/apple-touch-icon.png

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

## Documentation

# Deploy and Host bolt.diy on Railway

bolt.diy is the open-source version of StackBlitz's Bolt.new: an AI app builder that runs in your browser. You describe an app in a prompt, and bolt.diy writes the code, installs packages and runs a live preview in an in-browser Node.js environment. It works with OpenAI, Anthropic, Google, OpenRouter, Ollama and many other LLM providers.

## About Hosting bolt.diy

This template runs bolt.diy v1.0.3 from the official image, pinned by digest and built from a public GitHub repo, so you get an update notice when the template moves to a newer release. bolt.diy has no login of its own, so a small Caddy proxy puts a username and password (HTTP basic auth) in front of it. The password is generated at deploy time; find it in the service's Variables tab. Chats, projects and settings live in your browser's storage, not on the server, so no database or volume is needed. Bring your own LLM API key: enter it in bolt.diy's settings, or add it as a service variable.

## Common Use Cases

* Prototype web apps and landing pages from a prompt, then edit the code by hand
* Try different LLM providers and models, including local ones through Ollama or LM Studio
* Give a small team a private AI app builder that uses your own API keys

## Dependencies for bolt.diy Hosting

* An API key for at least one LLM provider (OpenAI, Anthropic, Google, OpenRouter, Groq and others), or an OpenAI-compatible or Ollama endpoint
* A current desktop browser: bolt.diy runs and previews the generated apps inside the page (StackBlitz WebContainers)

### Deployment Dependencies

* bolt.diy source and docs: https://github.com/stackblitz-labs/bolt.diy
* bolt.diy v1.0.3 release: https://github.com/stackblitz-labs/bolt.diy/releases/tag/v1.0.3
* Template repo: https://github.com/aalfath/bolt-diy-railway-template

### Implementation Details

The service listens on `PORT` (8080) and starts with three variables: `BOLT_USERNAME` (default `admin`), `BOLT_PASSWORD` (generated) and `PORT`. `/healthz` answers without a login for Railway's health check.

To set LLM keys once for everyone who logs in, add them as service variables with upstream's names, for example `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GOOGLE_GENERATIVE_AI_API_KEY`, `OPEN_ROUTER_API_KEY`, `GROQ_API_KEY`, `OLLAMA_API_BASE_URL` or `AWS_BEDROCK_CONFIG`, then redeploy. The start script passes variables ending in `_API_KEY`, `_API_TOKEN`, `_BASE_URL` or `_API_MODELS` to bolt.diy's server. Keys entered in the UI stay in your browser.

Because your work is stored in the browser, use bolt.diy's export or GitHub push to keep a copy or move it to another device.

## Why Deploy bolt.diy 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 bolt.diy 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/boltdiy-1
