MochiCharacter.AI Alternative

A companion you host yourself

Your AI companion.Your memories.Your control.

Host your own AI companion with Mochi. You write the persona, you can inspect and delete what she remembers, and you can back it up. She can talk on Discord, Telegram, Slack, QQ, LINE and your website. The software is free. Model usage and hosting are paid separately.

Full setup guideOther ways to deploySetup video

Mochi is for people who already like talking to a character and want that companion on their own side: a persona you write, a memory you can open, and a chat app you already use. She is not a public character catalog, and she is not a website you log into to start a chat.

Mochi is an independent open-source project. It is not affiliated with, endorsed by, or a product of Character.AI.

Talks onDiscordTelegramSlackQQLINEWebsite
Mochi, the AI chatbot, as a pink-haired anime girl waving hello
  • Inspect profiles
  • Delete a person or room
  • Download a backup

What you actually get

A companion you can read, change and keep. Not a second copy of someone else's app.

A persona you write

Name, greeting, personality, tone, backstory and rules are fields in your dashboard. A custom prompt can replace the generated one entirely.

Memory you can open

The Memory tab lists each person and room, with the notes she has saved. You can forget one person or one room, and you can download a backup.

Records on your server

People, rooms, messages, knowledge files and settings stay in your database. Mochi the project does not collect that database.

Chats you already use

Discord, Telegram, Slack, QQ, LINE, or a widget on your own site. Private chats and groups both work. Each bot is a separate character.

Memory you can see, remove and take with you

She keeps notes so a later chat still knows who someone is. Those notes are on your server, and the Memory tab is where you deal with them.

Inspect

Every person shows a name, the platform, a short personality note, facts and interests, plus how many messages and when they were last seen. Every room shows a summary and recent topics.

Delete

Forget one person or one room without wiping the rest. Someone can also tell her “forget me”. That phrase is recognized in English, Portuguese, Japanese and Chinese.

Back up

Download one file with what she remembers, the knowledge base and the bot settings. Keys and channel tokens are left out. Import it into this bot or another one. Importing replaces that bot’s memory and knowledge. You choose whether the persona and settings are restored too.

What this is not

  • There is no text box in the dashboard for rewriting one saved fact. Profiles change when a later memory update merges in new messages, or when you import a backup. The persona itself is edited on the Persona tab, which is separate from these notes.
  • Recall is not perfect. A reply sees a recent window of that room (20 messages unless you change it), the room summary, and the profiles of people in that window. Older lines in the same room can be searched. Each room keeps up to 300 stored messages.
  • Discord and Slack can also backfill older channel history from the platform. Telegram, QQ and LINE have no history API for the bot, so she only has messages she actually received. A summary is not a transcript.
  • The same human on two platforms is two people. Profiles are stored per bot, per platform, per account id. Nothing links a Discord account to a Telegram account.
  • The database stays on your server, but a reply does not stay there. The request sent to Flatkey includes the recent conversation, the persona, the room summary, those people profiles, and any knowledge passages that matched. Images go too when image reading is on.

Privacy policy covers the same split: your database stays on your server, and replies go to Flatkey to be written.

You write the character

Start from the group-chat companion preset, or from a blank bot, and edit every field after that.

The companion preset turns memory on and gives you a playful starting personality. You can replace all of it. Name, avatar, color, description, greeting, nicknames, personality, tone, emoji, reply length, language, backstory and rules are the fields. If you want the exact prompt, a custom prompt replaces the generated one.

Lore can live in the knowledge base instead of one giant prompt: text, Markdown, CSV, PDF, Word, or a public web page. She looks up passages that match the message. Those matched passages are part of the request to the model. A Q&A preset also exists, for a bot that should answer only from documents. That is a different job from a companion.

You can run more than one bot. Each has its own persona, memory, channels and budget.

Mochi dashboard Persona tab: name, description, greeting, bot type, personality, tone and emoji, with a preview of the instructions the bot is given.
The Persona tab. The companion preset uses this same page. The screenshot shows the Q&A type so the fields are visible.

She joins the chat you already have

Six places, each with its own connect steps in the dashboard. Tokens stay on your server.

