weixin-openclaw-login
处理微信个人号接入 OpenClaw 的官方登录流程与排障。用于安装 `@tencent-weixin/openclaw-weixin`、获取新的二维码授权链接、查询扫码状态、修复 `openclaw-weixin` 卡在 `SETUP / no token`、以及整理微信 8.0.70+ 接入 OpenClaw 的说明文档。
Best use case
weixin-openclaw-login is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
处理微信个人号接入 OpenClaw 的官方登录流程与排障。用于安装 `@tencent-weixin/openclaw-weixin`、获取新的二维码授权链接、查询扫码状态、修复 `openclaw-weixin` 卡在 `SETUP / no token`、以及整理微信 8.0.70+ 接入 OpenClaw 的说明文档。
Teams using weixin-openclaw-login should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/weixin-openclaw-login/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How weixin-openclaw-login Compares
| Feature / Agent | weixin-openclaw-login | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
处理微信个人号接入 OpenClaw 的官方登录流程与排障。用于安装 `@tencent-weixin/openclaw-weixin`、获取新的二维码授权链接、查询扫码状态、修复 `openclaw-weixin` 卡在 `SETUP / no token`、以及整理微信 8.0.70+ 接入 OpenClaw 的说明文档。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# Weixin OpenClaw Login
这个 skill 用来安装、排查、记录微信个人号接入 OpenClaw 的官方登录流程。
## 快速流程
1. 安装或更新插件:
- `npx -y @tencent-weixin/openclaw-weixin-cli install`
2. 如果终端字符二维码不方便扫码,直接抓取原始二维码授权链接。
3. 让用户在电脑上打开二维码页面,用微信扫码。
4. 轮询扫码状态,直到出现 `confirmed` 或 `bot_token`。
5. 用 `openclaw status` 检查渠道状态。
6. 如果腾讯侧已经确认登录,但 OpenClaw 仍显示 `SETUP / no token`,检查本地状态文件 `~/.openclaw/openclaw-weixin/`。
## 优先使用脚本
优先使用本 skill 自带脚本:
- 获取新二维码链接:`scripts/get-login-url.js`
- 轮询扫码状态:`scripts/poll-login-status.py <qrcode>`
如果只需要快速人工操作,可继续使用下面的命令版步骤。
## 获取原始授权链接
插件源码表明,登录本质上是调用腾讯 ilink 接口并拿到一个真实的二维码页面 URL。
优先命令:
```bash
node scripts/get-login-url.js
```
脚本会打印:
- `qrcode_img_content`:真正应该在浏览器打开的二维码页面链接
- `QRCODE=...`:用于查询扫码状态的 token
如果不想用脚本,也可以直接执行:
```bash
node - <<'NODE'
const url='https://ilinkai.weixin.qq.com/ilink/bot/get_bot_qrcode?bot_type=3';
fetch(url)
.then(r=>r.json())
.then(j=>{
console.log(j.qrcode_img_content || '');
console.log('QRCODE=' + j.qrcode);
});
NODE
```
相比转发终端字符二维码,这种方式通常更稳。
## 查询扫码状态
推荐脚本:
```bash
python3 scripts/poll-login-status.py <qrcode>
```
例如:
```bash
python3 scripts/poll-login-status.py 1cf42ee545e62408992daa64b38a37d9
```
如果只想单次查询,也可以用命令方式:
```bash
python3 - <<'PY'
import urllib.request, json
qrcode = 'REPLACE_ME'
url = f'https://ilinkai.weixin.qq.com/ilink/bot/get_qrcode_status?qrcode={qrcode}'
req = urllib.request.Request(url, headers={'iLink-App-ClientVersion':'1'})
with urllib.request.urlopen(req, timeout=40) as r:
print(json.loads(r.read().decode()))
PY
```
常见状态:
- `wait`:还没扫码
- `scaned`:已经扫码,但还没最终确认
- `confirmed`:已确认登录
- 返回里还可能带:`bot_token`、`ilink_bot_id`、`baseurl`、`ilink_user_id`
只要出现 `bot_token`,就可以认定腾讯侧登录已经成功,即使 OpenClaw 本地状态还没立刻刷新。
## OpenClaw 本地把微信状态存在哪里
检查这些路径:
- `~/.openclaw/openclaw-weixin/accounts.json`
- `~/.openclaw/openclaw-weixin/accounts/<account-id>.json`
- 可选同步缓冲文件:`*.sync.json`
一个正常的账号文件通常长这样:
```json
{
"token": "<bot_token>",
"savedAt": "<timestamp>",
"baseUrl": "https://ilinkai.weixin.qq.com"
}
```
账号 id 一般会把 `@` 和 `.` 规范化成 `-`,例如:
- 原始:`4b22f436d38f@im.bot`
- 规范化:`4b22f436d38f-im-bot`
## 验证是否真正完成
执行:
```bash
openclaw status
```
成功时通常表现为:
- channel 是 `openclaw-weixin`
- state 是 `OK`
- detail 显示账号数量,而不是 `no token`
失败时通常表现为:
- `SETUP`
- `no token`
## 如果扫码成功了,但 OpenClaw 还显示 `no token`
1. 先确认轮询结果里已经出现 `bot_token`。
2. 再检查 `~/.openclaw/openclaw-weixin/` 下对应文件是否已写入。
3. 如果文件已经存在,重启 gateway:
- `openclaw gateway restart`
4. 再次执行 `openclaw status` 确认状态。
如果需要更底层的实现说明,读取 `references/implementation-notes.md`。Related Skills
openclaw-youtube
YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.
openclaw-search
Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.
openclaw-media-gen
Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.
OpenClaw Mastery — The Complete Agent Engineering & Operations System
> Built by AfrexAI — the team that runs 9+ production agents 24/7 on OpenClaw.
openclaw-safe-change-flow
Safe OpenClaw config change workflow with backup, minimal edits, validation, health checks, and rollback. Single-instance first; secondary instance optional.
jqopenclaw-node-invoker
统一通过 Gateway 的 node.invoke 调用 JQOpenClawNode 能力(file.read、file.write、process.exec、process.manage、system.run、process.which、system.info、system.screenshot、system.notify、system.clipboard、system.input、node.selfUpdate)。当用户需要远程文件读写、文件移动/删除、目录创建/删除、进程管理(列表/搜索/终止)、远程进程执行、命令可执行性探测、系统信息采集、截图采集、系统弹窗、系统剪贴板读写、输入控制(鼠标/键盘)、节点自更新、节点命令可用性排查或修复 node.invoke 参数错误时使用。
openclaw-stock-skill
使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。
openclaw-whatsapp
WhatsApp bridge for OpenClaw — send/receive messages, auto-reply agents, QR pairing, message search, contact sync
polymarket-openclaw-trader
Reusable Polymarket + OpenClaw trading operations skill for any workspace. Use when the user needs to set up, run, tune, monitor, and deploy an automated Polymarket trading project (paper/live), including env configuration, risk controls, reporting, and dashboard operations.
openclaw-version-monitor
监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明
searxng-tool-for-openclaw
Install an OpenClaw plugin that adds SearXNG-powered web search without paid search APIs.
cli-anything-openclaw
Adapt HKUDS CLI-Anything for OpenClaw workflows. Use when the user wants to build, refine, test, or validate an agent-native CLI harness for a GUI application or source repository inside OpenClaw, mentions CLI-Anything, or asks to apply the CLI-Anything methodology on a local path or GitHub repo.