LEO TOOLKIT
LEO TOOLKIT Environment Configuration
Configure every Discord client environment variable and protected backend connection.
Environment variables#
| Setting | What to enter | What it controls |
|---|---|---|
TOOLBOX_DISCORD_BOT_TOKEN | YOUR_BOT_TOKEN | Private Discord token. |
TOOLBOX_DISCORD_CLIENT_ID | YOUR_APPLICATION_ID | Discord application ID. |
BOT_OWNER_IDS | YOUR_USER_ID,YOUR_SECOND_USER_ID | Comma-separated numeric owner IDs. |
TOOLBOX_API_BASE_URL | https://YOUR_BACKEND_DOMAIN | Internet-reachable companion backend base URL. |
TOOLBOX_BOT_API_SECRET | YOUR_API_SECRET | Shared bot-to-backend secret; must be identical on both sides and must not be the Discord token. |
TOOLBOX_SYNC_GUILD_ID | YOUR_GUILD_ID or blank | Guild-specific command sync during setup; blank uses global synchronization. |
TOOLBOX_LOG_LEVEL | INFO | Application logging level. |
TOOLBOX_HTTP_TIMEOUT | A reasonable number of seconds | Maximum wait for backend HTTP requests. |
Discord permissions and hierarchy#
Recommended permissions are View Channels, Send Messages, Embed Links, Manage Roles, and Manage Nicknames. Enable Server Members Intent.