Discover and explore top open-source AI tools and projects—updated daily.
huohuoerQuery local WeChat data for AI agents
New!
Top 66.8% on SourcePulse
This CLI tool provides local access to WeChat data, including chat history, contacts, and favorites, with a focus on integration into AI agents. It offers a secure, privacy-preserving method for querying personal WeChat data without cloud transmission, benefiting developers and power users needing programmatic access to their chat logs.
How It Works
The tool operates by accessing locally stored WeChat data, which is encrypted using SQLCipher. It extracts encryption keys by scanning the WeChat process memory during an init step. Subsequently, it performs on-the-fly, page-level AES-256-CBC decryption and caching, allowing direct querying of the SQLite databases. This approach ensures all data remains on the user's machine, enhancing privacy and security.
Quick Start & Requirements
npm install -g @canghe_ai/wechat-cli (Recommended, provides macOS arm64 binary).pip install wechat-cli (Requires Python >= 3.10).git clone ... && cd wechat-cli && pip install -e .task_for_pid errors, a process described in the README.Highlighted Details
Maintenance & Community
The project is actively maintained, indicated by the latest npm version badge. No specific community channels (like Discord or Slack) or details on major contributors/sponsorships are provided in the README.
Licensing & Compatibility
The project is licensed under the Apache License 2.0. This license is permissive and generally compatible with commercial use and linking within closed-source projects.
Limitations & Caveats
Compatibility is sensitive to specific macOS versions (≥ 26.3.1) and WeChat for Mac versions (≤ 4.1.8.100); newer or older versions may not function correctly. macOS users must navigate potential process memory access restrictions (task_for_pid errors) which may require re-signing the WeChat application. The tool is strictly read-only and does not automate actions or modify WeChat data.
2 weeks ago
Inactive
abhishekkrthakur
mattt
chathub-dev