yichen-wechat-local-vault

Decrypt and query local WeChat Mac 4.x databases and Windows plaintext snapshots.

Updated Sep 21, 2026
Ready to run
npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill yichen-wechat-local-vault-tangyixiao
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: yichen-wechat-local-vault
Source: https://github.com/tangyixiao/tangyixiao-skills/tree/main/yichen-wechat-local-vault
Command: npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill yichen-wechat-local-vault-tangyixiao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires frida, frida-tools, pycryptodome, zstandard, and includes scripts (resource) and references (resource) components.

What problem does it solve? WeChat stores chat history, contacts, moments, and favorites in encrypted local SQLCipher databases with no official export path, making personal archives, relationship reviews, and group digest writing impossible without manual scrolling. This Skill extracts the database keys, decrypts the databases into a private local vault, and provides a unified query CLI over the plaintext data. ## Core Features & Use Cases - Key Extraction and Decryption: Capture SQLCipher keys from WeChat Mac 4.x via Frida hooking, then run full or incremental decryption of message, contact, session, SNS, and favorite databases into a permission-locked local vault. - Unified Query CLI: Use vault_cli.py for status, sessions, unread messages, contacts, group members, history, keyword search, statistics, Markdown export, favorites, and moments queries with JSON or text output. - Group Digest Material Packs: Generate per-group digest-source packages with message statistics, speaker rankings, member profiles, and image-description extension points for writing daily summaries or group highlights. - Windows Snapshot Mode: Validate and query user-supplied decrypted Windows WeChat snapshots read-only via the snapshot subcommand, without touching Mac keys or triggering refreshes. - Use Case: Ask to export the full chat history with a specific contact, then incrementally refresh it weekly and generate a relationship review or follow-up draft from the exported Markdown report. ## Quick Start Use the yichen-wechat-local-vault skill to check my local WeChat vault status and export my recent chat history with a named contact to Markdown.

Frequently Asked Questions about yichen-wechat-local-vault

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export WeChat chat history from a Mac?▼

Run extract_keys.py to capture the SQLCipher keys, then decrypt_all_dbs.py to build the plaintext vault, and finally export_chat.py with --contact or --chat-id to write a Markdown transcript. Incremental mode exports only new messages since the last run.

How to search WeChat messages locally without opening the app?▼

Use vault_cli.py search with a keyword, optionally filtered by chat, time range, or message type, against the already-decrypted vault. The query entry point never touches the WeChat UI or captures keys.

Does this support Windows WeChat databases?▼

Windows support is experimental and read-only: it accepts user-supplied decrypted plaintext snapshots via the snapshot subcommand with validate, chats, history, search, and Markdown export. It does not extract keys, decrypt, or refresh on Windows.

Why does WeChat key extraction fail or miss some databases?▼

Key capture requires the ad-hoc signed WeChat copy to actually open the relevant pages, such as Favorites or Moments, during the Frida capture window. Rerun with --mode attach --reuse-log targeting only the missing databases.

What are the privacy limitations of a local WeChat vault?▼

The decrypted vault contains complete plaintext chat privacy and must stay in the private local application data directory with 0700 permissions. It should never be synced, copied to project workspaces, or pasted into chat replies; only user-requested export reports go to the export directory.