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

VariableWhat it does
BOT_TOKENYour bot's token. Find it in the Discord Developer Portal → your app → Bot → Reset Token.

Security (optional)

VariableWhat it does
ORBIT_ALLOWED_GUILDSOnly these servers (IDs, separated by commas). The bot leaves any other server at once.
ORBIT_SUPPORT=offNobody can start a support session, not even you from Orbit.
ORBIT_INVITES=offNo invite links or temporary keys from Orbit; only the pairing code (and the console).
ORBIT_RELAY=offOnly pair directly through your own HTTPS address, not through the Orbit relay.
RUNNER_KEYYour own management key (at least 32 random characters). Without it the runner makes one in /data.
ORBIT_RESET_ACCESS=1Forget all paired devices at start, when you lost access. Remove it afterwards.
ORBIT_LOG_LEVELwarn or error: fewer lines in the console.

Updating from Orbit (optional)

VariableWhat it does
ORBIT_RAILWAY_TOKENA 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_WEBHOOKYour host's deploy webhook (https), for example a Render deploy hook or a Portainer webhook.

Storage (optional)

VariableWhat it does
DATABASE_URLA PostgreSQL database. Normally you choose the database in Orbit; with this variable you cannot change it there.

Best practices

  1. Create a separate bot for the runner, and give it only the roles it needs on your server.
  2. Set ORBIT_ALLOWED_GUILDS to your own server(s), so nobody can use your bot in another server.
  3. Use a volume at /data and share it with nobody: it holds the management key and your settings.
  4. Token leaked? Reset it in the Developer Portal and put the new value in BOT_TOKEN.
  5. Now and then, check Hosting → Paired devices in Orbit and revoke devices you do not know.
  6. Set ORBIT_SUPPORT=off if you never want support to look along, and ORBIT_INVITES=off if only you manage it.
  7. Keep the runner up to date: Auto Updates (Railway), orbit update, or the button in Orbit.

Updated on 30 November 2026