Skip to content

IMtoAgent

Unified IM ↔ Agent Gateway — One Gateway, Unlimited Bots

Terminal window
curl -fsSL https://imtoagent.pages.dev/install.sh | bash

Connect 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 setupimtoagent start, live in three steps.

Quick Start

Terminal window
# 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 start

Architecture

IM Adapter → IM Registry Factory → Bot Instance → AgentRuntime → Agent Adapter → Unified Proxy :18899 → Upstream Models
LayerComponentDescription
IM LayerFeishu / Telegram / WeCom / WeChatWebSocket / Long-poll / Webhook callback
Gateway LayerBot + AgentRuntimeMessage routing, session management, error handling
Agent LayerClaude / Codex / OpenCodespawn subprocess / HTTP API
Proxy LayerAnthropic Proxy :18899Unified proxy, all requests forwarded upstream