Claude Code + 飞书机器人,支持 6 家 LLM 服务商预设与自定义 URL;飞书默认 WebSocket 长连接,无需公网域名
非 TTY 服务器上直接复制粘贴执行,把 xxx 换成真实密钥:
CC_PROVIDER: LLM 服务商,这里用 kimi;可选 deepseek / glm / minimax / openrouter / anthropic / customCC_API_KEY: 对应服务商的 API KeyFEISHU_APP_ID / FEISHU_APP_SECRET: 飞书机器人凭证-E 保留环境变量;sudo 用于写 systemd 服务与 npm 全局包;-fsSL 静默下载并跟随跳转💡 原生 Windows 无法直接运行本 bash 脚本,建议通过 WSL2 安装;cc-connect 本体为 Node.js,也可在 Windows 上手动 `npm install -g cc-connect` 后自行配置。
curl -fsSL https://inst.xlm666.top/install-cc-connect-pro.sh -o /tmp/inst.sh
bash /tmp/inst.sh
| Provider | 默认模型 | 可选模型 | Key 前缀 |
|---|---|---|---|
| Kimi Code | kimi-for-coding |
k3, k3-256k, kimi-for-coding-highspeed | sk-kimi- |
| DeepSeek | deepseek-v4-flash |
deepseek-v4-pro | sk- |
| MiniMax | MiniMax-M3 |
M3-highspeed, M2.7, M2.7-highspeed | eyJ (JWT) |
| Anthropic | claude-sonnet-4-6 |
opus, haiku | sk-ant- |
| 智谱 GLM | glm-5.2 |
glm-5.2-coding, glm-4-plus, glm-4-flash, glm-4-air | 任意 |
| OpenRouter | anthropic/claude-sonnet-4-6 |
anthropic/* 系列 | sk-or- |
安装后在聊天中发送 /model list 查看模型,/model switch <模型名> 切换。
# 查看状态
cc-connect daemon status
# 实时日志
cc-connect daemon logs -f
# 列出 provider 与模型
cc-connect provider list
cc-connect model list
# 飞书获取自己的 User ID
# 在飞书给机器人发: /whoami
# 卸载
bash install-cc-connect-pro.sh --uninstall