---
title: "Deploy Tinykit"
description: "Self-hosted AI app builder (Lovable/v0 alternative), PocketBase built in"
category: "AI/ML"
url: https://railway.com/deploy/tinykit-1
---

# Deploy Tinykit

Self-hosted AI app builder (Lovable/v0 alternative), PocketBase built in

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

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

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

## Template content

### Tinykit https://raw.githubusercontent.com/tinykit-studio/tinykit/b4aea2b575dbb149f2c4b9b01f8f0603d7c23da1/static/favicon.png

- **Source:** https://github.com/aalfath/tinykit-railway-template
- **Health check:** /_pb/api/health
- **Public domain:** Yes

## Documentation

# Deploy and Host Tinykit on Railway

Tinykit is an open-source agentic app builder, a self-hosted alternative to Lovable, v0 and Replit. You describe an app, the AI writes one Svelte file and creates its database tables, and Tinykit serves it. PocketBase is built in, so each app gets a realtime database, file storage and auth.

## About Hosting Tinykit

This template runs Tinykit 0.1.1 as one service, built from source at a pinned upstream commit on a digest-pinned Node 22 image, with PocketBase 0.23.4 inside. Everything Tinykit stores (database, uploads, built apps, settings) lives on one Railway volume, so it survives redeploys and restarts. A health check on `/_pb/api/health` only passes when both Tinykit and PocketBase answer. On the first boot the template creates your admin account from the email you enter and a generated password, before the public port opens, so nobody else can claim the setup page. AI keys are optional and set inside the app.

## Common Use Cases

* Build small internal tools, dashboards and trackers from a prompt and run them on your own domain
* Host many small realtime apps (kanban, notes, polls, RSVP pages) on one service, one domain per app
* Prototype app ideas with your own OpenAI, Anthropic, Gemini, DeepSeek or OpenAI-compatible model

## Dependencies for Tinykit Hosting

* A Railway volume for `/app/pocketbase/pb_data` (included)
* Optional: an API key from an LLM provider, for the AI builder

### Deployment Dependencies

* [Tinykit on GitHub](https://github.com/tinykit-studio/tinykit) and its [documentation](https://docs.tinykit.studio)
* [Template repo with the Dockerfile and changelog](https://github.com/aalfath/tinykit-railway-template)
* [PocketBase 0.23.4](https://github.com/pocketbase/pocketbase/releases/tag/v0.23.4)

### Implementation Details

**After deploy:** the only prompt is `ADMIN_EMAIL`. Open the service's Variables tab to read the generated `ADMIN_PASSWORD`, then sign in at `https://YOUR-DOMAIN/login`. The dashboard is at `/tinykit`. Add an AI provider under `/tinykit/settings`, or set `LLM_PROVIDER`, `LLM_MODEL` and `LLM_API_KEY` (plus `LLM_BASE_URL` for OpenAI-compatible servers) on the service. The PocketBase admin is at `/_pb/_/` with the same email and password. The two admin variables are read only on the first boot: change the password later in the PocketBase admin.

**Apps and domains:** Tinykit picks the app by the request's domain. Add more Railway or custom domains to the service and connect each one to an app from `/tinykit`.

**Updates:** the service builds from the public template repo. When we move it to a newer Tinykit commit or base image, Railway shows an "update available" notice in your project. Read the repo's `CHANGELOG.md`, back up the volume, then apply it. Your data stays on the volume.

## Why Deploy Tinykit 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 Tinykit 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/tinykit-1
