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)ReplikaXingye / MaoXiang
Memory visibilityUser-visible / forget-one-fact / exportBlack boxLimited
Relationship mathRules & caps fully disclosed (explainable)Black-box XPBlack-box affinity
Real-time voiceInterruptible + captions + character voiceYesYes
Flexible avatars3D cartoons + expression portraits + Live2D (beta)Fixed avatarsIllustrated cards
Schedule follow-upsRemembers the days you mention and asksNoLimited
Attachment protectionCrisis referral / throttle / identity reminders / minor downgradeLimitedPlatform-controlled
MonetizationUnlocks + membership + gifts (all yours)Platform subscriptionPlatform IAP share
API / SDKREST + WebSocket + multi-platform SDKsNoneNone
Data ownershipYour databasePlatform-ownedPlatform-owned
Offline / air-gappedSupported (no internet dependency)NoNo

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

OptionUpfrontMonthly (1K users)Monthly (100K users)Data
Replika Pro$0$7/user subscriptionLinear subscription costPlatform
imcore Companion¥15,800/yr~$185 + LLM API~$185 + LLM APIYours
Build from scratch6-9 months devServers + teamServers + teamYours

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

  1. Deploy: one Go binary + PostgreSQL + Redis, docker-compose one command
  2. Configure a model: your DeepSeek / OpenAI / on-prem vLLM API key
  3. Create a character: admin console → Characters, tick companion mode, fill persona and greeting (card art can be AI-generated in one click)
  4. Go live: memory, relationship progression, voice calls and 3D avatars work automatically; expression portraits and Live2D are configurable per character