Deploy Dusk Bot

Grok Bot alternative: AI helpers with memory, routines and a browser

Deploy Dusk Bot

Just deployed

Deploy and Host Dusk Bot on Railway

Dusk Bot is a team of AI helpers you talk to from your browser, phone or the desktop app. Each bot has its own job, chat, memory and browser, runs routines on a schedule, and works with the Claude, ChatGPT or Grok subscription you already pay for, or your own API key. This template runs the Dusk Bot server on Railway so your bots keep working while your laptop is closed.

License: personal and noncommercial use only. Dusk Bot is source-available under the PolyForm Noncommercial License 1.0.0, not an open source license. You may run it for personal, hobby, research or other noncommercial purposes. Using it at or for a business, inside a product, or as a commercial service needs a separate paid work license from Dusk Bot. Read https://dusk.bot/license before you deploy, and make sure your use is covered. This template is not made or endorsed by Dusk Bot.

Required Notice: Copyright 2026 dusk bot. Commercial use requires a separate license: https://dusk.bot/license

About Hosting Dusk Bot

This template runs Dusk Bot's own published server image (ghcr.io/duskbotai/duskbot, pinned to v0.2.40) as one Railway service with a persistent volume. Nothing in the image is changed. A small boot script, stored in the DUSK_BOOT variable, does the Railway-specific work:

  • fixes the ownership of the Railway volume, then runs everything as the image's unprivileged user
  • clears the data lock a previous deployment left behind, so redeploys start cleanly
  • runs the front proxy that Dusk Bot's own Docker setup gets from Caddy. Every request from the internet is marked as remote, so it needs a signed-in session. Only processes inside the container are trusted as the owner.

First boot takes about a minute. Chats, memory, routines, engine sign-ins and sessions live on the volume and survive redeploys.

Common Use Cases

  • A researcher bot that reads dozens of pages and comes back with sources and a straight answer, using its own browser on the server.
  • Routines that run while you sleep: a morning inbox summary, a weekly price check, triage when a GitHub issue opens.
  • Several bots in one group chat handing work to each other, asking you before anything risky.
  • One always-on server for your Dusk Bot desktop and phone apps.

Dependencies for Dusk Bot Hosting

Deployment Dependencies

  • A Railway account. The template provisions the service, volume and domain.
  • An email address you can read, for signing in.
  • An AI to run the bots on: a Claude or ChatGPT subscription you sign in to from Settings, or an Anthropic API key (optional at deploy time).
  • A Dusk Bot work license if your use is commercial (see the license note above).

Implementation Details

Signing in. Enter your email in DUSK_SIGNIN_EMAILS when you deploy. Open the service's public URL, choose Send code, and enter the one-time code that dusk.bot emails you. The code comes from Dusk Bot's account service, so the server needs no email setup. Add more people later as comma-separated addresses, or a whole domain as @yourcompany.com, in that variable or in Settings, People.

Connecting a model. If you pasted an Anthropic key at deploy time, Claude bots already run on it. Otherwise open Settings, Models and sign in to Claude or ChatGPT, or add an API key under Settings, API keys. Every model call is billed to the account or key you connect.

Pairing the apps. The desktop and phone apps pair from Settings. If email sign-in is ever unavailable, mint a 5-minute pairing code from a terminal (after railway link to this project):

railway ssh -- 'cd /app && setpriv --reuid=maus --regid=maus --init-groups env HOME=/data node dist-server/pair-cli.js'

and open the web browser: link it prints.

Variables.

VariableWhat it does
DUSK_SIGNIN_EMAILSWho may sign in with an emailed code (full access).
DUSK_ANTHROPIC_API_KEYOptional workspace Anthropic key, billed per token.
DUSK_PUBLIC_URL, DUSK_WEBHOOK_PUBLIC_URLPublic address for pairing links and webhook URLs. Change both if you add a custom domain.
DUSK_ENVIRONMENT_LABELThe server's name in the apps.
DUSK_BOOT, RAILWAY_RUN_UID, PORTRailway glue. Leave them as they are.

Optional upstream settings, such as DUSK_SIGNIN_MEMBER_EMAILS for chat-only members, can be added later as variables.

What does not run here. Bots' full desktop computers need Docker on the host, which Railway does not offer, so on this server bots work through their browser, shell and connected apps. Live screen viewing uses Dusk Bot's relay instead of a direct connection. Dictation and controlling a desktop need the desktop app.

Webhooks. Hook URLs (/hooks/...) are reachable without a session. Each hook has its own secret.

Upgrading. The image is pinned. To move to a newer Dusk Bot release, change the service's image tag to the new v tag and redeploy. The built-in self-updater is for Dusk Bot's own one-line server installs, not for Railway.

Troubleshooting. The deploy logs show [railway-boot] and [railway-edge] lines from the boot script. A healthy start prints [railway-edge] :8080 -> 127.0.0.1:8799. If the service keeps restarting, check those lines first.

Why Deploy Dusk Bot 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 Dusk Bot 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

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
118
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

Tracklayer
6