Discord bridge for Kimi CLI with cmux integration
Project description
kimi-discord-bridge
Discord bridge for Kimi CLI with cmux integration.
Run Kimi sessions inside Discord threads while simultaneously driving a toad TUI in a cmux pane — both views stay in sync.
Installation
uv tool install --python 3.14 kimi-discord-bridge
Or install from source:
git clone https://github.com/HyeongJunMin/kimi-cli-discord.git
cd kimi-cli-discord
uv tool install --python 3.14 .
Requirements
- Python 3.14+
uv(recommended) orpipcmux(required for TUI sync)kimiCLI (required for ACP sessions)
Note:
cmuxandkimiare listed as "required" because the core value of this bridge is bidirectional sync between Discord and the toad TUI. Without them the bot can still start, but it will operate in a limited Discord-only mode.
Quick Start
-
Create a Discord bot application (if you don't have one):
- Go to Discord Developer Portal
- New Application → Bot tab → Add Bot
- Enable Message Content Intent
- OAuth2 URL Generator: scopes
bot+applications.commands, permissions listed in INSTALL.md - Authorize the bot into your server
-
Configure environment variables:
cp .env.example .env
# Edit .env with your Discord token, client ID, and guild ID
- Validate (catches credential/format errors early):
kimi-discord-bridge doctor
- Register slash commands (once per guild):
kimi-discord-bridge deploy-commands
- Run the bot:
kimi-discord-bridge run
Persistence warning: The bot creates
sessions.jsonandlogs/in the current working directory. Always restart the bot from the same directory or sessions will not be resumed.
Commands
| Command | Description |
|---|---|
/new |
Create a new Kimi session (workspace select → name) |
/list |
List active sessions |
/status <name> |
Check session status |
/close [name] |
Close a session |
/steer <name> <message> |
Send follow-up message |
/interrupt <name> |
Interrupt active turn |
/peek <name> [lines] |
Preview cmux screen |
Architecture
Discord Thread <---> Bot (discord.py) <---> AcpMux <---> kimi acp
^
|
cmux pane <---> toad TUI <---> attach (unix socket)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kimi_discord_bridge-0.1.7.tar.gz.
File metadata
- Download URL: kimi_discord_bridge-0.1.7.tar.gz
- Upload date:
- Size: 103.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed080ae78b5a69703f493a92bae17dcf47510fcfda7cead832f80cf699756939
|
|
| MD5 |
93582bf7a5ba5a9bb551cc9ac714c361
|
|
| BLAKE2b-256 |
d1039a445723b1ce5d2bcf3d967550112a0db7dc692256eb6c19da754f3a260c
|
File details
Details for the file kimi_discord_bridge-0.1.7-py3-none-any.whl.
File metadata
- Download URL: kimi_discord_bridge-0.1.7-py3-none-any.whl
- Upload date:
- Size: 36.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d87f496bf4b0ed63f4a61601c68ed8376d274558d4d42b65bea6cba7fd1702e5
|
|
| MD5 |
d547f69ed08a27aee561c507c4637f2d
|
|
| BLAKE2b-256 |
26c850b8e7f3b332f71252e56df643c4b864af4b2faf2ea193f64294e0897932
|