AI Companion Products: Self-hosted vs Replika
Memory, relationship math and data ownership in 10 dimensions
You want to build an AI companion product, or add a deep-companionship module to an existing app. Two paths: raise a character inside Replika / Xingye / MaoXiang, or own the whole product on a self-hosted engine. This article compares both across 10 dimensions so you can decide in 10 minutes.
The three real pains of mainstream apps
Memory is a black box. Replika's XP and memory are invisible and unmanageable — "does she remember?", "is it wrong?", "can I delete it?" have no answers, and the most intimate data sits behind a subscription wall.
Relationship math is unexplainable. Affinity climbs an invisible curve. Users can't see what counts, what the next level needs, or why. The retention mechanic becomes astrology.
Neither the data nor the revenue is yours. Chat history, emotional data, attachment behavioral profiles — all on platform servers; gift revenue takes a 30-50% cut. For teams building a brand, facing compliance, or planning to operate long-term, that's structural risk.
Self-hosting means: memory you can audit, relationship math that's fully disclosed, zero-revenue-share monetization, and models + data in your own hands.
10-dimension comparison
| Self-hosted (imcore Companion) | Replika | Xingye / MaoXiang | |
|---|---|---|---|
| Memory visibility | User-visible / forget-one-fact / export | Black box | Limited |
| Relationship math | Rules & caps fully disclosed (explainable) | Black-box XP | Black-box affinity |
| Real-time voice | Interruptible + captions + character voice | Yes | Yes |
| Flexible avatars | 3D cartoons + expression portraits + Live2D (beta) | Fixed avatars | Illustrated cards |
| Schedule follow-ups | Remembers the days you mention and asks | No | Limited |
| Attachment protection | Crisis referral / throttle / identity reminders / minor downgrade | Limited | Platform-controlled |
| Monetization | Unlocks + membership + gifts (all yours) | Platform subscription | Platform IAP share |
| API / SDK | REST + WebSocket + multi-platform SDKs | None | None |
| Data ownership | Your database | Platform-owned | Platform-owned |
| Offline / air-gapped | Supported (no internet dependency) | No | No |
Key differences explained
Transparent memory is a compliance requirement
Data-protection law demands deletion and portability. imcore's memory panel shows every fact and summary the character holds about you, with forget-one-fact, JSON export and full reset. Consumer apps can't offer this — it's the hardest differentiator of a self-hosted companion product.
Explainable relationship math
+1 affinity per turn (daily cap disclosed), +3 for the first chat of the day, five stages from just-met to deeply bonded — every rule is on the panel. Same retention hook, entirely different trust.
Attachment protection is the floor for long-term operation
Deeper bonds, heavier responsibility: crisis copy carries local help resources (configurable), a daily cap winds conversations down gently, an "I'm an AI" reminder lands naturally every N turns, and minor-flagged turns downgrade the tone automatically. On consumer apps that's the platform's job; self-hosted, it's your product strength.
Cost breakdown
| Option | Upfront | Monthly (1K users) | Monthly (100K users) | Data |
|---|---|---|---|---|
| Replika Pro | $0 | $7/user subscription | Linear subscription cost | Platform |
| imcore Companion | ¥15,800/yr | ~$185 + LLM API | ~$185 + LLM API | Yours |
| Build from scratch | 6-9 months dev | Servers + team | Servers + team | Yours |
License fees do not scale per user, though edition-level scale quotas still apply. LLM cost depends on the selected model, context length and call volume; an on-prem open-source model can keep conversations away from external model providers.
Who should self-host
- Regulated domains: healthcare, education, mental-wellness companionship — emotional data can't leave your infrastructure
- Existing user base: reading, health and tool apps adding a deep-companionship module
- Brand builders: your domain, your avatars, your pricing — not a "creator" inside someone's app
- Long-termists: relationship data is the core asset; it must accumulate in your hands
Get started in 5 minutes
- Deploy: one Go binary + PostgreSQL + Redis, docker-compose one command
- Configure a model: your DeepSeek / OpenAI / on-prem vLLM API key
- Create a character: admin console → Characters, tick companion mode, fill persona and greeting (card art can be AI-generated in one click)
- Go live: memory, relationship progression, voice calls and 3D avatars work automatically; expression portraits and Live2D are configurable per character