5-minute quick setup
đĄ TL;DR:
npm i -g botmuxâbotmux setupto scan a QR code and create the app, pick a CLI, fill in the working directory âbotmux startâbotmux autostart enableâ add the bot to a group and start chatting.
Step 1 ¡ Install
Requires Node.js âĨ 22, with at least one AI coding CLI already installed and signed in locally (claude / codex / cursor-agent / gemini / opencode / coco / agy, etc.). Installing tmux (âĨ3.x) is recommended â once installed, session persistence is enabled automatically.
Step 2 ¡ Configure (botmux setup)
An interactive wizard; just follow the prompts:
- New config: type
1and press Enter. (If you already have a config, type2to add a bot.) - Create a bot:
- Type
1â Create by QR code (recommended): scan with Lark, and a PersonalAgent app is created automatically with the AppID/AppSecret saved to disk; event subscriptions and bot capabilities are pre-configured by default. - Type
2â Create manually: go to the Lark Open Platform to create a custom enterprise app, then paste the AppID/AppSecret.
- Type
- Pick a CLI: choose the CLI to onboard this time (e.g. choose
1for Claude Code). - Default working directory: usually fill in the parent directory of your git projects (e.g.
~/projects); it searches up to 3 levels down. Try not to use~(it would have to traverse too many folders).
â Both Feishu (feishu.cn) and Lark (international, larksuite.com) are supported: when creating the app by QR code, the tenant type is detected automatically; when pasting manually, you can choose it. You can mix both on the same machine.
đ§ Creating by QR code auto-configures all permissions and publishes a version â no manual steps needed. Only if you add
botmux setup --no-open-platform-auto(skip auto-config) or create the app manually do you need to import the permission JSON yourself in the Open Platform (setup writes the full set to~/.botmux/lark-scopes.jsonand prints a one-click copy command) and create/publish a version; choosing availability "Visible to me only" gets auto-approved.
Step 3 ¡ Start
Step 4 ¡ Create a group and start chatting
- Create a topic group in Lark (regular groups are also supported).
- Group settings â Group bots â add the bot you just created.
- Send a message directly in the group, and the bot responds automatically â it pops up a repository selection card, and once you pick a project the CLI launches in that directory.
You can also DM the bot to start chatting directly, or use botmux dashboard and switch to the Group Tab to create a group with one click.
Not receiving messages? Self-check
Most "no messages" cases are local config or network issues, not a botmux bug. botmux already wires up an AI agent â so run a one-shot headless self-check with your CLI and let it read the logs, check the config, and give you a verdict.
First save the diagnostic task into a variable (single line, so you don't have to paste it repeatedly):
Pick one line for the CLI you have installed (all non-interactive; they print the verdict and exit):
The trailing flags (
--allowedTools/--yolo, etc.) just let the agent actually run commands and read logs â it's a read-only check.botmux logscan pinpoint almost any problem; it's the gold standard.
Still stuck? Check manually (usually local-side):
- Daemon not running / config changed without restart â
botmux status, thenbotmux restart. - Incomplete bot permissions / reusing a bot created from an old app (most common) â see Common Pitfalls; recreate via the latest
botmux setupQR flow. - Event subscriptions / bot capability (only needed for manually-created apps): in the Open Platform, subscribe to
im.message.receive_v1+card.action.trigger(long-lived WebSocket), and enable App features â Bot. - Network: the long-lived WebSocket can't get out (corporate network / proxy / firewall) â the agent will see the connection errors in the logs.
After confirming, run botmux restart. See FAQ / Troubleshooting for more.