Run 24/7
Variables and security
Every variable of the runner. Only BOT_TOKEN is needed; the others make it safer or let Orbit update it.
You set variables at your host: in Railway under Variables, in Docker with -e NAME=value, in Compose under environment. Only BOT_TOKEN is needed. orbit env in the container shows which ones are set; secrets are never shown.
Required
| Variable | What it does |
|---|---|
BOT_TOKEN | Your bot's token. Find it in the Discord Developer Portal → your app → Bot → Reset Token. |
Security (optional)
| Variable | What it does |
|---|---|
ORBIT_ALLOWED_GUILDS | Only these servers (IDs, separated by commas). The bot leaves any other server at once. |
ORBIT_SUPPORT=off | Nobody can start a support session, not even you from Orbit. |
ORBIT_INVITES=off | No invite links or temporary keys from Orbit; only the pairing code (and the console). |
ORBIT_RELAY=off | Only pair directly through your own HTTPS address, not through the Orbit relay. |
RUNNER_KEY | Your own management key (at least 32 random characters). Without it the runner makes one in /data. |
ORBIT_RESET_ACCESS=1 | Forget all paired devices at start, when you lost access. Remove it afterwards. |
ORBIT_LOG_LEVEL | warn or error: fewer lines in the console. |
Updating from Orbit (optional)
| Variable | What it does |
|---|---|
ORBIT_RAILWAY_TOKEN | A Railway project token (Project → Settings → Tokens). Orbit can then update your runner with one click. The token only works for that one environment. |
ORBIT_UPDATE_WEBHOOK | Your host's deploy webhook (https), for example a Render deploy hook or a Portainer webhook. |
Storage (optional)
| Variable | What it does |
|---|---|
DATABASE_URL | A PostgreSQL database. Normally you choose the database in Orbit; with this variable you cannot change it there. |
Best practices
- Create a separate bot for the runner, and give it only the roles it needs on your server.
- Set
ORBIT_ALLOWED_GUILDSto your own server(s), so nobody can use your bot in another server. - Use a volume at
/dataand share it with nobody: it holds the management key and your settings. - Token leaked? Reset it in the Developer Portal and put the new value in
BOT_TOKEN. - Now and then, check Hosting → Paired devices in Orbit and revoke devices you do not know.
- Set
ORBIT_SUPPORT=offif you never want support to look along, andORBIT_INVITES=offif only you manage it. - Keep the runner up to date: Auto Updates (Railway),
orbit update, or the button in Orbit.
Updated on 30 November 2026