TheDocumentation 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.
project add command creates Discord text and voice channels for a project directory, enabling you to trigger OpenCode sessions in that project from Discord.
Usage
Adding the current directory
Adding a specific directory
Command options
Project directory path. Defaults to the current working directory if not specified.
Discord server (guild) ID where channels should be created. Auto-detects if the bot is in only one server.Get this by right-clicking the server icon → Copy Server ID.
Bot application ID for validation. Reads from database if available, otherwise auto-derived from token.
Environment variables
Discord bot token. Required in CI when credentials aren’t in the database.
What gets created
When you runproject add, Kimaki creates:
- Category: A “Kimaki” category in your Discord server (if it doesn’t exist)
- Text channel: Named after your project directory (e.g.,
my-project) - Voice channel: Named with a microphone prefix (e.g.,
🎤 my-project)
Channel metadata
Kimaki stores the channel-to-directory mapping in its SQLite database (~/.kimaki/discord-sessions.db). This mapping persists across bot restarts.
Examples
Add current directory
Add with explicit guild
CI automation
Add a project from a GitHub Actions workflow:.github/workflows/setup-kimaki.yml
Add multiple projects
Behavior
- Guild detection: If
--guildis not provided, Kimaki queries Discord to list servers the bot is in - Auto-select: If the bot is in exactly one server, that server is used automatically
- Category creation: Creates a “Kimaki” category if it doesn’t exist
- Channel creation: Creates text and voice channels in the category
- Database storage: Stores the channel→directory mapping in SQLite
The bot must be installed in at least one Discord server before running
project add. Run kimaki interactively first to set up the bot.Multiple servers
You can add the same project to channels in multiple Discord servers:Removing channels
To remove project channels, use the/remove-project slash command in Discord, or manually delete the channels and remove the database entries.
Troubleshooting
Error: No bot token found
Error: No bot token found
Run
kimaki once interactively to configure bot credentials, or set the KIMAKI_BOT_TOKEN environment variable.Error: Bot not in any guilds
Error: Bot not in any guilds
Install the bot to a Discord server first. Run
kimaki and follow the setup wizard to generate an install URL.Multiple guilds found, --guild required
Multiple guilds found, --guild required
When the bot is in multiple servers, you must specify which one with
--guild <server-id>.Channels created but can't send messages
Channels created but can't send messages
Check that the bot has Send Messages and Create Public Threads permissions in the server.