botmux

Remote-control your AI coding CLI from Lark. One message starts a session, and every session gets its own CLI process.

botmux is a bridge. It runs a background service (the daemon) on your dev machine that listens to Lark messages:

  • Each new topic gets its own AI coding CLI (30+ supported, including Claude Code, Codex, Cursor, OpenCode, and Antigravity)
  • Every turn of CLI output is streamed live into a Lark streaming card
  • When you want to take over, a card button opens the Web Terminal, so you can drive the same CLI from a browser or phone

Whether you're on your phone, at your desk, or in a terminal, you're looking at the same session.

5-minute start

curl -fsSL https://raw.githubusercontent.com/deepcoldy/botmux/master/install.sh | sh
botmux setup     # scan a QR code to create the Lark app → pick a CLI → pick a working directory (permissions and release are configured for you)
botmux start     # start the daemon; run botmux autostart enable to start on boot

Then DM the bot, or open the management page with botmux dashboard and create a group to start chatting.

  • What you install is a self-contained single-file binary that doesn't need Node on the machine. It supports Linux / macOS (x64 / arm64); on Windows, use WSL2
  • Prefer npm? npm i -g botmux works too and ships the same binary
  • On a Mac you can also install the macOS Desktop App to start and stop the service, open the Dashboard, and read logs with a click
  • To upgrade later: botmux update, or rerun the curl command above (releases older than v3.18.0: curl only), then botmux restart

For the full walkthrough (Lark international, manual permission setup, troubleshooting), see Quick start.

What problems it solves

Your painWhat botmux does
The CLI runs on your dev machine, so you can't see or steer it when you're awayEach turn is pushed to a Lark card; check, follow up, or interrupt from your phone, and open the Web Terminal when you need hands-on control
The CLI has no idea what's happening in LarkAdd the bot to a group and @ it to start working in your local codebase; /relay moves a running session (same CLI process, same AI memory) to another group so you can keep going there
One agent isn't enoughPut several bots backed by different CLIs in one group and @ whoever should do the work, e.g. have Claude Code and Codex review the same change

Common features

I want to...See
Understand the live-updating card and its buttonsStreaming cards
Drive the CLI from a browser or phoneWeb Terminal
Have several bots in one group split the workMulti-bot collaboration
Split a big task into parallel topicsMulti-topic orchestration
Pin a card in the group that tracks a project's goal, to-dos, and sub-tasksProject Progress Card
Hand dev tasks to a steward and collect everything you need to decide in one placeDecision Board and Steward
Bring a CLI already running in a local terminal into LarkSession adopt (/adopt)
Move a session to another groupSession relay (/relay)
Run tasks on a schedule (alert analysis, group digests, etc.)Scheduled tasks
Trigger tasks from an external systemWebhook · API task trigger
Run sessions from scripts or CI without a Lark groupHeadless Automation Sessions
Ask the AI directly in Lark doc commentsDoc comment watching
Let anyone in an on-call group @ the bot for answersOn-Call Mode
Switch CLIs, or pick a CLI for one sessionCLI adapters
Manage bots, sessions, and config in a web UIDashboard · Global Settings
Watch several sessions' progress and terminals at onceAgent Workbench
Manage several machines in one website, open Dashboards and terminals from anywhere, and work with a teamCentral Platform (open source)

More: Roles & teams · File sandbox · Voice summary · Local whiteboard · Persistent tmux sessions · Feedback storage · Model Proxy (experimental) · Slash commands · CLI commands · Architecture overview · Best practices

Design philosophy: bridge the CLI, don't rebuild the agent

botmux does not reimplement agent capabilities. Memory, context management, tool calls, permissions, plan mode, / commands, and MCP are left to the CLI itself. When a CLI upgrades, most new capabilities just work in botmux (only when a CLI changes its flags, output format, or resume behavior does the matching adapter need an update).

Just write in plain language. The daemon wraps your message and the system instructions separately in a structured format (XML tags) before handing them to the CLI, so you never have to write any special format yourself.

Compared with approaches "rebuilt on top of an Agent SDK", the difference is mainly in how things are integrated:

AspectbotmuxAgent SDK-based approach
What gets bridgedThe full CLI process, with its own hooks / memory / plan mode / MCP / / commandsWhatever the SDK exposes
CLI upgradesMost capabilities benefit directlyDepends on the SDK version and your integration
Memory / contextUses the CLI's built-in memoryDepends on the SDK or your own build
Multiple CLIs30+ adapters, switch with one config changeDepends on SDK coverage
Multiple botsSeveral bots in one group, dispatched by @Depends on implementation
Direct terminal accessWith the tmux backend, tmux attach into the real CLI processDepends on implementation

➡️ Next: Quick start

Project: https://github.com/deepcoldy/botmux