@agent-wechat/wechat 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ OpenClaw channel plugin for WeChat. Polls the agent-wechat REST API for inbound
|
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
7
|
-
- [Docker](https://docs.docker.com/get-docker/) installed and running
|
|
7
|
+
- [Docker](https://docs.docker.com/get-docker/) installed and running (or a hosted agent-wechat instance)
|
|
8
8
|
- OpenClaw installed and configured
|
|
9
9
|
|
|
10
10
|
> **Note:** The agent-wechat container requires `SYS_PTRACE` and `seccomp=unconfined` (ptrace access to the WeChat desktop process). It cannot run in serverless or restricted container environments (AWS Fargate, Cloud Run, etc.) — use a VM or bare-metal Docker host.
|
|
@@ -56,6 +56,10 @@ docker compose up -d
|
|
|
56
56
|
|
|
57
57
|
If running alongside OpenClaw on the same Docker network, set `serverUrl` to `http://agent-wechat:6174` in the channel config below.
|
|
58
58
|
|
|
59
|
+
**Option C: Hosted instance**
|
|
60
|
+
|
|
61
|
+
If someone has provisioned a hosted agent-wechat instance for you, you'll receive a server URL and auth token. Skip to step 2 — just provide the URL and token during channel setup.
|
|
62
|
+
|
|
59
63
|
### 2. Install the extension
|
|
60
64
|
|
|
61
65
|
```bash
|
|
@@ -93,6 +97,8 @@ Or edit `~/.openclaw/openclaw.json` directly:
|
|
|
93
97
|
}
|
|
94
98
|
```
|
|
95
99
|
|
|
100
|
+
For local setups, the token is automatically read from `~/.config/agent-wechat/token` (shared with the CLI and container), so you don't need to set it in the config. For hosted instances, add the `token` field with the token you were given.
|
|
101
|
+
|
|
96
102
|
### 5. Run the gateway
|
|
97
103
|
|
|
98
104
|
```bash
|
|
@@ -109,6 +115,7 @@ All config lives under `channels.wechat` in OpenClaw's config file:
|
|
|
109
115
|
|-----|------|---------|-------------|
|
|
110
116
|
| `enabled` | boolean | `false` | Enable the WeChat channel |
|
|
111
117
|
| `serverUrl` | string | — | agent-wechat REST API URL |
|
|
118
|
+
| `token` | string | — | Auth token (required for hosted instances) |
|
|
112
119
|
| `dmPolicy` | `"open" \| "allowlist" \| "disabled"` | `"disabled"` | Who can DM the bot |
|
|
113
120
|
| `allowFrom` | string[] | `[]` | wxid allowlist for DMs (when policy is `allowlist`) |
|
|
114
121
|
| `groupPolicy` | `"open" \| "allowlist" \| "disabled"` | `"disabled"` | Group message policy |
|