CodexClaw
by MackDing·★ 24·Score 40
Telegram bot for Claude Code and Codex CLI with MCP routing, multi-agent orchestration, cron jobs, and access controls.
Overview
CodexClaw is a sophisticated Telegram bot that connects to Codex through Node.js runtime with two backends: the Codex SDK and the legacy CLI/PTy path. It features task routing to the right execution surface, explicit tool handling through subagents, proactive automation via cron scheduler, and strict access controls with whitelist-only users. The bot separates Codex MCP responsibilities from Bot MCP responsibilities to avoid duplicate calls and extra latency. It supports interactive sessions scoped to chat + repo, manages bot-side MCP and GitHub subagents, and offers repository switching, status monitoring, and minimal frontend dev-server control directly from Telegram.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you need Telegram-based remote access to Codex with clean separation between coding tasks and explicit MCP tool calls, especially when working with multiple Git repositories.
When NOT to choose this
Not suitable if you need a general-purpose MCP server beyond Codex integration, or if you require write access to repositories (this bot only has read capabilities except through explicit GitHub actions).
Tools this server exposes
12 tools extracted from the README/mcp listList available MCP servers
/mcp statusCheck MCP server status
/mcp reconnectReconnect to an MCP server
/mcp enableEnable an MCP server
/mcp disableDisable an MCP server
/mcp toolsList tools available from an MCP server
/mcp callCall a tool from an MCP server
/gh commitCreate a git commit
/gh pushPush git commits to GitHub
/gh create repoCreate a new GitHub repository
/gh run testsRun tests in GitHub
/gh test statusCheck the status of a test job
Comparable tools
Installation
git clone https://github.com/MackDing/CodexClaw.git
cd CodexClaw
npm install
cp .env.example .env
# Configure minimum settings
BOT_TOKEN=123456789:telegram-token
ALLOWED_USER_IDS=123456789
STATE_FILE=.codex-telegram-claws-state.json
WORKSPACE_ROOT=.
CODEX_WORKDIR=.
CODEX_BACKEND=sdk
# Start the bot
npm run startFAQ
- What is the difference between SDK and CLI backends?
- The SDK backend uses Codex SDK threads and is preferred for new installs. The CLI backend uses PTy sessions and falls back to codex exec if node-pty cannot spawn on the host system.
- How does MCP routing work in this bot?
- Coding requests go directly to Codex (which can use its own MCP stack), while bot-side MCP is only used for explicit '/mcp' commands to avoid duplicate queries and extra latency.
Compare CodexClaw with
Last updated · Auto-generated from public README + GitHub signals.