Mellow LogoMellow

Configuration

Environment and Discord application setup.

Configuration

Discord application

  1. Create an application at the Discord Developer Portal.
  2. Add a Bot. Copy the token into TOKEN.
  3. Copy the Application ID into CLIENT_ID.
  4. Under Bot -> Privileged Gateway Intents, leave all three off. Mellow does not use Message Content, Server Members, or Presence intents.
  5. Under Installation, enable both Guild Install and User Install if you want DM support. Scopes: bot and applications.commands. Bot permissions: Send Messages, Use Application Commands (Slash Commands), Embed Links, Attach Files, Add Reactions, Read Message History, Use External Emojis.
  6. 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

Environment Variables reference

Environment Variables

Every environment variable Mellow reads.

. 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.xyz

Model 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 view

Per-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.

On this page