Install Kori
Create the Discord application, run the one-command installer and invite Kori 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.
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 Message Content Intent. Kori uses it only to read a ticket's messages when she saves its transcript.
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/Kori-Discord-Bot/main/install.sh | bashWindows#
Run this in PowerShell. Docker Desktop and git must be installed.
irm https://raw.githubusercontent.com/darkzmaj/Kori-Discord-Bot/main/install.ps1 | iexWhat the installer asks#
The first time, the installer asks two questions.
| Prompt | Default | Accepted |
|---|---|---|
| Discord bot token | none | The token from step 1. Typing is hidden. |
| Application ID | empty | The numeric ID (17 to 20 digits), or empty |
Then the installer:
- Downloads Kori into
~/kori. SetKORI_DIRfirst to use another folder. - Saves your answers to
.envin that folder, readable only by you. - Pulls the prebuilt image (
ghcr.io/darkzmaj/kori, forlinux/amd64andlinux/arm64). If there is none for your platform, it builds the image locally. The first build takes several minutes. - Starts Kori and prints the commands for logs, updates and stopping.
If you run the installer from inside a Kori checkout, it uses that folder instead. Log channels for the bot owner are optional and set in .env afterwards; see Configure Kori.
3. Invite Kori#
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=139855252560Open the link, choose your server and confirm. Both scopes are needed: applications.commands makes the slash commands appear. What each permission is for is in Commands and permissions.
4. Set up tickets#
Run /ticket in your server as an administrator and follow Set up tickets.
Other ways to run Kori#
- Docker Compose by hand. Clone the repository, copy
.env.exampleto.env, setDISCORD_TOKEN, then rundocker compose up -d. - Coolify. Create a resource from the repository with Docker Compose as the build pack and set
DISCORD_TOKEN(and any optional variables) under Environment Variables. Do not setDATABASE_PATH. There is no port to expose. - From source. Install Rust 1.85 or newer and Ruby 3.1 or newer with Bundler, run
bundle install, copy.env.exampleto.env, thenrake startfor a release build orrake devfor development.
Source: Kori v1.0.0 install.sh, install.ps1, docker-compose.yml and README.md, checked 8 November 2026.