menglimi/astrbot_plugin_private_companion
面向 AstrBot 的拟人化整合插件。它会让 bot 拥有连续的拟人状态、每天的生活日程、重要日期、日记和低频主动消息。包含60+实用功能且具有完善的拓展管理页面。
What it solves
Most chatbot persona plugins just add a set of scheduled greetings or chat gimmicks. This plugin instead builds a companion character that lives a continuous life: it sleeps and wakes, keeps a diary, follows a daily schedule, remembers people and shared experiences, notices its environment, and reaches out to you on its own when something in that life gives it a reason. It bundles seven former separate plugins (content creation, image generation, screen reading, real-world touch, together-time, games, livestream) into one install, and manages everything from a single "companion cabin" control panel.
How it works
The plugin splits responsibilities with AstrBot's core pipeline. Ordinary chat replies still go through AstrBot's normal model, conversation history, tool loop, and streaming output. The plugin handles everything around that: maintaining a stable character profile, evolving daily life and schedule, tracking relationships and long-term memory, injecting current context into each reply, and orchestrating expression before sending (chunking, voice, emoji, cleanup).
Proactive messages follow a full candidate lifecycle: triggers come from the character's life/schedule/sleep awareness/anniversaries/unfinished topics, then pass through do-not-disturb windows, wake-up grace periods, busy gates, and frequency checks, then a persona review writes the final message, retrieves reactions and TTS voice, runs a pre-send self-check, delivers with receipts, and tracks the topic until you reply.
Configuration works in three layers: installation-level connection settings, character-level default settings (profile, state, schedule, voice matrix), and per-user/per-group window overrides. Private chat and group chat boundaries are strictly separated, with cross-window continuity so the character remembers what you said in a group when you bring it up in private chat.
Who it's for
People using AstrBot (version >= 4.27.2) on OneBot v11, official QQ, or personal WeChat who want a companion robot that feels like it is actually living its own life — not just an answering machine with a persona sticker. It suits users willing to follow an eight-step guided setup and a fairly deep wiki, and administrators comfortable granting some permissions (screen reading, camera, smart home, phone gateway) in exchange for richer companionship.
Highlights
- Seven built-in abilities in one plugin: Content (diary/creation), Image (generate/edit), Screen (desktop context), Reality (camera, speakers, Android phone, Mi Home, Huawei Health), Together (co-presence room), Game (Gomoku), Live (Bilibili livestream interaction)
- Memory with mixed retrieval (semantic vector + keyword), daily reflection that auto-extracts "interaction anniversaries" from your own words, and external memory plugin bridging
- Explainable proactive behavior: each autonomous message traces back to a real life/relationship/sensory source, with do-not-disturb windows, wake grace periods, and pre-send review — no random mechanical greetings
- 16-channel perception dashboard in the companion cabin: time/calendar, weather, location, model routing, balance observation, screen, phone state, camera, Mi Home devices, health data
- Careful privacy boundaries: cross-window continuity only reads your own public group words and the character's own replies; private secrets never leak into groups; screen/mic/camera permissions must be re-confirmed per device
- Cost-conscious design: protects provider prompt-cache hit rates, separates shared startup model from task-specific models, offers rerank/embedding choices, and reports real token/cache/latency metrics without faking missing data
Related
- Project
- Project
- Project
- Project
- Project