---
title: "Deploy EmpirioLabs AI Chatbot"
description: "A streaming chatbot for EmpirioLabs AI models, built with Next.js."
category: "AI/ML"
url: https://railway.com/deploy/empiriolabs-ai-chatbot
---

# Deploy EmpirioLabs AI Chatbot

A streaming chatbot for EmpirioLabs AI models, built with Next.js.

**[Deploy EmpirioLabs AI Chatbot on Railway](https://railway.com/template/empiriolabs-ai-chatbot)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/empiriolabs-ai-chatbot/manifest.json

- **Creator:** EmpirioLabs.ai Dev
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### empiriolabs-chatbot https://empiriolabs.ai/images/icon-512.png

- **Source:** EmpirioLabs-AI/empiriolabs-chatbot
- **Health check:** /api/health
- **Public domain:** Yes

## Documentation

# Deploy and Host EmpirioLabs AI Chatbot on Railway

EmpirioLabs AI Chatbot is an open-source streaming chat app for the text models in the EmpirioLabs AI catalog. Choose a model from the live catalog, read replies as they stream in as Markdown, and run it on your own domain with your own API key. It is built with Next.js and the AI SDK.

## About Hosting EmpirioLabs AI Chatbot

The template deploys one Next.js service from the EmpirioLabs-AI/empiriolabs-chatbot repository. Enter your EmpirioLabs AI API key as `EMPIRIOLABS_API_KEY` when you deploy. The app reads it only on the server and never sends it to the browser. Railway builds the app, checks `/api/health` before each deployment goes live, and gives it a public domain. To share a public demo without your key, set `DEMO_MODE` to `true`: each visitor then enters their own key. `EMPIRIOLABS_MODEL` sets the model the chat starts with.

## Common Use Cases

- A private chat assistant for your team on your own domain
- A public demo where each visitor brings their own API key
- A starting point for your own AI product built on Next.js and the AI SDK

## Dependencies for EmpirioLabs AI Chatbot Hosting

- An EmpirioLabs AI API key from https://platform.empiriolabs.ai/dashboard/api-keys
- Node.js 24, which Railway installs from `package.json`

### Implementation Details

The app uses the AI SDK's OpenAI-compatible provider with the EmpirioLabs AI base URL:

```ts
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";

const empiriolabs = createOpenAICompatible({
  name: "empiriolabs",
  baseURL: "https://api.empiriolabs.ai/v1",
  apiKey: process.env.EMPIRIOLABS_API_KEY,
});
```

## Why Deploy EmpirioLabs AI Chatbot 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 EmpirioLabs AI Chatbot 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 v0.1 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/empiriolabs-ai-chatbot
