---
title: "Deploy Rakazo | Open Source Grok Bot Alternative"
description: "Grok Bot alternative: AI teammates with memory, routines and computers"
category: "AI/ML"
url: https://railway.com/deploy/rakazo-ai-teammates
---

# Deploy Rakazo | Open Source Grok Bot Alternative

Grok Bot alternative: AI teammates with memory, routines and computers

**[Deploy Rakazo | Open Source Grok Bot Alternative on Railway](https://railway.com/template/rakazo-ai-teammates)**

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

- **Creator:** katsuba.dev
- **Category:** AI/ML

## Template content

### Postgres https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg

- **Image:** postgres:18.7-alpine

### Rakazo https://cdn.jsdelivr.net/gh/elie222/rakazo@v0.16.0/apps/web/public/icon-512.png

- **Image:** ghcr.io/elie222/rakazo/app:v0.16.0
- **Start command:** `bash -c 'set -e; install -d -m 750 -o node -g node /data; S=/tmp/rakazo-start.sh; if [ -n "$RAILWAY_API_TOKEN" ]; then cp infra/railway/start.sh $S; else export SANDBOX_PROVIDER=none; sed "s|^RAILWAY_ENVIRONMENT_ID=\$(node infra/railway/sandbox-environment.mjs)\$|RAILWAY_ENVIRONMENT_ID=|" infra/railway/start.sh > $S; if grep -q sandbox-environment.mjs $S; then echo "rakazo: start.sh changed upstream, cannot run without RAILWAY_API_TOKEN" >&2; exit 1; fi; echo "rakazo: RAILWAY_API_TOKEN is empty, computers are off until it is set"; fi; chmod 755 $S; exec setpriv --reuid=node --regid=node --init-groups env HOME=/home/node bash $S'`
- **Health check:** /
- **Public domain:** Yes

## Documentation

![Rakazo](https://cdn.jsdelivr.net/gh/elie222/rakazo@v0.16.0/docs/readme-hero.png)

# Deploy and Host Rakazo on Railway

Rakazo is an open-source, self-hosted alternative to Grok Bot: persistent AI teammates with their own memory, routines, apps and computer. Bring any model with your own key, and use it from the web, the desktop app, iPhone and Android, all talking to this one server.

## About Hosting Rakazo

This template runs the **official Rakazo image** (`ghcr.io/elie222/rakazo/app`, pinned to an exact release) next to PostgreSQL 18, with two volumes: one for the database and one for bot homes, agent sessions, uploads and pages.

It is set up the way upstream intends a server install to run:

- **Row-level security is on.** Migrations run as the database owner; the API, worker and web then connect as a separate `rakazo_app` login that row-level security binds. The owner connection is removed from the environment before any app process starts.
- **One private owner account, registration closed.** The first boot creates your account from `OWNER_EMAIL` and a generated `OWNER_PASSWORD`. Public sign-up stays closed on every start.
- **Only the web port is public.** The API listens on loopback behind the web server, PostgreSQL has no public endpoint, and every app process runs as the unprivileged `node` user.
- **Secrets are generated per deployment**: database passwords, the session secret, the encryption key and the screen-proxy secret. Content is encrypted at rest.
- **The version is pinned.** A redeploy never upgrades Rakazo under you; upgrading is a deliberate change of the image tag.

### Bot computers (optional, one variable)

Rakazo can give every bot a real computer: a browser, a terminal, files and a full desktop you can watch and take over. On Railway those computers are **Railway Sandboxes**, created in a separate, empty environment of this same project so they cannot reach the app's private database network. No third-party sandbox service or key is needed.

A template cannot create a Railway API token for you, so `RAILWAY_API_TOKEN` is **optional**:

- **Empty** (default): Rakazo starts with chat, memory, routines, pages and integrations, and computers are switched off. The deploy goes green on the first try.
- **Set**: create a token at railway.com/account/tokens (a workspace token for this workspace is best), paste it into `RAILWAY_API_TOKEN` on the Rakazo service and redeploy. Computers turn on; each user can run up to three, and an idle one is saved and stopped after ten minutes.

Never paste the token into a bot, a chat or a model setting.

## Getting Started

1. Optionally set `OWNER_EMAIL` to your own email before deploying (the default is `admin@example.com`).
2. Deploy and wait for the Rakazo service to turn green. The first boot applies the database migrations and takes a couple of minutes.
3. Open the generated domain and sign in with `OWNER_EMAIL` and the `OWNER_PASSWORD` shown in the Rakazo service's Variables tab. Change the password in account settings; editing the variable later does not reset it.
4. Connect a model provider in Rakazo (OpenRouter, Anthropic, OpenAI and many others) and send your first message.
5. Want computers? Add `RAILWAY_API_TOKEN` as described above.

## Common Use Cases

- **Personal assistant that keeps working**: bots stay on when the server does, with memory that carries across conversations.
- **Routines**: run a bot on a schedule, from an email or from a webhook, and read every run.
- **Browser and desktop tasks**: research, form filling and app work on the bot's own computer, with a hand-off when you need to sign in.
- **Team of bots**: put several bots in a group chat, @mention them and let them split the work.
- **Live pages**: dashboards and documents the bots build and you share by link.

## Dependencies for Rakazo Hosting

- A model provider account or API key, connected inside Rakazo after deploy.
- Optional: a Railway API token for bot computers.

### Deployment Dependencies

- Rakazo: https://github.com/elie222/rakazo (Apache-2.0)
- Self-hosting docs: https://github.com/elie222/rakazo/blob/main/docs/self-host.md
- PostgreSQL 18 (official image)

### Implementation Details

| Service | Image | Volume | Notes |
|---|---|---|---|
| Rakazo | `ghcr.io/elie222/rakazo/app` (pinned) | `/data` | API, worker and web in one service, started by upstream's own Railway start script |
| Postgres | `postgres:18-alpine` (pinned) | `/var/lib/postgresql/data` | Private only, two logins (owner + `rakazo_app`) |

Resource use, measured on this template: about **1.2 GB RAM** for Rakazo and **0.15 GB** for PostgreSQL while idle, so roughly **$15–20 a month** on Railway before any computers run. Computers are billed by Railway while they are running, which is why they stop when idle. Model usage is billed by your model provider.

Keep `ENCRYPTION_KEY` and the database passwords stable across redeploys, and back up PostgreSQL, the `/data` volume and `ENCRYPTION_KEY` together before upgrading. Run a single replica and do not enable service sleeping: routines need the worker awake.

If you delete this project, check the project's sandbox environment for computers that are still running.

## Why Deploy Rakazo 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 Rakazo 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/rakazo-ai-teammates
