First-Run Setup
Create the owner account with the one-time setup codeOne-time code from the container log that creates the Owner, save the Bot TokenThe bot's password for Discord, from the Developer Portal, start the bot, and then add it to your Discord server, in that order.
Find the Setup Code
While no account exists, the web service prints a setup codeOne-time code from the container log that creates the Owner to the container log each time it starts. Read it on the Docker host:
docker logs discord-stonker-bot | grep setup_code_issued
With Compose, read it from the app service instead:
docker compose logs app | grep setup_code_issued
2026-10-25T12:30:00.000Z WARN web: setup_code_issued expiresAt=2026-10-25T13:00:00.000Z message=No account exists yet. Open the control panel to create the owner account with the setup code. setupCode=K7Q2M-XR9TD-P4W8N
- The code —
setupCodeholds a code likeK7Q2M-XR9TD-P4W8N, andexpiresAtshows when it stops working. - Lifetime — A code works for 30 minutes, and only once.
- New codes — Each restart prints a new code and the old one stops working, so the last matching line holds the current code.
- Container log only — The code never appears on the control panel's Logs page.
To get a fresh code, restart the container and read the log again:
docker restart discord-stonker-bot
docker logs discord-stonker-bot | grep setup_code_issued
With Compose:
docker compose restart app
docker compose logs app | grep setup_code_issued
Create the Owner Account
Open http://<docker-host>:22604/ in a browser, where <docker-host> is the name or address of the machine that runs Docker. Until an account exists, the control panel shows Set up your account.
- Enter the code in One-time code. Letter case, spaces, and dashes don't matter.
- Choose a Username of 3 to 64 letters, digits, periods, underscores, or hyphens, starting with a letter or digit.
- Choose a Password of at least 12 characters, and type it again in Confirm password. The bar under the field rates it from Weak to Strong, and any password of 12 or more characters is accepted.
- Select Create account.

You're signed in right away as the OwnerThe first account; it can do everything and can't be removed, with access to every Discord server. The setup screen doesn't come back once the account exists.
- "That setup code is wrong or expired. Restart the container to print a new one." — Check the code against the last log line, or restart the container for a new one.
- "Too many setup attempts. Try again in 15 minutes." — Setup pauses for 15 minutes after 10 wrong codes from one address.
tip
Only someone who can read the container log can create the owner account. It is still recommended to finish setup before you open the panel to other devices.
Save the Bot Token
- Open Connection under Settings in the desktop sidebar or with the Settings tab on a phone, or select Add the bot token on the Overview page.
- Paste the token from the Developer Portal into Bot token.
- Select Save token.

The Bot token section then shows Saved with "Stored encrypted. It's never shown again." Saving the token doesn't start the bot.
Start the Bot
Select Start in the Bot section of the Connection or Overview page. The status moves from Stopped to Starting, then to Online or Stopped by an error.
On its first connection, the bot records your Discord applicationYour bot's entry in the Discord Developer Portal's ID and every server it can see. If the status shows Stopped by an error, see Bot Lifecycle.
Add Your Server
- On the Connection page, open the Invite link under Add the bot to a server, or choose Add a server in the server menu.
- Choose your server on Discord's page and approve the install.
- Give the bot a role with the permissions your features need, as described in Discord Application.
The server then appears in the server menu with its channels and roles, usually within a minute. Before the bot's first sign-in, the Connection page shows "The link appears once the bot signs in to Discord with its token." instead of the link.
You can add the same bot to more servers later, and each server keeps its own features, settings, and secrets.
Turn On Your First Feature
- Open Features and select a feature.
- Select Start from the example to load example settingsSample values to start a feature you haven't set up, or Start from scratch for an empty form. You can also choose An older config.json in the Backup wizard.
- Choose your own channels and roles, enter any secret the feature needs, then select Save in the bar at the bottom.
- Turn on the switch at the top of the feature's page.
Saving and switching make the bot reconnect on its own, so the change takes effect within a few seconds. Managing Features explains the editor in detail.
Secure Your Account
Open Sign-in and security in the account menu to add an authenticator appA phone app that makes six-digit sign-in codes or a passkeySign in with Face ID, Touch ID, or a security key. Users and Security covers both, along with adding accounts for your moderators.
warning
Nobody can reset the OwnerThe first account; it can do everything and can't be removed's password or two-factor sign-in in the control panel. It is recommended to keep the OwnerThe first account; it can do everything and can't be removed's recovery codesA one-time backup code for when your authenticator is gone somewhere other than the phone with the authenticator appA phone app that makes six-digit sign-in codes, and to add a passkeySign in with Face ID, Touch ID, or a security key.