Discord, Telegram, Slack, QQ, LINE, and a chat widget on your own website. The widget needs no platform token. You can give it a character that peeks in from the edge of the page. Private messages and group chats both work. In a group she keeps a separate profile for each person.

  • Telegram groups only deliver messages that mention the bot until you turn Group Privacy off in BotFather. Until then, that is all she can remember.
  • LINE needs a public HTTPS address. Replies right after a message use LINE’s reply token. Messages she sends later use LINE’s push API, which counts against the LINE plan.
  • QQ answers @-mentions unless the group allows the bot to receive the whole chat. QQ also needs your server’s public IP on its allowlist.

Written setup for the two most common apps: Discord AI chatbot tutorial · Telegram AI chatbot tutorial. Slack, QQ, LINE and the website widget are covered step by step in the dashboard.

Mochi dashboard Channels tab for a companion bot, with connect steps for Discord, Telegram and Slack.
Discord, Telegram and Slack on the Channels tab. QQ, LINE and the website widget are on this same page, each with its own steps.

Set her up

A short path is below. The full setup guide on the home page checks off every step, including Windows, and your progress is saved in this browser.

  1. Run Mochi

    On a computer, one command installs Node.js if you need it, downloads Mochi, starts it and opens the dashboard. For a companion that stays online, deploy her. Railway’s template creates Mochi and a Postgres database in your own Railway account and gives you an HTTPS address. Railway bills that usage to you. Render, Sealos, a VPS, Docker and Kubernetes are on the Deploy page.

    macOS and Linux

    curl -fsSL https://www.mochichatbot.com/install.sh | bash

    Windows uses a different command in the full setup guide. On your own computer she answers only while that computer is on and the Mochi window stays open.

  2. Choose the admin password

    Open /dashboard as soon as it starts. The first visitor sets the password. Do that before you share the address. On a server, put HTTPS in front before other people can open it. LINE and the website widget need a public HTTPS address.

  3. Bind a Flatkey key

    Flatkey is the only model provider Mochi supports. Create a key, paste it on the Flatkey API key page and bind it. Mochi checks the key with Flatkey and stores it only on your server. New Flatkey accounts get $1 in free credit. One key covers chat, image reading, web search and the memory update.

  4. Write the companion

    Create a bot from the group-chat companion preset, or a blank bot, and fill in the Persona tab. Turn on the abilities you want. Memory, image reading and web search can each be switched off, and each can use a different model from the Flatkey catalog.

  5. Connect a channel

    Open Channels and pick Discord, Telegram, Slack, QQ, LINE or the website widget. Each card has its own steps. Then send her a message.

  6. Open Memory

    After a few conversations, read the profiles. Forget anyone who should not be there, and download a backup before you move machines or restart a host that does not keep the disk.

The software is free. The model is not.

Three separate bills. Only the first one is zero.

Mochi: $0

MIT license. You can read the code, run it, and change it. There is no Mochi subscription.

Model usage

You pay Flatkey for the tokens a reply, an image, a search or a memory update actually uses. Mainstream models are at least 20% below those makers’ official prices. Failed calls cost $0. New accounts start with $1 in credit, then you top up. There is no free unlimited model.

Hosting, if you want it

Your own computer costs nothing extra, and she sleeps when it does. A server that stays on is billed by that host, not by Mochi. The Deploy page lists the options. You can also set a daily token budget per bot. The default is no cap.

Who it fits

A fair split, before you spend an afternoon on setup.

A good fit

  • You want a companion whose persona you write and can keep running.
  • You want to see what she remembers, delete a person or a room, and keep a backup.
  • You already talk on Discord, Telegram, Slack, QQ, LINE, or your own site.
  • You are fine doing a short setup, and paying for model usage and for hosting if she should stay online.

Look elsewhere if

  • You want to open a website, pick a public character, and chat with no setup.
  • You need an automatic import of chats or characters from Character.AI or another app. Mochi does not have one.
  • You need one memory that follows the same person across Discord and Telegram. Profiles are not linked.
  • You need the model to run offline on your machine, or to paste an OpenAI, Anthropic or other provider key. Mochi talks to Flatkey only.
  • You need a promise of perfect recall, or a promise that prompts never leave your server. Recall is partial, and each reply is sent to Flatkey.

