# huohuoer/wechat-cli

A CLI tool to query your local WeChat data — chat history, contacts, sessions, favorites, and more. Designed for LLM integration.

Repository: https://github.com/huohuoer/wechat-cli
Canonical: https://ross.abutalabs.com/products/wechat-cli
Homepage: https://wesight.ai/
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-04-06T01:52:04+00:00

## Health v2 (maintenance only)
Score: 48/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 75, release rhythm 35, longevity 10
- inputs: {"age_days": 147, "days_push": 150, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2035, forks 1730 (observed 2026-08-28T04:06:07.829843+00:00)

## What it is
A command-line tool that queries local WeChat data including chat history, contacts, sessions, and favorites, with on-the-fly SQLCipher decryption that keeps data fully local. It outputs JSON by default and is designed for LLM agent tool-call integration.

## Use cases
- query my wechat chat history from the terminal
- search wechat messages for a keyword
- export wechat chat logs to markdown
- get statistics on my most active wechat contacts
- let an AI agent read my wechat messages
- list unread wechat messages and sessions

## When to choose
- you want programmatic or LLM-agent access to your local WeChat data
- you need chat analytics like top senders or activity charts
- you want to export conversations to Markdown or text with time filters
- you prefer data staying fully on your machine

## When to avoid
- you need a graphical WeChat backup tool
- you want to send or modify WeChat messages rather than read data
- you need a supported binary for platforms other than macOS arm64 and cannot use pip
- you are not the owner of the WeChat account whose data you query

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, search-engine, data-science, developer-tools, llm-inference
- domain: messaging-platforms, developer-tools, privacy, large-language-models
- platform: windows, cli, python
- tags: wechat, chat-history, sqlcipher, local-data, llm-agent-tools, -output, data-export, command-line, macos, linux, nodejs

## Member repositories
- huohuoer/wechat-cli (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:07.829843+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:59:21.749525+00:00, confidence not recorded.
  - readme: https://github.com/huohuoer/wechat-cli (fetched 2026-08-28T04:06:07.829843+00:00, sha 23c8162afe9d)
  - homepage: https://wesight.ai/ (fetched 2026-08-29T10:39:06.129787+00:00, sha 77eb2516d8ba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
