Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@atticux/cc-connect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Control your local AI agents from any chat app. Anywhere, anytime.
cc-connect bridges AI agents running on your machine to the messaging platforms you already use.
Code review, research, automation, data analysis โ anything an AI agent can do,
now accessible from your phone, tablet, or any device with a chat app.
๐ What's New (beta)
These highlights are in beta / pre-release builds โ install
cc-connect@betaor grab a pre-release binary. They are not in the default stable release yet; details may change before promotion to stable.
- Personal WeChat โ Chat with your local agent from Weixin (personal) via ilink long-polling; QR
weixin setup, CDN media, no public IP. Setup โdocs/weixin.md - Auto-compress โ When the session estimate blows past your threshold, cc-connect can trim context so long threads keep working instead of silently falling over.
- Friendlier
--continueโ Fork-on-continue so your bridge session doesnโt inherit a half-finished CLI terminal session by accident. - Cron with boundaries โ Run jobs in a fresh session each time and cap per-job timeouts so runaway tasks donโt wedge the bot.
- Richer platforms โ e.g. Discord
@everyone/@here, Telegram voice-style replies, Feishu fixes for reply threading and async dispatch.
๐งฉ Platform feature snapshot
High-level view of what each built-in platform can do in cc-connect. Inspired by OpenClaw Chinaโs feature matrix โ handy for comparing channels at a glance.
Legend
| Symbol | Meaning |
|---|---|
| โ | Works in stable cc-connect with typical configuration |
| โ ๏ผbeta๏ผ | Beta / pre-release only โ the Weixin (personal) column: install cc-connect@beta or a pre-release binary; not in the default stable npm build yet |
| โ ๏ธ | Partial, needs extra config (e.g. speech / ASR), or limited by the vendor app or API |
| โ | Not supported or not applicable in practice |
โ QQ (NapCat / OneBot) โ unofficial self-hosted bridge; behaviour depends on your NapCat / network setup.
| Capability | Feishu | DingTalk | Telegram | Slack | Discord | LINE | WeCom | Weixin (personal) |
QQโ | QQ Bot |
|---|---|---|---|---|---|---|---|---|---|---|
| Text & slash commands | โ | โ | โ | โ | โ | โ | โ | โ ๏ผbeta๏ผ | โ | โ |
| Markdown / cards | โ | โ | โ | โ | โ | โ ๏ธ | โ ๏ธ | โ ๏ผbeta๏ผ | โ | โ |
| Streaming / chunked replies | โ | โ | โ | โ | โ | โ | โ | โ ๏ผbeta๏ผ | โ | โ |
| Images & files | โ | โ | โ | โ | โ | โ ๏ธ | โ | โ ๏ผbeta๏ผ | โ | โ |
| Voice / STT / TTS | โ ๏ธ | โ ๏ธ | โ | โ ๏ธ | โ ๏ธ | โ | โ ๏ธ | โ ๏ผbeta๏ผ | โ ๏ธ | โ ๏ธ |
| Private (DM) | โ | โ | โ | โ | โ | โ | โ | โ ๏ผbeta๏ผ | โ | โ |
| Group / channel | โ | โ | โ | โ | โ | โ ๏ธ | โ | โ ๏ผbeta๏ผ | โ | โ |
Weixin column: every โ ๏ผbeta๏ผ means โavailable only when you run a beta / pre-release build,โ not a statement that the feature is incomplete โ the whole personal WeChat (ilink) channel is still pre-stable.
WeCom: Webhook mode needs a public URL; long-connection / WS style setups often do not.
Voice row: many platforms need[speech]/ TTS providers enabled inconfig.toml; values are a best-effort summary.
Per-platform setup: Platform setup guides below.
โจ Why cc-connect?
๐ค Universal Agent Support
7 AI Agents โ Claude Code, Codex, Cursor Agent, Qoder CLI, Gemini CLI, OpenCode, iFlow CLI. Use whichever fits your workflow, or all of them at once.
๐ฑ Platform Flexibility
10 Chat Platforms โ Feishu, DingTalk, Slack, Telegram, Discord, WeChat Work, LINE, QQ, QQ Bot (Official), plus Weixin (personal ilink) for personal WeChat. Personal WeChat is beta / pre-release only โ install cc-connect@beta or a GitHub pre-release binary; the default stable npm package does not ship the weixin platform yet. Most platforms need zero public IP.
๐ Multi-Agent Orchestration
Multi-Bot Relay โ Bind multiple bots in a group chat and let them communicate with each other. Ask Claude, get insights from Gemini โ all in one conversation.
๐ฎ Complete Chat Control
Full Control from Chat โ Switch models (/model), tune reasoning (/reasoning), change permission modes (/mode), manage sessions, all via slash commands.
Directory Switching in Chat โ Change where the next session starts with /dir <path> (and /cd <path> as a compatibility alias), plus quick history jump via /dir <number> / /dir -.
๐ง Persistent Memory
Agent Memory โ Read and write agent instruction files (/memory) without touching the terminal.
โฐ Intelligent Scheduling
Scheduled Tasks โ Set up cron jobs in natural language. "Every day at 6am, summarize GitHub trending" just works.
๐ค Multimodal Support
Voice & Images โ Send voice messages or screenshots; cc-connect handles STT/TTS and multimodal forwarding.
๐ฆ Multi-Project Architecture
Multi-Project โ One process, multiple projects, each with its own agent + platform combo.
๐ Multilingual Interface
5 Languages โ Native support for English, Chinese (Simplified & Traditional), Japanese, and Spanish. Built-in i18n ensures everyone feels at home.
Left๏ผLark | Telegram | Right๏ผWechat
๐ Quick Start
๐ค Install & Configure via AI Agent (Recommended)
The easiest way โ Send this to Claude Code or any AI coding agent, and it will handle the entire installation and configuration for you:
Follow https://raw.githubusercontent.com/chenhg5/cc-connect/refs/heads/main/INSTALL.md to install and configure cc-connect.๐ฆ Manual Install
Via npm:
# Stable version
npm install -g cc-connect
# Beta version (more features, may be unstable)
npm install -g cc-connect@betaPersonal WeChat (Weixin ilink): only available in beta / pre-release builds (
cc-connect@betaor a prerelease asset under Releases). Stablenpm install -g cc-connectdoes not include this platform until it graduates from beta.
Download binary from GitHub Releases:
# Linux amd64 - Stable
curl -L -o cc-connect https://github.com/chenhg5/cc-connect/releases/latest/download/cc-connect-linux-amd64
chmod +x cc-connect
sudo mv cc-connect /usr/local/bin/
# Beta version (from pre-release)
curl -L -o cc-connect https://github.com/chenhg5/cc-connect/releases/download/v1.x.x-beta/cc-connect-linux-amd64Build from source (requires Go 1.22+):
git clone https://github.com/chenhg5/cc-connect.git
cd cc-connect
make buildโ๏ธ Configure
mkdir -p ~/.cc-connect
cp config.example.toml ~/.cc-connect/config.toml
vim ~/.cc-connect/config.tomlSet admin_from = "alice,bob" in a project to allow those user IDs to run privileged commands such as /dir and /shell.
When a user runs /dir reset, cc-connect restores the configured work_dir and clears the persisted override stored under data_dir/projects/<project>.state.json.
โถ๏ธ Run
./cc-connect๐ Upgrade
# npm
npm install -g cc-connect
# Binary self-update
cc-connect update # Stable
cc-connect update --pre # Beta (includes pre-releases)๐ Support Matrix
| Component | Type | Status |
|---|---|---|
| Agent | Claude Code | โ Supported |
| Agent | Codex (OpenAI) | โ Supported |
| Agent | Cursor Agent | โ Supported |
| Agent | Gemini CLI (Google) | โ Supported |
| Agent | Qoder CLI | โ Supported |
| Agent | OpenCode (Crush) | โ Supported |
| Agent | iFlow CLI | โ Supported |
| Agent | Goose (Block) | ๐ Planned |
| Agent | Aider | ๐ Planned |
| Platform | Feishu (Lark) | โ WebSocket โ no public IP needed |
| Platform | DingTalk | โ Stream โ no public IP needed |
| Platform | Telegram | โ Long Polling โ no public IP needed |
| Platform | Slack | โ Socket Mode โ no public IP needed |
| Platform | Discord | โ Gateway โ no public IP needed |
| Platform | LINE | โ Webhook โ public URL required |
| Platform | WeChat Work | โ WebSocket / Webhook |
| Platform | Weixin (personal, ilink) | โ ๏ผbeta๏ผโ HTTP long polling โ no public IP needed |
| Platform | QQ (NapCat/OneBot) | โ WebSocket โ Beta |
| Platform | QQ Bot (Official) | โ WebSocket โ no public IP needed |
๐ Platform Setup Guides
| Platform | Guide | Connection | Public IP? |
|---|---|---|---|
| Feishu (Lark) | docs/feishu.md | WebSocket | No |
| DingTalk | docs/dingtalk.md | Stream | No |
| Telegram | docs/telegram.md | Long Polling | No |
| Slack | docs/slack.md | Socket Mode | No |
| Discord | docs/discord.md | Gateway | No |
| WeChat Work | docs/wecom.md | WebSocket / Webhook | No (WS) / Yes (Webhook) |
| Weixin (personal) | docs/weixin.md | HTTP long polling (ilink) โ beta only | No |
| QQ / QQ Bot | docs/qq.md | WebSocket | No |
๐ฏ Key Features
๐ฌ Session Management
/new [name] Start a new session
/list List all sessions
/switch <id> Switch session
/current Show current session
/dir [path|reset] Show, switch, or reset work directory๐ Permission Modes
/mode Show available modes
/mode yolo # Auto-approve all tools
/mode default # Ask for each tool๐ Provider Management
/provider list List providers
/provider switch <name> Switch API provider at runtime๐ค Model Selection
/model List available models (format: alias - model)
/model switch <alias> Switch to model by alias๐ Work Directory
/dir Show current work directory and history
/dir <path> Switch to a path (relative or absolute)
/dir <number> Switch from history
/dir - Switch to previous directory
/cd <path> Compatibility alias for /dir <path>โฐ Scheduled Tasks
/cron add 0 6 * * * Summarize GitHub trending๐ Agent Attachment Send-Back
When an agent generates a local screenshot, chart, PDF, bundle, or other file, it can send that attachment back to the current chat.
First release supports:
- Feishu
- Telegram
If your agent does not natively inject the system prompt, run this once in chat after upgrading:
/bind setupor:
/cron setupThis refreshes the cc-connect instructions in the project memory file so the agent knows how to send attachments back.
You can control this feature globally in config.toml:
attachment_send = "on" # default: "on"; set to "off" to block image/file send-backThis switch is independent from the agent's /mode. It only controls cc-connect send --image/--file.
Examples:
cc-connect send --image /absolute/path/to/chart.png
cc-connect send --file /absolute/path/to/report.pdf
cc-connect send --file /absolute/path/to/report.pdf --image /absolute/path/to/chart.pngNotes:
- Absolute paths are the safest option.
--imageand--filecan both be repeated.attachment_send = "off"disables only attachment send-back; ordinary text replies still work.- This command is for generated attachments, not ordinary text replies.
๐ Full documentation: docs/usage.md
๐ Documentation
- Usage Guide โ Complete feature documentation
- INSTALL.md โ AI-agent-friendly installation guide
- config.example.toml โ Configuration template
๐ฅ Community
๐ Contributors
โญ Star History
๐ License
MIT License
Built with โค๏ธ by the cc-connect community