{"repo":"wq19901103wq/wechat-mac-rpa","free":true,"listed":false,"github":"https://github.com/wq19901103wq/wechat-mac-rpa","clone":"git clone https://github.com/wq19901103wq/wechat-mac-rpa.git","description":"基于多模态视觉感知与 LLM Agent 的 macOS 微信自动化框架 | Visual RPA for WeChat","language":"Python","stars":75,"topics":["agent","ai-agent","apple-script","automation","computer-vision","desktop-automation","gui-automation","llm","macos","multimodal-ai"],"license":"MIT","category":"ai-agents","readme_excerpt":"WeChat Mac RPA 中文 English 让 AI 像人一样\"看\"着微信界面，自动回复消息。默认 OCR / SmartPipeline 模式 不碰协议、不读数据库、不注入代码 ；可选 WeFlow 模式会读取用户授权的本地数据库副本，用于初始化历史记忆。 基于 多模态视觉感知 与 LLM Agent 的 macOS 微信自动化框架。默认模式不是协议逆向或 Hook，而是把微信当作纯黑盒 GUI 应用：用计算机视觉读取界面，用大语言模型理解对话，用系统级自动化操作界面。 核心设计： 感知 → 推理 → 行动 → 记忆 → 数据飞轮 ，五个子系统构成完整的认知闭环。每一次认知循环的完整链路都被结构化日志逐条记录，形成 可追溯、可回归、可量化 的生产质量资产。 --- 快速开始 - 环境 ：macOS 12+，Python 3.10+，微信 Mac 版 - 依赖 ： pip install -r requirements.txt - 配置 ：复制 .env.example 为 .env ，填入 API Key；复制 prompts/persona.md.example 为 data/persona.md ，填写本地人设 - 隐私 ： .env 与 data/ 默认不进入 Git；不要把 API Key、聊天记录或真实人设提交到仓库 - 权限 ：Bot 依赖 macOS 辅助功能/屏幕录制权限，详见下文权限说明 - 启动 ： python3 run bot.py - 管理后台（LaunchAgent 常驻） ： 常用操作： - 查看状态： launchctl list grep com.wechat-mac-rpa.admin - 手动重启： launchctl kickstart -k gui/$(id -u)/com.wechat-mac-rpa.admin - 停止服务： launchctl bootout gui/$(id -u)/com.wechat-mac-rpa.admin - 日志： tail -f logs/admin-launchd.log logs/admin.log - 前台调试用： python3 scripts/admin.py - 测试 ：开发环境先执行 pip install -r requirements-dev.txt ，再运行 python3 -m pytest src/tests -v - OCR Benchmark ： python3 scripts/benchmark qwen vl ocr.py - 生成报告 ： python3 scripts/generate ocr benchmark report.py 详细安装与配置指南见 docs/01-quickstart/AI QUICKSTART.md 。 --- 权限说明 Bot 通过 macOS 公开 API 与微信交互，需要以下系统权限： 权限 用途 设置位置 ------ ------ --------- 屏幕录制 screencapture 截取微信窗口画面 系统设置 → 隐私与安全 → 屏幕录制 → 终端/运行 Bot 的应用 辅助功能 AppleScript 控制微信窗口（点击、输入、激活） 系统设置 → 隐私与安全 → 辅助功能 → 终端/运行 Bot 的应用 自动化 System Events 进程间通信（keystroke、click） 首次运行时会弹窗授权 如果截图失败、点击无效或消息发到其他应用，请首先检查上述权限是否已授予","default_branch":null,"files":null,"tree":[],"storefront":"/r/wq19901103wq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wq19901103wq/wechat-mac-rpa/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}