Configuration
Environment and Discord application setup.
Configuration
Discord application
- Create an application at the Discord Developer Portal.
- Add a Bot. Copy the token into
TOKEN. - Copy the Application ID into
CLIENT_ID. - Under Bot -> Privileged Gateway Intents, leave all three off. Mellow does not use Message Content, Server Members, or Presence intents.
- Under Installation, enable both Guild Install and User Install if you want DM
support. Scopes:
botandapplications.commands. Bot permissions: Send Messages, Use Application Commands (Slash Commands), Embed Links, Attach Files, Add Reactions, Read Message History, Use External Emojis. - Create a support/development guild and put its ID in
PRIVATE_GUILD_ID. Owner commands are registered there.
Environment
The full list is in the
. The essentials:TOKEN=
CLIENT_ID=
PRIVATE_GUILD_ID=
OWNER_IDS=
DATABASE_URL=postgres://user:pass@host:5432/mellow?sslmode=require
ANTHROPIC_API_KEY=
ENCRYPTION_KEY=
ENCRYPTION_SALT_LIST=mellow-encryption-salt
PORT=9420
API_TOKEN=
LOG_CHANNEL_ID=
LOG_LEVEL=info
WEBSITE_URL=https://mymellow.xyzModel configuration
The AI model, system prompt, temperature, and max tokens live in a single-row Mellow config
table, seeded on first migration with claude-haiku-4-5. Change them at runtime with the
owner-only command:
/mellow update model:claude-haiku-4-5 temperature_x10:7 max_tokens:400
/mellow viewPer-guild and per-user settings
Everything else is configured in Discord: /guildsettings set for servers,
/preferences set for users. Nothing about feature behaviour needs an environment variable.