◉ Pulse
Leobai03 avatar
#36 today ▲ 4

Leobai03/wechat-group-daily

Python AI #automation #macos #openai-compatible #pdf

macOS/Windows 微信群日报:本地读取、薛定Token AI 总结、Markdown/PDF、每日定时运行

Created Jul 21, 2026
Stars
19
Today
+8
Forks
3
Quality
100/100
Momentum
23

README

Fetched from GitHub on Nov 15, 2026, 9:12 AM UTC · README.md

View original on GitHub

Third-party content — Open Source Pulse is not the owner of this repository.

This README belongs to Leobai03/wechat-group-daily and its contributors. We fetch it directly from the project’s public GitHub repository and display it for reference only. All text, code, images and trademarks remain the property of their respective authors. See the repository for its license terms. Copyright / takedown policy.

WeChat Group Daily · 微信群日报

在 macOS 或 Windows 本地只读提取一个或多个微信群当天的聊天记录,先脱敏,再通过薛定Token调用 AI,总结成 Markdown 日报和适合人类阅读的 1–2 页 PDF。

它不是微信插件,也不需要微信官方 API。底层使用开源项目 wechat-cli 读取本地微信 4.x 数据库。

直接选择你的系统

能做什么

  • 同时配置多个微信群,每个群单独生成日报。
  • Markdown 适合归档和二次编辑;A4 PDF 适合直接阅读和转发。
  • 发送给 AI 前,可脱敏手机号、邮箱、身份证号和银行卡号。
  • 默认接入薛定Token,也保留本机 Codex CLI 模式。
  • macOS 使用 launchd,Windows 使用任务计划程序,默认每天 22:00 自动运行。
  • API Key 保存在 macOS 钥匙串或 Windows 凭据管理器,不写入配置文件。

默认 AI 配置

项目已经使用你确认的参数:

[ai]
provider = "openai-compatible"
base_url = "https://xuedingtoken1.com/v1"
model = "claude-opus-4-8"
api_key_env = "WECHAT_DAILY_API_KEY"
api_key_service = "wechat-group-daily-xuedingtoken"
api_key_account = ""
command_timeout_seconds = 600

创建薛定Token API Key 后,在项目目录执行:

uv run wechat-daily set-api-key

命令会隐藏输入,并把密钥写入当前系统的安全凭据库。

薛定Token入口:

购买链接包含邀请码,链接提供者可能获得推广权益。薛定Token是第三方服务,与本项目、OpenAI、Anthropic、腾讯或微信不存在官方隶属关系;是否购买和使用由你自行决定。

两个平台共用的运行命令

# 检查设备、微信数据库、群名、API Key和AI配置
uv run wechat-daily doctor

# 只读取和脱敏,不调用AI
uv run wechat-daily run --dry-run --date today

# 生成今天的 Markdown + PDF
uv run wechat-daily run --date today

# 生成昨天的日报
uv run wechat-daily run --date yesterday

# 安装每天自动运行任务
uv run wechat-daily install-schedule

配置多个群

复制 config.example.toml 为 config.toml,填写与微信中完全一致的群名:

[wechat]
groups = ["产品交流群", "AI 创业群", "远程工作群"]

不确定群名时:

uv run wechat-daily groups

临时指定多个群:

uv run wechat-daily run --date today \
  --group "产品交流群" \
  --group "AI 创业群"

PowerShell 需要使用反引号作为续行符,也可以把命令写在同一行。

工作方式

Mac / Windows 微信本地数据库
        ↓ 只读查询
wechat-cli 提取指定群和日期的消息
        ↓ 本机内存脱敏
薛定Token / OpenAI兼容接口分块总结
        ↓
Markdown 日报 + 1–2 页 PDF 日报

隐私与使用边界

  • 程序只读访问微信数据库,不会修改或发送微信消息。
  • 默认不会额外保存原始聊天副本。
  • 中转模式会把脱敏后的聊天文本发送给薛定Token及其上游模型服务。
  • 自动脱敏不能保证识别全部个人或商业敏感信息,机密群聊不要交给第三方模型。
  • 请先确认你有权处理目标群聊,并获得必要授权。
  • config.toml、reports/、logs/ 和数据库密钥均已排除在 Git 之外。

开发与验证

uv sync --extra dev
uv run ruff check .
uv run pytest
uv build

GitHub Actions 会同时在 macOS 和 Windows 上执行测试与构建。真实微信内存读取仍需要在用户自己的已登录设备上完成。

License

MIT

Rendered by GitHub from the repository’s README. Scroll to read the full file.
First trending

Jul 22, 2026

first spotted on the list

Best rank

#28

highest position reached

Appearances

2

times on the trending list

Quality score

100

out of 100

Momentum

23

trend strength indicator

Star velocity

0.16

stars per day since creation

Activity — last 60 days

daily counts, collected every 6 hours
  • Stars
  • Forks
  • Merged PRs
  • Issues
  • Closed issues

Collecting activity data since launch — check back in a few days.

Star history

total stars per snapshot
101214161820Leobai03/wechat-group-daily · Jul 22, 2 PM UTC: 11 starsLeobai03/wechat-group-daily · Jul 22, 7 PM UTC: 19 stars2:04 PM4:45 PM7:26 PM

Rank history

position on trending · lower is better
#1#28#30#32#34#36Jul 22, 2 PM UTC: rank #28Jul 22, 7 PM UTC: rank #362:04 PM4:45 PM7:26 PM

3D card for your website

Live HTML card with a glass surface and pointer tilt. Paste the iframe on any website.

<iframe src="https://www.notionpulse.cc/embed/Leobai03/wechat-group-daily" width="420" height="240" style="border:0;max-width:100%;background:transparent" loading="lazy" title="Leobai03/wechat-group-daily — trending on Open Source Pulse"></iframe>

Stars badge

Show current stars in your README or profile. Auto-updates every 6 hours.

Leobai03/wechat-group-daily stars badge
Markdown
[![Leobai03/wechat-group-daily](https://www.notionpulse.cc/api/badge/Leobai03/wechat-group-daily.svg)](https://www.notionpulse.cc/repo/Leobai03/wechat-group-daily)
HTML
<a href="https://www.notionpulse.cc/repo/Leobai03/wechat-group-daily"><img src="https://www.notionpulse.cc/api/badge/Leobai03/wechat-group-daily.svg" alt="Leobai03/wechat-group-daily stars badge" /></a>

Repository of the Day

#28 Repository of the Day

Repository of the Week

#28 Repository of the Week

Repository of the Month

#28 Repository of the Month