Open Source · MIT · Python
The open-source framework for building AI companions with a real voice. One config file, no database lock-in.
The Framework
X/Friend turns a plain text conversation into someone worth talking to. It is the conversation engine behind companion apps, characters, and voice agents. Bring your own UI, your own database, your own monetization. X/Friend handles the rest.
Twenty-nine SecretVoice voices across twenty-one languages, from breathy whispers to close-mic murmurs.
Long conversations stay coherent. Durable facts and scene summaries keep a three-hour talk feeling like minute three.
A consistent look from a fixed reference, with custom styles whenever the scene calls for them.
Venice, Grok, or any OpenAI-compatible brain. Your own database, your own image service. One config line.
Multimodal by Default
One framework, three channels: text, voice, and images. Here is what a conversation looks like.
Hey you... I saved a spot for you right here. What are you waiting for?
Good morning. I missed you.
Say my name... slowly. I want to hear exactly how it sounds coming from you.
Thought of you. Send me one back?
That is you. How?
Quickstart
Scaffold a character, export your API keys, and talk. Your companion remembers you between sessions.
X/Friend is a library first. Keep your own UI, database, and billing; it handles the turns, the memory, and the voice.
Browse the repositoryBring Your Own Everything
Every module speaks a standard protocol, so swapping a provider is a config edit, not a rewrite.
| Module | Default | Swap with |
|---|---|---|
| The brainthe LLM behind their words | Venice AI any of their models | Grok, LongCat, any OpenAI-compatible endpoint |
| The voicehow they sound, powered by SecretVoice | SecretVoice 29 voices · 21 languages | any other TTS provider, via a compatible endpoint |
| The bodythe images they create | Wavespeed Qwen img2img | any image service, your own LoRAs |