Claude to Im Skill banner
op7418 op7418

Claude to Im Skill

AI community intermediate

Description

Bridge Claude Code / Codex to IM platforms — chat with AI coding agents from Telegram, Discord, Feishu/Lark, or QQ.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Claude-to-IM Skill

Bridge Claude Code / Codex to IM platforms — chat with AI coding agents from Telegram, Discord, Feishu/Lark, or QQ.

[中文文档](README_CN.md)

**Want a desktop GUI instead?** Check out [CodePilot](https://github.com/op7418/CodePilot) — a full-featured desktop app with visual chat interface, session management, file tree preview, permission controls, and more. This skill was extracted from CodePilot's IM bridge module for users who prefer a lightweight, CLI-only setup.


How It Works

This skill runs a background daemon that connects your IM bots to Claude Code or Codex sessions. Messages from IM are forwarded to the AI coding agent, and responses (including tool use, permission requests, streaming previews) are sent back to your chat.

You (Telegram/Discord/Feishu/QQ)
  ↕ Bot API
Background Daemon (Node.js)
  ↕ Claude Agent SDK or Codex SDK (configurable via CTI_RUNTIME)
Claude Code / Codex → reads/writes your codebase

Features

  • Four IM platforms — Telegram, Discord, Feishu/Lark, QQ — enable any combination
  • Interactive setup — guided wizard collects tokens with step-by-step instructions
  • Permission control — tool calls require explicit approval via inline buttons (Telegram/Discord) or text /perm commands (Feishu/QQ)
  • Streaming preview — see Claude's response as it types (Telegram & Discord)
  • Session persistence — conversations survive daemon restarts
  • Secret protection — tokens stored with chmod 600, auto-redacted in all logs
  • Zero code required — install the skill and run /claude-to-im setup, that's it

Prerequisites

  • Node.js >= 20
  • Claude Code CLI (for CTI_RUNTIME=claude or auto) — installed and authenticated (claude command available)
  • Codex CLI (for CTI_RUNTIME=codex or auto) — npm install -g @openai/codex. Auth: run codex auth login, or set OPENAI_API_KEY (optional, for API mode)

Installation

npx skills (recommended)


...