Deploy Rakazo | Open Source Grok Bot Alternative
Grok Bot alternative: AI teammates with memory, routines and computers
Postgres
Just deployed
/var/lib/postgresql/data
Just deployed
/data

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_applogin 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_EMAILand a generatedOWNER_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
nodeuser. - 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_TOKENon 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
- Optionally set
OWNER_EMAILto your own email before deploying (the default isadmin@example.com). - Deploy and wait for the Rakazo service to turn green. The first boot applies the database migrations and takes a couple of minutes.
- Open the generated domain and sign in with
OWNER_EMAILand theOWNER_PASSWORDshown in the Rakazo service's Variables tab. Change the password in account settings; editing the variable later does not reset it. - Connect a model provider in Rakazo (OpenRouter, Anthropic, OpenAI and many others) and send your first message.
- Want computers? Add
RAILWAY_API_TOKENas 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.
Template Content
Postgres
postgres:18.7-alpine
