Rove

WeChat (微信)

Check on Rove and hand it work from the WeChat app on your phone.

You bind a WeChat bot to Rove once by scanning a QR code. After that, what you write goes to your own agent, running on your preferred coding harness with the rove skill, which answers you on WeChat. Commands such as /status get a direct answer from Rove. Rove itself never messages you unprompted: no task status or decision alerts. Everything else you get comes from the agent.

The bot uses Tencent's iLink Bot API, the same one the official @tencent-weixin/openclaw-weixin plugin uses. Rove talks to it directly; no other gateway process is involved.

What this needs

  • A personal WeChat account on your phone.
  • A running Rove daemon. Messages are fetched by the daemon, so nothing arrives while it is stopped. The TUI starts it; on a machine without the TUI open, run rove daemon start (it runs in the foreground — use a terminal multiplexer or a service manager to keep it up).

While a binding exists, the daemon does not stop itself when the last TUI closes, so it keeps answering. rove weixin logout removes that hold.

Bind

$ rove weixin login
Scan with WeChat (微信 → 扫一扫), then confirm on the phone:
█▀▀▀▀▀█ ▄▀ █▀▀▀▀▀█
…
Or open: https://…
Scanned — confirm on your phone…
Bound. Send the bot `/help` from WeChat to try it.
  1. Run rove weixin login in a terminal.
  2. In WeChat, open 扫一扫 and scan the code. If the terminal cannot draw it, open the printed URL and scan that.
  3. Confirm on the phone.

The code expires after a few minutes; Rove fetches a new one up to three times, then gives up. Run login again to re-bind, for example after WeChat ends the session. A daemon that is already running picks up a new binding within a few seconds; no restart is needed.

The WeChat account that scanned is the owner and is the only sender Rove answers by default.

Your WeChat agent

Plain text is a conversation with your own agent, not a command. The first plain message creates it: a directory task in ~/.rove/weixin/agent, pinned and shown as its own WeChat project in the sidebar, running your preferred engine (the one rove . would start). Its first message tells it who it is, that it has the rove skill and rove api, and to reply with rove weixin send (the bridge does not read its screen). Your words arrive prefixed [WeChat].

Pictures, files and videos work too. Rove downloads and decrypts each one into ~/.rove/weixin/inbox/, and it reaches the agent as a line such as [image: ~/.rove/weixin/inbox/2026-10-28-123.png] that the agent opens. A message that quotes a picture brings the picture along. If a download fails, the chat says so and the message's text is still delivered.

It holds one conversation at a time:

MessageWhat happens
anything without a leading /goes to the live conversation; a dead engine is restarted for you. The chat shows 对方正在输入 while the agent's turn runs, and clears when it ends
/new (or /new <text>)opens a new conversation, a new engine tab in the same project; earlier ones stay as tabs you can open in Rove
/status, /gates, /send …, /help …the commands in the next section, answered by Rove directly
$ rove weixin agent                 # the agent's task, live conversation, and every conversation
$ rove weixin agent 0042 [tab-2]    # use an existing task instead (an id or the code status prints)
$ rove weixin agent off             # back to the WeChat project

What you can send

Commands start with / (/status, /send 0042 rebase); the table leaves the slash out. Without it the message goes to your agent.

MessageWhat happensSame as
status (or s, 状态)Counts first, then the tasks that need you, are ready to merge, are ready for review, and are runningrove api context
status <repo>The same, for one reporove api context --repo
send <id> <text>Types <text> into the task's engine tabrove api send --task-id <id> --plain
send <id> tab-2 <text>Into that tab… --tab tab-2
add <repo> <prompt>Starts a new task in that repo with the repo's default enginerove api add --repo <repo> --prompt
gates (or decisions, 决定)Every open decision a task is waiting on: the question, each option's key and label, and the recommended onerove api gates
answer g-12 bAnswers decision g-12 with option brove api gate-answer --gate g-12 --option b
answer g-12 b ship it after lunchThe option plus a note for the agent… --text "ship it after lunch"
answer g-12 - use the second approachFree text on a decision that has options (- stands in for the key)… --text …
answer g-12 call it NightlyOn a decision with no options, everything after the id is the answer… --text …
clear d-41Dismisses the unreported-tick flag status lists, so that task can be ticked againrove api attention-dismiss --delivery d-41
help (or 帮助)The command list

<id> is the six-character code status prints in front of each task (the end of its task id). Four or more trailing characters work as long as they match one task; if they match several, the reply lists them.

<repo> is the repository's directory name, such as rove for ~/code/rove. It must be a saved project or a repo that already has tasks. When two repos share a name, the reply asks for the full path.

answer checks the key against the decision's options before anything is sent: a key that is not one of them, or an id that is not open, comes back as a reply listing what is valid. Keys match without regard to case; g-12 can also be written 12. The answer is recorded as coming from WeChat. When the task's engine is not running, the reply says so and the answer rides the task's next message, as with rove api gate-answer.

send and add go through the same code as the rove api verbs, so a refusal there is the reply here, for example Failed (ENGINE_NOT_RUNNING): … has no live engine process.

Replies are kept short for a phone. A long reply is split into at most three messages; anything beyond that is cut and the last message says how many lines were dropped.

Push a message from a script or agent

rove weixin send "deploy finished"
rove weixin send --subject "[nightly]" --file report.md
rove weixin send --attach chart.png --attach weekly.md "this week"
some-check | rove weixin send

