wx-cli is a command-line tool for querying local WeChat data directly from a user’s machine. It is built as a Rust binary with a daemon architecture that keeps decrypted database data cached for fast repeated access. The tool can inspect conversations, chat history, unread messages, contacts, group members, group nicknames, favorites, statistics, exports, SNS feed items, public account articles, and image attachments. It is designed to be AI-agent friendly, with YAML output by default and optional JSON output for automation or downstream processing. The project keeps data local, decrypts in real time, and avoids full pre-decryption workflows. It is useful for users who need searchable, scriptable access to their own WeChat records while preserving local control over the data.
Features
- Local WeChat data querying
- Daemon-backed millisecond responses
- Conversation and full-history search
- Contacts and group member lookup
- YAML and JSON output modes
- Markdown and JSON chat export