---
title: "AI Templates: Deploy Open Source AI Apps in One Click"
description: "Deploy 500+ open source AI templates on Railway in one click. Run Ollama, Open WebUI, vector databases, and agent stacks on always-on infrastructure."
url: https://railway.com/deploy/category/ai
---

# Deploy AI apps, agents, and LLM stacks in one click

Templates in this category are prebuilt AI stacks you can deploy on Railway in one click. Each one spins up its services, databases, volumes, and environment variables in your own project, so an app like Open WebUI or a vector database like pgvector is live in a couple of minutes.

Everything runs on always-on servers with no cold starts, which matters when your app is serving a model, syncing embeddings, or waiting on webhooks. Pricing is usage based and you can start on a free trial.

## Common questions about AI templates

### How do I deploy an AI app on Railway?

Pick a template from this page and click Deploy. Railway creates the services, databases, and environment variables the app needs, then builds and deploys everything in your own project. Most templates are live in a few minutes.

### Can I run open source LLMs like Ollama on Railway?

Yes. The Ollama template deploys in one click, and you can pair it with a chat UI such as Open WebUI or LobeChat. Your models run 24/7 on always-on servers.

### Do AI templates include a vector database?

Many do. Templates such as pgvector and Chroma give you a vector store in one click, and you can add one to any existing project. Reference variables wire the connection details into your app automatically.

### Can I self-host a ChatGPT style chat UI?

Yes. Open WebUI, LobeChat, and AnythingLLM all have one-click templates in this category. You control the deployment, the data, and which model providers it talks to.

### How do I host an AI agent 24/7?

Deploy an agent template and it runs continuously, with no cold starts and no idle shutdowns unless you turn on App Sleeping. With usage based pricing you pay for the resources the agent actually uses.

## Related

- Browse all templates: https://railway.com/deploy
- Deploy with AI coding agents: https://railway.com/agents
- Sandboxes for agents: https://railway.com/sandboxes
- Railway MCP server: https://railway.com/mcp
- Railway docs: https://docs.railway.com

## All 1 AI templates

- [Mage AI](https://railway.com/deploy/Cr5cge) - 🧙 A modern replacement for Airflow.

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