Tokens, Secrets & Environment Variables

Keep API keys and bot tokens out of your source code and rotate credentials in seconds without redeploying.

How your Discord bot token is stored

When you paste your Discord bot token into Blip Host, it is stored encrypted in our secure token vault rather than inside your source code or plain config files. Your bot process never holds the raw token directly, which protects your credentials from accidentally leaking through error logs, crash dumps, or third-party packages.

For custom bots, Blip Host automatically exposes the token to your code through the DISCORD_TOKEN environment variable. For 1-click catalog bots, Blip Host automatically uses whatever variable name that bot expects (such as MM_TOKEN , DISCORD_BOT_TOKEN , or TOKEN ).

Don't hardcode your token or commit .env files
If your bot logs in using a real token hardcoded in your code or committed inside a .env file, Blip Host will show a warning on your bot's overview page. Always read your token from DISCORD_TOKEN and add .env to your .gitignore .

Rotating a token in one click

If you ever reset your bot token in the Discord Developer Portal, you do not need to edit your code or trigger a rebuild:

  1. Open your bot in the Blip Host dashboard and click Update token in the top header (or open the Env & Token tab).
  2. Paste your new token from the Discord Developer Portal and click Update token & restart.
  3. Blip Host verifies the new token immediately with Discord, updates the encrypted vault, and restarts your bot with the new token in seconds.
Manage your encrypted Discord bot token, verify Privileged Intents, and add custom environment variables under Env & Token.

Adding environment variables & secrets

Use the Environment variables section under Env & Token for settings like command prefixes, API keys (OPENAI_API_KEY , GOOGLE_API_KEY ), channel IDs, or feature flags.

  • Check Hide value after saving (secret) for API keys, webhook URLs, and OAuth client secrets so the value stays masked in the dashboard.
  • Each bot can store up to 200 environment variables (up to 256 KB total).
  • Saving or removing a variable applies to your bot automatically; restart if your code only reads environment variables on startup.

Variables Blip Host sets for you

You don't need to add these manually — Blip Host injects them whenever the corresponding feature is active (and any custom variable you add with the same name overrides the default):

Variable When it is set
DISCORD_TOKEN Always set for custom bots from your encrypted token vault.
DATABASE_URL Set automatically when you attach a managed PostgreSQL database (DATABASE_URL_2 , DATABASE_URL_3 for additional databases).
MONGODB_URI Set automatically when you attach a managed MongoDB database (MONGODB_URI_2 , etc. for additional databases).
PORT Set to your configured HTTP port when Web HTTPS is enabled on the bot.