IMtoAgent
Unified IM ↔ Agent Gateway — One Gateway, Unlimited Bots
curl -fsSL https://imtoagent.pages.dev/install.sh | bashConnect Feishu, Telegram, WeChat, WeCom to Claude Code, Codex, OpenCode — one gateway, multiple bots running in parallel.
🔌 Multiple IM Platforms Built-in adapters for Feishu, Telegram, WeCom, and personal WeChat. Registry factory pattern — adding a new IM takes just one line.
🤖 Multiple Agent Backends Supports Claude Code, Codex (OpenAI), and OpenCode. Unified proxy on port :18899 for all requests.
⚙️ Multi-Bot Parallel Run multiple bots simultaneously — each with its own IM + Agent + model + soul configuration.
📦 Out of the Box
One-line install → imtoagent setup → imtoagent start, live in three steps.
Quick Start
# 1. One-line install (auto-detects environment, installs dependencies, guides configuration)curl -fsSL https://imtoagent.pages.dev/install.sh | bash
# 2. Interactive setup (↑↓ keyboard navigation)imtoagent setup
# 3. Start gateway (runs in background, terminal returns immediately)imtoagent startArchitecture
IM Adapter → IM Registry Factory → Bot Instance → AgentRuntime → Agent Adapter → Unified Proxy :18899 → Upstream Models| Layer | Component | Description |
|---|---|---|
| IM Layer | Feishu / Telegram / WeCom / WeChat | WebSocket / Long-poll / Webhook callback |
| Gateway Layer | Bot + AgentRuntime | Message routing, session management, error handling |
| Agent Layer | Claude / Codex / OpenCode | spawn subprocess / HTTP API |
| Proxy Layer | Anthropic Proxy :18899 | Unified proxy, all requests forwarded upstream |