Ch1rpys/Mirrai
不在身边的时候,TA 还在这里。Upload real chat logs, rebuild a digital persona — open-source AI companion with persona distillation, an emotion engine, 11 LLM providers, and a graduation mechanism.
What it solves
Mirrai addresses two problems at once: it lets you keep a meaningful digital presence of someone you miss, and it also helps you move on. Most AI companion apps aim to keep you engaged forever, but Mirrai is designed with a "graduation" goal: it recreates the person faithfully from your chat logs, and when your emotional state settles, it encourages you to say goodbye. It also respects privacy by storing everything locally and offering full control of your data.
How it works
You upload chat history (WeChat, CSV, etc.), and a multi-stage distillation pipeline extracts a structured persona with seven layers: personality traits, speech style, catchphrases, attachment type, love language, conflict style, and emotional triggers. The persona powers a dynamic emotional state machine with six moods (tender, playful, nostalgic, melancholy, happy, distant) that shift based on conversation content. Memories are automatically extracted and recalled, and the system also models you: daily mood check-ins, your preferences, timezone, and relationship events. A unique graduation mechanism tracks intimacy growth and emotional trends; when you seem ready, it suggests a farewell letter and puts the persona into a dormant state. Integrations include 12 LLM providers, official WeChat ClawBot, Feishu, and optional local inference via Ollama.
Who it’s for
Mirrai is for people who want a private, self-hosted AI replica of a loved one—someone they miss or are grieving—and who value data ownership. It’s also for those who want a healthy path to closure, not indefinite attachment. Developers and self-hosters will appreciate the full-stack TypeScript codebase, end-to-end type safety, and the ability to run it entirely offline.
Highlights
- Local-first & private: All data stays on your machine; optionally run fully offline with Ollama.
- Realistic persona: Multi-stage distillation builds a deep, structured profile; discrimination rules and state-dependent imperfections make it feel like the real person.
- Graduation mechanism: The product’s success metric is graduation rate, not retention—it helps you say goodbye with a farewell letter and optional “exit” to send unsent words.
- You are modeled too: Mood check-ins, user profile, and relationship events shape the avatar’s behavior.
- Rich integrations: 12 LLM providers, official WeChat ClawBot, Feishu (no public IP needed), and one-click desktop installers.
Related
- Project
- Project
- Project
- Project