Kimaki requires a Discord bot application to connect Discord to OpenCode. This guide walks you through creating a bot, enabling required intents, and installing it in your server.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/remorses/kimaki/llms.txt
Use this file to discover all available pages before exploring further.
Create Discord Application
Navigate to Discord Developer Portal
Go to discord.com/developers/applications and sign in with your Discord account.
Create New Application
Click New Application and give your application a name (e.g., “Kimaki Bot” or your machine name).
Configure Bot Intents
Intents control what events your bot can receive from Discord. Kimaki requires specific privileged intents to function.Enable Required Intents
Scroll down to Privileged Gateway Intents and enable:
- SERVER MEMBERS INTENT - Required to check user permissions
- MESSAGE CONTENT INTENT - Required to read message content
Get Bot Token
The bot token authenticates your Kimaki instance with Discord.Reset Token
In the Bot section, click Reset Token to generate a new token.
If this is your first time, the button may say Copy instead of Reset Token.
Install Bot to Server
Generate an invite URL with the correct permissions.Get Install URL
The Kimaki CLI generates an install URL with proper permissions during setup:Replace
YOUR_APP_ID with your Application ID, or let the CLI generate it for you.Select Server
Choose the Discord server where you want to install the bot. You must have Manage Server permission.
Required Permissions
The install URL includes these permissions:- View Channels - See channels in the server
- Send Messages - Reply to user messages
- Create Public Threads - Create threads for sessions
- Send Messages in Threads - Reply in session threads
- Manage Channels - Create project channels
- Manage Threads - Archive threads when sessions end
- Attach Files - Send file attachments in responses
- Read Message History - Resume sessions and fork from history
- Add Reactions - React to messages with status indicators
- Use External Emojis - Optional, for better status indicators
- Mention Everyone - Optional, allows the bot to mention @everyone if needed
The bot only uses permissions in channels it manages. It won’t modify other channels.
Bot Token Storage
Kimaki stores your bot token in~/.kimaki/discord-sessions.db by default.
Environment Variable (CI/Automation):
For headless deployments, set KIMAKI_BOT_TOKEN instead:
Next Steps
Run Kimaki
Start the bot and create project channels
Configure Permissions
Customize tool permissions with opencode.json