Credentials. Setup needs the one-time key copy from your WeChat app, which requires administrator access.
Who it is forA person who remembers a detail from an old chat, such as an address, a date, or a promise, and wants it fast.
The problemWeChat's own search is slow to scan old history, and scrolling through a long chat is tedious.
The outcomeA JSON Lines list of matching messages from that chat, with sender, local time, and text, plus a cursor if more results exist.
What you need first
- A Mac with Apple silicon running macOS 14 or later
- WeChat installed and running on that Mac
- Administrator access for the one-time key setup
- Homebrew, or the DMG or ZIP from the Releases page
- A coding agent such as Claude Code, Codex, or Gemini CLI, if you want agent-written notes
Steps
- Run
brew tap bojieli/greenbubbles https://github.com/bojieli/greenbubbles.git - Run
brew install bojieli/greenbubbles/greenbubbles - Run
greenbubbles chats find "Alice"to confirm the chat name - Run
greenbubbles messages search --conversation "Alice" --query "keyword" - If the output says
hasMore: true, run the same command with--cursorset to thenextCursorvalue
Prompt for your agent
Use the greenbubbles CLI from the repo bojieli/greenbubbles to search one chat. Run `greenbubbles messages search --conversation "<chat name>" --query "<keyword>"` and report the matching messages as JSON Lines. Verify that every returned message has its chat name and local time before you summarize it.
Caveat. Setup requires the key capture from your running WeChat app, and the README says WeChat may change its private formats, so an update can break reading.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for bojieli/greenbubbles and "Find a past message in one WeChat chat by keyword"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer