Configure Gaia
Every setting in .env, the optional health check, and every setting in the /admin dashboard and the /embed manager.
Gaia has two kinds of settings. Operator settings live in the .env file and apply to the whole bot. Server settings are made inside Discord with /admin and /embed, and each server has its own.
The .env file#
The installer creates .env in the install folder. To change a value, edit the file, then re-run the installer or run docker compose up -d in that folder. Only DISCORD_TOKEN is required.
| Variable | Default | What it does |
|---|---|---|
DISCORD_TOKEN | none | The bot token. Required. |
APPLICATION_ID | none | The application ID. Gaia checks that the token belongs to this application. CLIENT_ID and DISCORD_CLIENT_ID are also read. |
TIMEZONE | Europe/Ljubljana | IANA timezone for scheduled embeds, the daily backup and shown dates, for example UTC or America/New_York. |
BACKUP_HOUR | 3 | Local hour, 0 to 23, when the daily automatic backup runs, if you turned it on in /admin. |
DATABASE_PATH | ./data/gaia.sqlite | The SQLite file. In Docker it is always /app/data/gaia.sqlite, so leave it alone there. |
DIAGNOSTIC_GUILD_ID | none | Server ID for extra detail in rake commands:inspect. |
DIAGNOSTIC_USER_ID | none | Member ID for extra detail in rake commands:inspect. |
GAIA_HEALTH_ADDR | off | Address and port for the health check, for example 0.0.0.0:8080. |
Gaia checks the settings when it starts. It stops with a clear message if the token is missing, the timezone is unknown or the backup hour is outside 0 to 23. See Troubleshooting.
There are no log settings in .env. Log channels are picked in Discord; see Logs. The LOG_* and MEMBER_LOG_* settings from version 1.0.1 are no longer read; see Update Gaia.
Health check#
The health check is for uptime monitors. It is off unless GAIA_HEALTH_ADDR is set.
- Set
GAIA_HEALTH_ADDR=0.0.0.0:8080in.env. - Run
docker compose up -d. - Point your monitor at
/healthon port 8080 and have it look for the keywordok.
GET /health or GET / answers 200 with ok while Gaia is connected to Discord, and 503 with disconnected otherwise. Anything else gets 404. The answer reveals nothing else: no server names, counts or version. The compose file publishes no ports, so reach it through a reverse proxy on the Docker network. / answers like /health, so a proxy that strips its path prefix still works.
If the address cannot be read, Gaia does not start. If the port is taken, the log shows Health check could not start and Gaia keeps running without it.
The /admin dashboard#
Type /admin in your server. It opens the Gaia Administration dashboard, visible only to you. Only members with the Discord Administrator permission can open it, and every button checks that again. Changes are saved at once.
The first time /admin runs in a server, it shows Logging Setup instead. Only the server owner can answer it. See Logs.
The dashboard shows which modules are on and what is configured. Its buttons open these sections:
| Section | Settings | Default |
|---|---|---|
| AutoRole | Enable or Disable, Set User Role, Set Bot Role, Remove User Role, Remove Bot Role | On, no roles set |
| Voice Rooms | Enable or Disable, Set Join Channel, Remove Join Channel | On, no channel set |
| Staff | Add Staff, Remove Staff | No staff |
| Moderation | Enable or Disable, Set Ticket Category, View Mutes, Remove Ticket Category | On, no category set |
| Verification | Enable or Disable, Set Role, Edit Message, Set Color, Preview, Send Verification, Update Message, Remove Role | Off |
| Backups | Enable Automatic or Disable Automatic, Create Backup, View Backups, Restore Backup | Automatic backups off |
| Remove/Add Roles | Add Role, Remove Role | None |
| Logs | Set Log Channel, Set Member Log Channel, Clear Log, Clear Member Log, Change Mode | No channels |
Refresh reloads the dashboard. Back returns to it from a section.
The verification message starts with the title Verification, the text Click the button below to verify yourself., a green colour and the button text Verify.
Each feature has its own guide: AutoRole, Voice rooms, Moderation, Verification and Backups.
Remove/Add Roles#
This section adds or removes one role for many members at once.
- Click Add Role or Remove Role and pick the role.
- Choose Specific User, Everyone or All Bots.
- Confirm. Gaia only changes members who need it and reports how many changed and who failed.
Gaia can only manage roles below its own highest role, and you can only manage roles below yours. The server owner is not limited by their own role.
The /embed manager#
Type /embed to open the Gaia Embed Manager. It also needs the Discord Administrator permission. Its buttons are Create, Edit, Send, Scheduled Sends, List and Attachments. Templates belong to one server only. See Embed templates.
Source: Gaia v2.0.0 README, .env.example, docker-compose.yml, src/config.rs, src/main.rs, src/health.rs, src/services/admin_ui.rs, src/services/log_routing.rs and db/migrations, checked 9 November 2026.