Kimaki provides a comprehensive CLI for managing Discord bot instances, creating project channels, sending messages programmatically, and automating workflows.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.
Installation
The CLI is distributed via npm and can be run without installation:Command structure
All commands follow this pattern:Available commands
send
Start sessions programmatically from CI or automation
project add
Create Discord channels for project directories
project list
List all registered projects with their channels
session
Read and search session history
upload-to-discord
Upload files to Discord threads
task
Manage scheduled tasks
upgrade
Upgrade Kimaki to the latest version
Common options
These options work across multiple commands:| Option | Description |
|---|---|
--data-dir <path> | Custom data directory (default: ~/.kimaki) |
--help | Show help for a command |
--version | Show Kimaki version |
Environment variables
Discord bot token for authentication. Required for CI/automation when bot credentials aren’t in the database.
Lock port for single-instance enforcement. Auto-derived from
--data-dir if not set.Set to
1 to suppress terminal log noise during test runs.Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
64 | Exit without restart (used internally) |
Interactive vs non-interactive mode
When you runkimaki without arguments, it enters interactive mode with a setup wizard:
- Creating or selecting a Discord bot
- Configuring bot settings
- Installing the bot to servers
- Adding project channels
- Starting the bot process
send and project add with explicit arguments.
Best practices
In CI environments, always set
KIMAKI_BOT_TOKEN as a secret. Never commit bot tokens to version control.Next steps
Send command
Start sessions from CI pipelines
CI automation
GitHub Actions integration examples