Libra is a local browser-based marketing copy agent. It collects recent WeChat messages and images through the official clawbot/iLink channel, creates copy with an OpenAI-compatible model, and sends it at a configured daily time.
npm install
npm run devThe web console runs at http://localhost:5173 and the local API at
http://127.0.0.1:4311.
- QR-code WeChat connection
- Continuous long-poll listening with 24/7 AI replies
- Permanent text conversation history, summaries and distilled business memory
- Intent routing between normal chat, marketing requirements and materials
- Two-step WeChat confirmation for state-changing operations
- Text and image material normalization
- Configurable OpenAI-compatible text and vision models
- Daily timezone-aware generation and direct delivery
- Washington (
America/New_York), Beijing (Asia/Shanghai) and Tokyo (Asia/Tokyo) time presets - Extension contract for office documents, folders and external APIs
Original image assets use a configurable retention period (30 days by default), while extracted image text and memory are retained permanently.
Credentials and WeChat tokens are stored in the local SQLite database. Keep the
data directory private and do not expose the API port to a public network.