Mellow LogoMellow

Configuration Reference

Where Mellow's configuration lives.

Configuration reference

Mellow has three configuration surfaces.

Environment (.env)

Deployment-level settings: tokens, database URL, encryption key, ports, links. The full list is in

Environment Variables

Environment Variables

Every environment variable Mellow reads.

. Start from .env.example in the repository. Never commit .env.

The Mellow config row (database)

A single row holds the AI settings:

FieldMeaning
modelAnthropic model id (default claude-haiku-4-5)
promptSystem prompt
temperatureSampling temperature
maxTokensResponse token cap
feature flagscheck-in, coping, ghost, and crisis tool groups

It is seeded on first migration and edited at runtime with the owner-only /mellow command (/mellow view, /mellow update, /mellow features, /mellow toggle). The presencePenalty and frequencyPenalty columns exist for schema compatibility but are inert - the Anthropic API has no equivalent.

Per-guild and per-user settings (database)

  • Per guild: /guildsettings set - feature toggles, channels, moderator role, language.
  • Per user: /preferences set - personality, timezone, reminders, and privacy toggles.

There are no JavaScript config files. Mood options, prompt fragments, and similar data are compiled into the Go binary.

Code generation

Database queries are generated from SQL by sqlc (sqlc.yaml at the repo root, sources in internal/db/queries, output in internal/db/gen). You only need to run sqlc generate if you change that SQL.

On this page