Install Gaia
Create the Discord application, run the one-command installer and invite Gaia to your server.
On this page
You need a machine with Docker, Docker Compose v2 and git. The install takes a few minutes. Most of it is the Discord setup.
Illustration generated with AI and checked by Maj Kovačič.
1. Create the Discord application#
- Open the Discord Developer Portal and create an application.
- On the General Information page, copy the Application ID. The installer asks for it. It is optional, but with it the installer prints your invite link.
- Open Bot and click Reset Token. Copy the token and keep it private.
- On the same page, turn on Server Members Intent.
The token gives full control of the bot. Never post it or commit it. If it leaks, reset it in the Developer Portal right away.
2. Run the installer#
Linux, macOS or WSL#
curl -fsSL https://raw.githubusercontent.com/darkzmaj/Gaia-Discord-Bot/main/install.sh | bashWindows#
Run this in PowerShell. Docker Desktop and git must be installed.
irm https://raw.githubusercontent.com/darkzmaj/Gaia-Discord-Bot/main/install.ps1 | iexWhat the installer asks#
The first time, the installer asks four questions. Press Enter to keep the value in brackets.
| Prompt | Default | Accepted |
|---|---|---|
| Discord bot token | none | The token from step 1. Typing is hidden. |
| Application ID | empty | The numeric ID, or empty |
| Timezone for schedules and backups | Europe/Ljubljana | An IANA name such as Europe/Berlin |
| Daily automatic backup hour (0-23) | 3 | A whole number from 0 to 23 |
Then the installer:
- Downloads Gaia into
~/gaia-discord-bot. SetGAIA_DIRfirst to use another folder. - Saves your answers to
.envin that folder, readable only by you. - Pulls the prebuilt image for your platform. If there is none, it builds the image locally. The first build takes several minutes.
- Starts Gaia and prints the commands for logs, updates and stopping.
If you run the installer from inside a Gaia checkout, it uses that folder instead.
3. Invite Gaia#
If you gave an Application ID, the installer prints an invite link at the end. Otherwise build it yourself, with your Application ID in place of APPLICATION_ID:
https://discord.com/oauth2/authorize?client_id=APPLICATION_ID&scope=bot+applications.commands&permissions=2435902483Open the link, choose your server and confirm. Both scopes are needed: applications.commands makes the slash commands appear.
Permissions#
The number 2435902483 asks for these permissions:
| Permission | Used for |
|---|---|
| View Channels, Send Messages, Embed Links, Attach Files, Use Application Commands | Replies, panels and embeds |
| Manage Roles | AutoRole and verification |
| Manage Channels | Voice rooms and mutes |
| Move Members, Connect, Speak | Voice rooms |
| Kick Members, Manage Messages, Create Invite | The verification channel trap and its rejoin invite |
Use 2436033587 instead to also grant Manage Server and Mention Everyone. You need them to restore backups onto a server and to send embeds that ping @everyone or @here.
Gaia never needs Administrator.
Intents#
Gaia connects with the Guilds, Server Members, Voice States and Guild Messages intents. Only Server Members Intent must be turned on in the Developer Portal. Gaia does not use the Message Content intent.
4. Check that it works#
- In your server, type
/admin. - The first time, Gaia shows Logging Setup. Only the server owner can answer it. See Logs.
- After that,
/adminopens the Gaia Administration dashboard, visible only to you. It shows Gaia as online with its uptime.
Only members with the Discord Administrator permission can open /admin. If the commands do not appear, see Troubleshooting.
Without the installer#
The installer only wraps Docker Compose. You can also:
- Clone the repository, copy
.env.exampleto.env, setDISCORD_TOKENand rundocker compose up -d. - Deploy with Coolify: create a resource from the repository with the Docker Compose build pack and set the variables under its environment variables. Do not set
DATABASE_PATH, and leave the domain and port settings empty. - Run from source with Rust 1.85 or later and Ruby 3.1 or later. See the README.
Next, read Configuration.
Source: Gaia v2.0.0 README, install.sh, install.ps1, docker-compose.yml and src/bot.rs, checked 9 November 2026.