mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-17 11:37:06 +08:00
- 使用 Electron safeStorage 加密存储并自动初始化 API Token - 为 health 以外的接口增加 Bearer Token 鉴权 - 限制 CORS 仅允许可信本地 Origin - 增加鉴权、Token rotation、safeStorage 和手动验收测试
654 B
654 B
WechatExplorer Local HTTP API
WechatExplorer v2.1.9 默认在 127.0.0.1:6131 提供 Local HTTP API。
GET /api/v1/health无需鉴权。- 其他数据和 Agent endpoint 需要
Authorization: Bearer <TOKEN>。 - Token 从 WechatExplorer → API Center → API Token 获取。
- Token 不得放入 URL、仓库或共享配置。
export WECHATEXPLORER_API_TOKEN="<YOUR_API_TOKEN>"
curl -H "Authorization: Bearer $WECHATEXPLORER_API_TOKEN" \
http://127.0.0.1:6131/api/v1/recent_chat
完整 endpoint 与使用流程见 Reader Skill,安全边界见 API Security。