nextcaicai2k downloadsWeChat messaging bridge: send and receive messages, attachments, and articles between WeChat and your vault.
中文 · English
An Obsidian desktop plugin. It sends and receives messages through Tencent’s official ilink bot gateway. It does not modify the WeChat client, does not require following any official account or mini program, and does not pass through the author’s own server.
Scan to bind your own WeChat account, then send text, images, voice, files, and official-account article links to the WeChat Clawbot. They land in your Obsidian vault.
#单独保存, the body starting on the next line is saved as its own note. The daily conversation note keeps only a link..md file is sent as text (headings, lists, bold, and code blocks are supported). Images, videos, and documents are sent as attachments (≤100MB).Agent.md in the inbox folder. After reading it, an Agent can send WeChat messages through the outbox. See Agent.md for the protocol.This project is a fork of Wechatian, with these enhancements:
#单独保存, then plain text sent to the WeChat Clawbot is saved as its own note instead of mixing into the daily log.The community plugin ID is welink (this cannot be changed). After install, Obsidian loads manifest.json, main.js, and styles.css from <Vault>/.obsidian/plugins/welink/. The display name is WXLink.
If your vault already has a WeLink/ notes tree, the plugin keeps using it until you create WXLink/ or change the paths in settings.
| Method | Who it is for | What it does |
|---|---|---|
| Method 1: Let an Agent install | You already use Cursor, Claude, or a similar Agent | Copy the prompt below, fill in your vault path, then paste it to the Agent |
| Method 2: Releases | You just want to use it | Copy the three built files into the plugin folder |
| Method 3: BRAT | You want updates from the repo | BRAT (Beta Reviewers Auto-update Tester) pulls this repository |
| Method 4: Build from source | You are developing or packaging it yourself | Compile locally, then copy into the vault |
Method 1: Let an Agent install
Copy the whole prompt below, replace REPLACE_WITH_YOUR_VAULT_PATH with your Obsidian vault directory, then paste it to the Agent:
Install the WXLink Obsidian plugin (https://github.com/nextcaicai/WXLink) into my Obsidian vault.
My Obsidian vault directory is:
REPLACE_WITH_YOUR_VAULT_PATH
Install it into .obsidian/plugins/welink/ under that directory. Install only manifest.json, main.js, and styles.css; the three files must sit directly in the welink folder, with no extra nested directory.
Do not modify my notes. Do not delete other plugin folders. Do not read, print, or commit secrets (including state.json and data.json).
When finished, tell me where the files were placed, whether I should reload the plugin or restart Obsidian, and how to scan and bind WeChat.
Method 2: Install from Releases
main.js, manifest.json, and styles.css.<your-vault>/.obsidian/plugins/welink/ (the three files sit directly in that folder — do not nest another directory).Method 3: Install with BRAT
https://github.com/nextcaicai/WXLink.Method 4: Build from source
git clone https://github.com/nextcaicai/WXLink.git
cd WXLink
npm install
OBSIDIAN_PLUGIN_DIR=/path/to/vault/.obsidian/plugins/welink npm run build
If OBSIDIAN_PLUGIN_DIR is not set, the build only writes main.js at the repo root and does not touch any vault.
About five minutes. Button labels below match the English UI.
Command palette commands: Connect WeChat, Disconnect WeChat, Re-scan QR code to log in, Open today's inbox.
Default folders, all changeable under Files and sending:
WXLink/
├── Agent.md # outbox instructions for Agents (plugin-maintained)
├── 2026-10-17.md # daily conversation note (received / sent)
├── notes/ # plain-text notes saved via the standalone note trigger
├── articles/ # official-account / web article notes
│ └── <account>/
│ ├── 2026-10-17 Some title.md
│ └── assets/ # images that belong to that account's articles
├── attachments/ # chat images, files, videos, voice
└── outbox/ # write a file here to send it to yourself
Content sent to the bot lands in WXLink/YYYY-MM-DD.md: timestamped, marked received/sent, body in a quote block, media as ![[...]].
Daily conversation notes stays on unless you turn it off. Off means the dated note is not created or updated. Ordinary text is not saved. Articles, attachments, and standalone notes still import; a standalone note does not leave a link in a daily note.
| You send | Result |
|---|---|
| Ordinary text | Appended to the daily conversation note |
Plain text whose first line is #单独保存 |
Trigger stripped; saved under WXLink/notes/; daily note keeps a link |
| Image / video / file / voice | Decrypted into WXLink/attachments/ and embedded in the daily note; voice is transcoded to playable WAV when possible |
| A message with http(s) links | Also fetched as article notes when possible |
Standalone notes can contain links: URLs are preserved without fetching webpages, taking priority over the When a message contains links setting. Messages with attachments keep the normal import path. The trigger must match the whole first line; you can change it in settings.
Article fetching is on by default. When a message contains links defaults to Fetch webpages and save as articles. Choose Save original message without fetching to preserve messages containing both text and links without fetching webpages. Messages consisting only of one or more URLs separated by spaces or newlines are still fetched automatically. At most 5 links per message are processed. Official-account articles can be grouped into a folder per account (optional). Fetching uses a standalone HTTP request and does not reuse your browser login. Public articles usually come through; some pages return a verification screen, and the note may show “Allow / Scan with WeChat” instead of the article. Retry with the original link, or turn off Fetch article info.
Always reply on receipt is on by default: after a message is recorded, the bot sends a confirmation (for example, where an image or article was saved). Heavy traffic may hit the gateway rate limit; turn this off in settings if needed.
This is a one-to-one channel to yourself: no recipient is specified. Every file goes to the WeChat account that scanned to bind. Do not call any HTTP API; the file channel is the whole interface.
Write one file into WXLink/outbox/:
| File in the outbox | Result |
|---|---|
notify.md (any text) |
Sent as a text message, Markdown supported; keep it to about one phone screen |
Image .jpg/.png/.gif/.webp, video .mp4, document .pdf/.docx/… (≤100MB) |
Sent as an attachment |
The plugin consumes the outbox on its next poll (about 30–60 seconds). Delete outbox originals after sending is on by default:
attachments/ and is linked)..md gets a trailing <!-- WXLink send failed: ... --> comment; media gets a sibling .wxlink-failed.md with the reason.To send a retained file again, change its content or use a new file name. Turning deletion back on does not remove files that were kept earlier.
Unknown extensions stay in the outbox and are not sent.
Point the Agent at WXLink/Agent.md in the vault (use the path from settings). It explains which folder to write, how to judge success, where to read your reply, and the rate limit. The full protocol is in Agent.md.
Use this channel for notifications (a job finished) and decisions (send a question with options, you reply in one line), not for chat. The gateway rate-limits proactive sends to a handful per day.
state.json in the plugin folder (token, cursor, send credentials, and similar). Settings live in data.json in the same folder. Do not commit these files or share them.https://ilinkai.weixin.qq.com: scan, long-poll receive, send (the gateway may also return a dedicated base URL)https://novac2c.cdn.weixin.qq.com/c2c: images, videos, files, voiceIf Obsidian is closed, do messages sent to the bot get lost? Not immediately. They are picked up the next time you open Obsidian and connect. How long the gateway keeps them is not documented; treat very old offline messages as best-effort.
Why can’t I send right after scanning? Send any message to the bot from WeChat first. The settings error says you do not have a send credential yet.
Does it work in Obsidian mobile? The plugin itself is desktop-only. It writes plain Markdown, so iCloud / Obsidian Sync / Git can let you read on a phone, but you cannot send or receive from mobile.
Why didn’t a forwarded article or file arrive? Known ilink bot limitation: forwarded articles and files may not arrive. Send the original link, or send the file itself.
Do voice messages include a transcript? If WeChat sends a transcript with the voice message, it is written into the daily note. The audio is also saved as playable WAV. If WeChat does not send text, this version does not send the audio to another recognition service.
What if the session expires? The status bar shows session expired. In settings, click Re-scan, confirm, then send the bot a message from WeChat again so sending unlocks.
Issues and PRs are welcome. Please include:
0.2.5) and Obsidian versionDevelopment commands:
npm test # build, then run unit tests
npm run lint
npm run build