Skip to main content

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) or pip
  • cmux (required for TUI sync)
  • kimi CLI (required for ACP sessions)

Note: cmux and kimi are 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

  1. 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
  2. Configure environment variables:

cp .env.example .env
# Edit .env with your Discord token, client ID, and guild ID
  1. Validate (catches credential/format errors early):
kimi-discord-bridge doctor
  1. Register slash commands (once per guild):
kimi-discord-bridge deploy-commands
  1. Run the bot:
kimi-discord-bridge run

Persistence warning: The bot creates sessions.json and logs/ 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

Metadata

Release files for kimi-discord-bridge 0.1.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kimi-discord-bridge 0.1.12
File Size Uploaded
kimi_discord_bridge-0.1.12.tar.gz 105.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kimi-discord-bridge 0.1.12
File Interpreter ABI Platform
kimi_discord_bridge-0.1.12-py3-none-any.whl Python 3 none any Details

Total release size: 143.2 kB

Release files / kimi_discord_bridge-0.1.12.tar.gz

Download URL kimi_discord_bridge-0.1.12.tar.gz
Size 105.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b5319005ca6c483f104c5b43275109a9e00def5cebca1cad3b90cc4eb9065769
BLAKE2b-256 checksum
How to use checksums
8a474314d50c79bfe09f0437ea8ea6923ea95117bb60cace03ec56e6fb1374d0
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / kimi_discord_bridge-0.1.12-py3-none-any.whl

Download URL kimi_discord_bridge-0.1.12-py3-none-any.whl
Size 37.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
182972b28fb56a5950c8f1601052529e7abb38dd34eaaec386a11f7c03c9a2c8
BLAKE2b-256 checksum
How to use checksums
3b27ac1eca82f01c8c07aac84395765db64b3784c1331b9af832ce9fb34b1161
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.12 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page