Skip to content
Projects

About

在微信的转发菜单里,直接把聊天记录送到任何 App;也能把群聊和朋友圈批量文本化备份,附离线 HTML 预览。WeChat chat-history hand-off, text backup and offline preview for macOS.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+7
in 15 days
+15
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original
Dukou icon

Dukou (渡口)

Send chat history straight from WeChat's forward menu to wherever you need it.

A native, lightweight, entirely local WeChat chat-history hand-off for macOS.

It is also a compliant bulk text backup for WeChat chats and Moments: time-ordered TXT with the original photos and videos and an offline HTML preview, made with WeChat's own forward and export only — no database reads, no decryption, no injection.

简体中文 · English

macOS 14+ MIT License Follow @zerah_eth on X

WeChat 4.1.13's forward-to-other-apps menu, with Dukou's entries beside the system share services, each app shown with its own icon

Dukou overview: entry switches, quick WeChat forward, the shelf and history

Quick Moments forward settings and the offline HTML chat preview inside an exported ZIP

Background

Since WeChat 4.1.13 for macOS, a multi-selection of chat history can be merge-forwarded to third-party apps: WeChat itself packs the text, images and videos into one ZIP with a time-ordered TXT transcript. That is exactly what an AI agent needs to read a complete stream of a conversation, and it involves no database and no keys: the content only ever travels as the file WeChat exported.

The catch is that the "Other Apps" list in the forward window ("Forward to Other Apps" in WeChat 4.1.13) only shows apps that ship a share extension. Finder is not there, nor Terminal, nor Codex or Claude. Dukou puts them there, and each entry goes straight where it says:

Entry What it does
Stash in Dukou Lands on the shelf in a corner of the screen; drag from the icon into any app
Copy to Clipboard Just puts it on the clipboard; the ⌘V is yours
Send to Codex / Claude / any app One entry per app, with the app's own icon: brings it forward and pastes into its input. Codex and Claude are there from the start; add others in Settings → Entries

One step further, Quick WeChat forward and Quick Moments forward (experimental) do the selecting, exporting and pasting for you — just name what you want and how much of it.

Features

  • No interface in the extension. Pick an entry and the files just land; nothing appears on screen.
  • Entries you can switch off. Each entry is a separate system extension, toggled in Settings → Entries; removing an app removes its entry from the system too.
  • A shelf. A floating square in a screen corner that never takes focus; drag out and it is consumed, the files move to History.
  • History that cleans itself. Batches older than the retention window (7 days by default) go to the Trash and can be put back on the shelf.
  • Send to any app. Add an app in Settings → Entries and WeChat's menu gains a "Send to …" item with its icon; terminal-like apps can receive file paths instead.
  • Attached prompt. A prompt of your own is pasted before the files when sending to any app; keep up to three.
  • Failures have a way out. App missing, permission missing or app not in front: the files are already on the clipboard and can go to the shelf.
  • Quick WeChat forward (experimental). Name a group and a count; Dukou selects and merge-forwards in WeChat, then pastes the ZIP into the current app or saves it to a folder. Photos and videos are optional, batches past 100 can be combined into one ZIP, and ESC stops it — a stopped run can pick up where it left off.
  • Offline HTML preview. An index.html inside the ZIP for browsing the chat as bubbles in your browser: search, filter by date, view images, play audio and video.
  • Quick Moments forward (experimental). Export a number of recent posts as a time-ordered TXT with the photos and videos in the same ZIP. Downloading is slow; ESC stops it.
  • Resume and per-chat prompts. Each chat remembers its own prompt, and sending the same chat again asks for only the messages after the last export.
  • Markdown export. Saving a quick WeChat forward to a folder can produce a Markdown note with its attachments, ready for an Obsidian vault.
  • Bulk text backups. Save a quick forward to a folder and you have a backup: chats and Moments as time-ordered TXT, photos and videos if you want them, named by chat, time range and count.
  • Safe updates. Sparkle checks for signed releases and downloads only from GitHub Releases.
  • Simplified Chinese and English throughout.

What it does not do

  • No database reads, no decryption, no injection, no changes to WeChat. Chat content comes only from the ZIP WeChat itself exports.
  • No network, except checking for updates. Every entry is a sandboxed extension without network permission.
  • No private APIs. Switching apps and pressing ⌘V for you go through public system interfaces, behind a permission you grant.

Getting started

Requirements

  • macOS 14 or later
  • ChatGPT.app or Claude.app for the Send to Codex / Claude entries

Homebrew

brew install --cask qzz0518/tap/dukou

Update later with brew upgrade --cask dukou, or let the app offer the update itself through Sparkle.

DMG

Download the latest Dukou-*.dmg from Releases, open it and drag Dukou into Applications. Homebrew and Releases serve the same Developer ID-signed, Apple-notarized Universal 2 DMG.

First run

  1. Open Dukou. A four-step guide walks you through switching on the entries you want. Codex and Claude (when installed) and every app you add are on by default; Stash in Dukou and Copy to Clipboard are yours to switch on.
  2. Grant Accessibility if you want automated pasting. Skipping is fine; Dukou guides you again the first time a forward fails.
  3. In WeChat, select messages → Merge Forward → Other Apps → pick the entry.

Known issue

On some WeChat accounts, Quick WeChat forward and Quick Moments forward cannot read WeChat's interface and report that WeChat does not expose its controls for this account. Manual multi-select and forwarding to Dukou's entries are unaffected.

  • Symptom: Accessibility is granted, yet WeChat exposes only the window shell (the window, its three traffic-light buttons and the menu bar). The session list, chat title and messages are absent. Reinstalling, re-granting the permission, or changing macOS or WeChat builds does not help.
  • Cause: since WeChat 4.1, WeChat itself decides whether to expose its controls, and that state follows the WeChat account rather than Dukou or the system. On the same Mac with the same WeChat build, some accounts have a control tree and some do not; the Windows WeChat automation community has documented the same per-account split (pywechat #256, #276).
  • Status: looking for an approach that does not depend on the control tree.

Privacy

Data What Dukou does with it
The ZIP WeChat exports Kept as is in Dukou's own container; only dates and counts are read, for naming
The open chat's name With Accessibility granted, read once from WeChat's window when a forward arrives, to name the file and remember a prompt per chat; stored on this Mac only
Moments text and media Read only when you start a Moments forward, packed into a ZIP under the same retention as chats
Clipboard Files, the attached prompt, or the paths a terminal asked for
Network Software updates only, downloaded only from GitHub Releases
Sandbox Every entry runs sandboxed
Uninstalling Switch the apps' entries off in Settings → Entries before deleting Dukou, or delete ~/Library/Application Support/Dukou afterwards

Contributing

License

MIT

Explore related projects

Loading…