Skip to main content

kimi-bridge

English: README.en_US.md

在即时通讯对话中控制本地的 Kimi Code 智能体。

kimi-bridge 连接本地 Kimi Code 服务器与一个聊天平台,保持聊天和会话的绑定关系,并按平台能力提供流式回复、文件、会话控制和交互功能。

支持情况

平台/能力 状态
飞书、QQ、微信私聊 已支持
Telegram 私聊 实验性
Linux、macOS 和 Windows 已支持
语音消息接收 飞书、QQ 和微信支持
审批和提问卡片 仅飞书支持

快速开始

第一步先安装官方 Kimi Code(注意不是同名的旧版 Python kimi-cli),然后确认 Kimi Code 配置正常,且能够完成问答:

kimi --version
kimi doctor config
kimi -p "Hello there"

确认 Kimi Code 可用后,安装 kimi-bridge:

uv tool install kimi-bridge
kimi-bridge --version

然后选择你最常用的平台登录:

kimi-bridge {feishu, qq, wechat} login

在配置过程中可能需要点击网页链接或扫描二维码完成授权。配置成功后启动 kimi-bridge:

kimi-bridge

就可以在聊天平台中和 Kimi 对话啦!

也可以让 AI 助手全程代办:打开任意 CLI 智能体,对它说:

阅读 https://github.com/Mtrya/kimi-bridge/blob/main/INSTALL_AI.md 并帮我配置 kimi-bridge。

它会向你提问并跑完整个安装流程。

需要更详细的安装步骤、平台侧设置或定制化配置时,参考 安装与运维。配置、聊天命令和架构参考为英文文档:Configuration、Commands、Architecture。

功能特性

  • 持久的 Kimi 会话管理:创建、列表、切换、重命名、查看、压缩和撤销。
  • 原地编辑的流式回复与路由侧分块;平台支持时另有独立思考流、交互式审批与提问。
  • 忙碌回合中的提示引导、取消、权限模式、模型、推理强度、计划、目标、任务、技能和 MCP 查看。
  • 接收图片、视频、文件和语音转写,以及 /send 文件外发。
  • 私聊白名单、仅监听回环地址的 Kimi 服务器监管,以及本地 doctor 诊断。

命令

聊天命令包括:

  • 会话:/new、/sessions、/switch、/status、/title、/usage、/compact、/undo;
  • 控制:/mode、/model、/effort、/plan、/goal、/stop、/restart-server;
  • 任务与工具:/tasks、/skills、/mcp;
  • 输出:/send、/render-thinking。

在聊天中输入 /help 或 /<command> ? 查看用法;确切语法和平台限制见命令参考。

架构与安全

飞书、QQ、微信或实验性的 Telegram
                 │
                 ▼
             聊天路由器
                 │
                 ▼
           本地 `kimi web`

受监管的 Kimi 服务器只绑定回环地址并使用随机 bearer token,聊天访问由适配器白名单限制。kimi-bridge 面向一个受信任的操作者;获授权的 Kimi 智能体可以以宿主机账户的权限读写文件和执行命令,请保护宿主机、配置文件和聊天凭据。组件边界与 Kimi Code 兼容性命令见架构与兼容性。

开发

uv sync --dev
uv run pytest -q
uv run ruff check .

许可证

MIT © 2026 Mtrya

Metadata

Release files for kimi-bridge 0.7.2

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-bridge 0.7.2
File Size Uploaded
kimi_bridge-0.7.2.tar.gz 375.2 kB Details

Built distribution (wheel)

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

Total release size: 565.5 kB

Release files / kimi_bridge-0.7.2.tar.gz

Download URL kimi_bridge-0.7.2.tar.gz
Size 375.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e1588228bfc45ae7f26b9fa252ba7312d495e45e033e7f333204ea7a6a8ab8ae
BLAKE2b-256 checksum
How to use checksums
ccfb904f9999789829a0769984144c6a4b44945ee4b66e918950f51eb38b50dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.

Transparency log

Release files / kimi_bridge-0.7.2-py3-none-any.whl

Download URL kimi_bridge-0.7.2-py3-none-any.whl
Size 190.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d00e61184af15a5cbc3497c43fd039fc11da659dc527225d6bc3bbef3bfc425
BLAKE2b-256 checksum
How to use checksums
dcb8a1fa1e2771276f1d9b625515655400256dac2ab7d5e7b4e3632d97420ff2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.9

2 release files

0.8.8

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

This release

0.7.2 This release

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

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