The message goes to the owner who scanned the QR code. It follows the 24-hour rule (below): outside that window nothing is sent, the text goes to undelivered.jsonl, and the command exits 1. send talks to iLink itself, so it works without the daemon running.

--attach <path> (repeat it for several) sends a file as its own message after the text: .png .jpg .jpeg .gif .webp .bmp as a picture, .mp4 .mov .m4v as a video, anything else (a .md, a PDF, a zip) as a file attachment, up to 100 MB each. --file is different: it reads that file's text and sends it as the message. Your WeChat agent is told to use --attach when it has a picture or file for you.

Routines can reach you too, through the agent: create one with --notify and each run's report goes to your WeChat agent (see Routines).

What Rove sends on its own

Nothing. Rove does not push task status (needs you, ready for review, ready to merge) or new decisions to WeChat; check those with /status and /gates.

The one thing that runs in the background is the routine hand-off. Every 20 seconds the daemon looks for new runs of routines created with --notify: a run's response once it exists, and any run that needs you (script failed, dispatch failed, …) with its error. Each one goes to your WeChat agent's live conversation as a message headed [Routine <name> #<run>], creating the agent if it does not exist yet. The agent decides whether it is worth telling you and writes the message itself. Runs from before the daemon started are not handed over.

The 24-hour limit

iLink only accepts a bot-initiated message once the person has written to the bot, and the session behind it goes stale. Rove applies its own rule on top: rove weixin send sends only if the owner messaged the bot in the last 24 hours. Otherwise the message is written to ~/.rove/weixin/undelivered.jsonl instead, the command exits 1, and rove weixin status shows the count and the latest reason. Any message to the bot (even /s) opens the window again.

The same log gets messages iLink refused, such as an expired session after Rove has already retried once without the stale session token.

Letting other people in

Messages from anyone other than the owner and the people you allow are dropped without a reply. rove weixin status lists the most recent refused senders by WeChat user id:

$ rove weixin status
Bound to bot 1a2b3c4d5e6f@im.bot since 2026-10-04T12:00:00.000Z
Daemon: running
Owner: o9xQ2mfE7rT@im.wechat
Allowed: owner only
Reply windows:
  o9xQ2mfE7rT@im.wechat  last message 3m ago — open
Refused senders (`rove weixin allow <id>` to let one in):
  wx7Lp3KdZ0a@im.wechat  1h ago
rove weixin allow <user-id>   # this person can now send commands
rove weixin deny <user-id>    # and no longer can

Unbind

rove weixin logout

This deletes the credentials and the long-poll position. The undelivered log stays.

Limits

  • Voice messages reach the agent only when WeChat attaches a transcript, and the bot cannot send voice messages.
  • Nothing cleans ~/.rove/weixin/inbox/; received files stay until you delete them.
  • Direct messages only. A QR-bound bot is usually not delivered group chat events, so Rove ignores them.
  • One bot per Rove home. login with a different WeChat account replaces the binding.
  • Routine runs are picked up every 20 seconds, so a report can take up to about half a minute to reach the agent.
  • Replies are in English.

Where things live

Under ~/.rove/weixin/ (or $ROVE_HOME_DIR/.rove/weixin/), directory mode 0700, files 0600:

FileWritten byHolds
account.jsonrove weixin login/allow/denybot id, bot token, owner, allowed users
state.jsonthe daemonlong-poll position, the latest session token and last-message time per sender, refused senders
undelivered.jsonlthe daemon and rove weixin sendmessages that could not be sent, one JSON object per line

The bot token is never written to the daemon log. Daemon log lines that mention a WeChat id show only its first eight characters.

Where the code lives

The channel is its own workspace package, packages/rove-weixin: the iLink client, QR login, the state files above, command handling, message formatting and the routine hand-off. It is bundled into the rove CLI at build time, so npm i -g @sma1lboy/rove includes it; it is not published on its own.

Rove itself only defines a generic chat-channel contract (packages/rove/src/channels/chat-channel.ts) and a registry that names the channel package (packages/rove/src/channels/registry.ts). The daemon starts every registered channel after it is listening and stays up while one asks it to. Dependencies point one way: rove-weixin uses Rove's public pieces (the daemon client, rove api verbs, the context snapshot); Rove never imports its internals.

bun --filter rove-weixin test        # protocol, routing, media and routine hand-off tests, against a fake iLink server
bun --filter rove-weixin typecheck

Testing against a fake server

ROVE_WEIXIN_BASE_URL points rove weixin login at another iLink endpoint; the binding then keeps whatever base URL that server confirms. The repo ships a fake one for development:

PORT=18733 bun packages/rove-weixin/test/fake-ilink.ts &   # confirms any login
cd packages/rove
ROVE_WEIXIN_BASE_URL=http://127.0.0.1:18733 bun dev:sandbox --name wx run weixin login
bun dev:sandbox --name wx run daemon start &
curl -s localhost:18733/_inject -d '{"text":"status"}'   # a message from the owner
curl -s localhost:18733/_sends                            # what Rove replied

Checking a real phone

  1. rove weixin login, scan, confirm. rove weixin status shows Bound and the owner id.
  2. With the daemon running, send /s to the bot. The reply starts with a count line such as Nothing needs you. 2 running.
  3. Send /send <id> say hi for a task from that list. The text appears in that task's engine tab and the bot answers Sent to <id> ….
  4. From another WeChat account, message the bot. Nothing comes back, and the id appears under Refused senders in rove weixin status.
  5. rove weixin logout. Within one poll (up to 35 seconds) the daemon log shows weixin: unbound — stopped polling.

On this page