claude-bridge
Skill0 starsChanged 7 months agoMITView on GitHub
Bridge chat platforms (Telegram, WeChat, ...) to local Claude Code. Supports multi-bot, permission approval, images, slash commands.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- fxl1209739475-fxl/codex-claude-bridgetheir own version, first seen Jul 31, 2026
- Mugyen/claude-bridgetheir own version, first seen May 11, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Mugyen/claude-bridge★ 4same name
- fxl1209739475-fxl/codex-claude-bridge★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run a daemon that connects chat apps (Telegram by default, WeChat also supported) to your local Claude Code.
- Very specific: line 33
If not_installed: tell the user to run npm install (from the project directory).
- Very specific: line 41
If no account files: tell the user no channel is set up yet.
- Distinctive: line 42
If account files exist: continue.
- Distinctive: line 82
If the user explicitly requests an action (e.g.
- Distinctive: line 86
All commands run from the project directory.
- Very specific: line 99
All data is stored in ~/.claude-bridge/:
- Distinctive: line 118
When Claude requests a tool, the user receives a permission prompt in chat:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
claude-bridge
Run a daemon that connects chat apps (Telegram by default, WeChat also supported) to your local Claude Code. Multi-bot, hot-add from chat, permission approval, images, slash commands.
Prerequisites
- Node.js >= 18
- macOS or Linux
- Claude Code (
@anthropic-ai/claude-agent-sdk) - Telegram bot token from @BotFather (for Telegram), or a personal WeChat account with the ClawBot plugin enabled (for WeChat)
Trigger scenarios
Triggered when the user mentions "Telegram bot", "WeChat bridge", "claude bridge", "connect my bot", "set up telegram claude", "chat bot for claude code", etc.
Behavior when triggered
When triggered, do not take any actions immediately. First probe the current state, then present the user with actionable options.
Assume the project lives at the directory that contains this SKILL.md file (so relative commands work). Shell commands below assume that working directory.
Step 1: Check if dependencies are installed
test -d node_modules && echo "installed" || echo "not_installed"- If
not_installed: tell the user to runnpm install(from the project directory). Stop.
Step 2: Check which channels are configured
ls ~/.claude-bridge/accounts/*.json 2>/dev/null | head -3- If no account files: tell the user no channel is set up yet. Ask which channel they want (Telegram recommended) and run
npm run setup -- telegramornpm run setup -- wechat. - If account files exist: continue.
Step 3: Check daemon status
npm run daemon -- statusStep 4: Show status summary
If the daemon is not running:
claude-bridge is configured but not running.
Options:
setup Add a new bot (run npm run setup -- <channel>)
start Start the daemon (npm run daemon -- start)
logs View recent logs (npm run daemon -- logs)If the daemon is running:
claude-bridge is running (PID: xxx, N bots).
Options:
stop Stop the daemon
restart Restart after code changes
logs Tail recent logs
Chat commands (send in Telegram/WeChat):
/help List all commands
/bots List running bots (Telegram)
/spawn <token> <cwd> Add a new Telegram bot without restart
/rmbot <accountId> Remove a bot
/clear Start a fresh conversation
/status Show session stateIf the user explicitly requests an action (e.g. "start the bot", "stop it", "show logs"), skip the status preview and run the corresponding command directly.
Subcommand reference
All commands run from the project directory.
| Command | Executes | Description |
| setup | npm run setup -- <channel> | Interactive setup for telegram or wechat |
| start | npm run daemon -- start | Start the daemon (launchd/systemd) |
| stop | npm run daemon -- stop | Stop the daemon |
| restart | npm run daemon -- restart | Restart |
| status | npm run daemon -- status | Show status |
| logs | npm run daemon -- logs | Tail recent logs |
Data directory
All data is stored in ~/.claude-bridge/:
~/.claude-bridge/
├── accounts/ # one JSON per configured bot
├── config.env # global config (channel, working dir, model, permission mode)
├── sessions/ # per-account session state
├── logs/ # daily log files (30-day retention)
└── get_updates_buf # WeChat polling sync buffer (if using WeChat)Override the location with CLAUDE_BRIDGE_DATA_DIR.
Multi-bot
One daemon can run many Telegram bots simultaneously, each with its own working directory. See docs/multi-bot.md in the project directory.
Permission approval
When Claude requests a tool, the user receives a permission prompt in chat:
y/yes— allow oncen/no— denya/always— allow and auto-approve future calls to that tool (per-session)- 10-minute timeout auto-denies
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

