---
title: "Deploy kwant + Laya"
description: "kwant AI bot team (AGPL-3.0) + Laya message router. Needs ~2 GB more RAM."
category: "AI/ML"
url: https://railway.com/deploy/kwant-laya
---

# Deploy kwant + Laya

kwant AI bot team (AGPL-3.0) + Laya message router. Needs ~2 GB more RAM.

**[Deploy kwant + Laya on Railway](https://railway.com/template/kwant-laya)**

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

- **Creator:** Oleksandr Ivanchenko's Projects
- **Category:** AI/ML

## Template content

### laya

- **Source:** alexsergivan/kwant

### browser

- **Source:** alexsergivan/kwant

### kwant

- **Source:** alexsergivan/kwant
- **Health check:** /api/health
- **Public domain:** Yes

## Documentation

# Deploy and Host kwant + Laya on Railway

Official template from the maker of kwant (https://kwant.si, github.com/alexsergivan/kwant). Deploys kwant plus a headless browser service and the Laya message router for smarter routing. Laya needs about 2 GB more RAM; for the lighter template without Laya, use https://railway.com/deploy/kwant-1. After deploy, open the kwant service Variables tab, copy KWNT_API_TOKEN and sign in with it at your public domain.

## About Hosting kwant

kwant is a self-hosted team of AI bots shipped as one Rust binary. This template builds kwant from the official GitHub repository, attaches a persistent volume at /data for its state, exposes it on a public Railway domain, and runs a private headless Chrome service that kwant drives over the Chrome DevTools Protocol, plus a private Laya message router (about 2 GB RAM) for smarter message routing. A random API token is generated for you on deploy.

## Common Use Cases

- Run your own team of AI assistant bots
- Automate browsing and research tasks with a headless browser
- Keep your AI tooling and data self-hosted

## Dependencies for kwant Hosting

- kwant service (Rust binary, built from render.Dockerfile)
- Headless browser service (built from browser.Dockerfile)
- laya: message routing sidecar (CPU PyTorch, about 2 GB RAM).

## Why Deploy kwant 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 kwant 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/kwant-laya
