@newfuture

WeChat

Community-maintained WeChat (微信 / Weixin) channel plugin for OpenClaw using the iLink bot API.

Current version
v3.3.0
code-pluginCommunitysource-linked

openclaw-wechat

<!-- docs-site:repo-only:start -->

简体中文 · Documentation site

<!-- docs-site:repo-only:end -->

Bring OpenClaw into WeChat

A community-maintained WeChat channel plugin for OpenClaw, available from npm and ClawHub. Requires OpenClaw >=2026.6.1 (compatibility matrix).

<a id="connect-wechat"></a>

Choose an installation method

Copy the prompt or Run a command

<!-- registry-prompt:start -->

<a id="agent-install"></a>

Let OpenClaw complete the installation

Paste this prompt into an OpenClaw chat and send it:

Use the official OpenClaw CLI to install/update the community-maintained WeChat plugin to the latest version in the background, non-interactively: update existing installations from their current source without reusing an old version number; for new installations, prefer clawhub:openclaw-wechat and use npm:openclaw-weixin only if that source is unavailable.
Preserve configuration and login state, handle confirmations in chat, and verify the version at the end.
<!-- registry-prompt:end -->

<a id="direct-install"></a>

Run a command directly

Community plugin previously installed with one of the ClawHub or npm commands below: run openclaw plugins update openclaw-weixin.

First installation, replacing Tencent's official package, or an existing plugin installed from another source: choose one installation command below; do not uninstall first. When replacing an existing plugin, add --force to the chosen installation command. Configuration and login state are preserved.

<!-- registry-source:clawhub:start -->

<a id="clawhub-source"></a>

ClawHub: openclaw-wechat

<a id="clawhub-cli-install"></a>

openclaw plugins install clawhub:openclaw-wechat
<!-- registry-source:clawhub:end --> <!-- registry-source:npm:start -->

<a id="npm-source"></a>

npm: openclaw-weixin

<a id="npm-cli-install"></a>

openclaw plugins install npm:openclaw-weixin
<!-- registry-source:npm:end -->

If this OpenClaw instance already has a WeChat login, you usually only need to confirm the connection after installation. For a new installation, open the full check and scan the QR code. Use it as well when installation fails, the connection does not return automatically, or you need to confirm the intended account.

<details id="verify-connection" class="full-check"> <summary>Full check, QR login, and recovery</summary>

The install command reports an incompatible version

Check only when installation reports an incompatible version:

openclaw --version

The plugin requires OpenClaw >=2026.6.1. If the host is too old or Nix mode disables installation, do not uninstall the existing plugin. Follow the installation limitations and troubleshooting.

The connection does not return after installation

Installation can automatically reload a managed Gateway with configuration reload enabled. If it remains disconnected, restart the service, container, or pod that actually runs OpenClaw, then run:

openclaw plugins list
openclaw channels status --probe

You are connected when all of these are true:

  • openclaw plugins list shows the plugin enabled with no load error.
  • openclaw channels status --probe succeeds for the intended WeChat account.
  • With multiple accounts, the result belongs to the alias or account ID you intend to use.
ResultNext action
Plugin is disabledRun openclaw plugins enable openclaw-weixin, reload the Gateway, then probe again
Plugin has no load error and the intended account passes the probeYou are done
Account is not logged inContinue to QR login below
Channel shows OK but does not connectFollow connection troubleshooting to reload the actual runtime

<a id="bind-account"></a>

The status reports no login

Run this only when the probe reports that the intended account is not logged in:

openclaw plugins enable openclaw-weixin
openclaw channels login --channel openclaw-weixin

The login command displays a QR code in the terminal. Scan it, wait for login to finish, then run:

openclaw channels status --probe
</details>

Multiple accounts

Before using multiple WeChat accounts, consider isolating direct-message context by account + channel + sender:

openclaw config set session.dmScope per-account-channel-peer

This is a global OpenClaw session setting that affects every channel. It does not change account login; it controls how subsequent direct messages are assigned to sessions.

Run the login command again to bind another WeChat account. Prefer a stable alias per number so openclaw.json / bindings can use a readable accountId instead of only the server hash:

openclaw channels login --channel openclaw-weixin --account alice
openclaw channels login --channel openclaw-weixin --account bob
<details> <summary>Account IDs and state files</summary>

A successful login writes:

  • openclaw-weixin/accounts/<normalized ilink_bot_id>.json (credential + state namespace; listAccountIds / monitors use only this id)
  • openclaw-weixin/account-aliases.json (1:1 alias → hash map for bindings / outbound resolution; aliases never start a second transport)

Without --account (the host passes its default sentinel), only the server bot id is indexed; a default account file is never created. Re-running login --account <alias> against an already-bound hash-only install records an alias mapping when unambiguous, without an online rename or state-namespace move.

Credentials, account IDs, and context tokens are sensitive. Do not share state files from ~/.openclaw/openclaw-weixin/.

</details>

Proactive and scheduled sends

The WeChat backend requires every outbound message to carry an account-scoped context token issued by an inbound message from that recipient. The plugin stores the token under the receiving account:

  • If the recipient has not messaged the bot or the token is missing, the plugin refuses delivery instead of returning a local success result.
  • A stored token can still become stale. If a send fails after a long idle period, ask the recipient to message the corresponding bot once to refresh the token, then retry.

Scheduled jobs in multi-account deployments should explicitly set both delivery.to and delivery.accountId. Without accountId, delivery proceeds only when account-scoped context selects exactly one account; missing or ambiguous context fails. Context tokens are sensitive: never copy them between accounts or put them in job configuration.

Documentation and support

Source and release

Source repository

NewFuture/openclaw-weixin

Open repo

Source commit

6e8b84f0f09f171472325fb8257810f32c4b055d

View commit

Install command

openclaw plugins install clawhub:openclaw-wechat

Metadata

  • Package: openclaw-wechat
  • Created: 2026/08/10
  • Updated: 2026/10/16
  • Executes code: No
  • Source tag: refs/tags/v3.3.0

Compatibility

  • Built with OpenClaw: 2026.10.3
  • Plugin API range: >=2026.6.1
  • Tags: latest
  • Files: 103