This page and the companion essay

Own your AI companion is the longer post: why a character that lives on someone else’s server can change under you, and what self-hosting changes in practice. This page is the product. It says what Mochi does today, who it fits, and how to start. It does not repeat that post.

Read: Own your AI companion

Questions people ask before they switch

Is Mochi a Character.AI alternative?

It can be, if you want a companion you host yourself, with a persona you write and a memory you can inspect, delete and back up. It is not a hosted website with a public character catalog, and it does not replace logging into Character.AI.

Is Mochi affiliated with Character.AI?

No. Mochi is an independent open-source project. It is not affiliated with, endorsed by, or a product of Character.AI.

Can I import my Character.AI chats or characters?

No. Mochi does not import chats or characters from Character.AI or from other companion apps. A Mochi backup moves her own memory, knowledge files and settings between Mochi installs. It is not a converter for another product.

Where is memory stored, and what is sent to the model?

People, rooms, messages, knowledge files and settings are stored on the server you run: a SQLite file in Mochi’s data folder, or your own PostgreSQL database. The Mochi project does not receive that database. To write a reply, Mochi sends the request to Flatkey. The request includes the recent conversation, images when image reading is on, the persona, the room summary, profiles of people in those recent messages, and knowledge passages that matched. Web search, if you leave it on, also goes through Flatkey. There is no mode that runs the model on your machine.

Can I inspect, edit, delete and back up memory?

You can inspect every person and room on the Memory tab. You can delete one person or one room, and someone can say “forget me”. You can download a backup of memory, the knowledge base and settings, without keys or channel tokens, and import it later. Importing replaces that bot’s memory and knowledge. The dashboard does not have a field for rewriting one saved fact. Those notes change when a later memory update merges new messages, or when you import a backup. Name, personality, tone, backstory and rules are edited on the Persona tab.

Will she remember everything?

No. Each reply sees a recent window of that room, 20 messages unless you change it, plus the room summary and the profiles of people in that window. Older lines in the same room can be searched, up to 300 stored messages per room. Discord and Slack can backfill older history from the platform. Telegram, QQ and LINE cannot, so she only has messages she received. Memory updates run in the background every 12 messages per room unless you change that, using a separate model you can pick.

Does one person share a memory across Discord and Telegram?

No. A person is stored per bot, per platform and per account id. The same human on Discord and on Telegram is two profiles. Mochi does not link those accounts.

Is Mochi free?

The software is free under the MIT license. There is no Mochi subscription. You pay Flatkey for model usage. New Flatkey accounts get $1 in free credit. After that, replies, image reading, web search and memory updates draw from your balance. Failed model calls cost $0. Mainstream models are at least 20% below the makers’ official prices. If you put Mochi on a server so she stays online, that host bills you separately. On your own computer, the hosting cost is zero and she only answers while the computer is on.

Can I use my own OpenAI key, or run the model offline?

No. Mochi talks to Flatkey only. You cannot paste an OpenAI, Anthropic or other provider key, and the model does not run locally without a network. One Flatkey key is what chat, vision, search and memory all use. Any model in your Flatkey catalog can be selected in the dashboard. Mochi starts on a fast, low-cost DeepSeek model for chat, and you can change it.

Which chat apps work?

Discord, Telegram, Slack, QQ, LINE, and a widget on your own website. The dashboard has connect steps for each. Discord and Telegram also have written tutorials on this site. She can talk in private chats and in groups. She does not appear inside the Character.AI app.

Does Mochi add its own content filter?

Mochi adds no content filter of its own. Flatkey allows uncensored conversations between adults. Each model still has its own limits, and some hold back more than others. If one refuses, you can pick a different chat model in the dashboard. That is not a promise that any model will accept a given request, and it is not an uncensored or NSFW mode you can switch on. Adults only. Anything involving minors is never allowed.

Start with the companion you can open

Follow the steps on this page, or the full setup guide. Bind a Flatkey key, write the persona, and connect one channel.