Self-hosted AI chatbot,
no coding needed.

๐Ÿ’ธ No software fees, no subscription. Just pay for the tokens you use.

Run your own chatbot on Discord, Telegram, Slack, QQ, LINE and your website, and set it all up in a simple dashboard. Mochi remembers people, answers from your docs, looks things up and reads images.

Models come from Flatkey, Mochi's only supported model provider: official models at least 20% below official pricing, one key for all of them.

Runs onDiscordTelegramSlackQQLINEWebsite
Mochi, the AI chatbot, as a pink-haired anime girl waving hello
# hangoutโ— online

Set up Mochi, step by step

Keep this page open and follow along. Check off each step: your progress is saved in this browser, so you can come back any time.

๐ŸŽฌ Watch it first: the whole setup in under 3 minutes

The easiest way to try Mochi. Your bots are online while your computer is on.

๐Ÿค– Let your AI set it up

Copy this prompt into an AI that can run commands on your computer (Claude Code, Codex, Cursor) and it does the steps for you. A chat AI like ChatGPT, Claude or Gemini will walk you through them.

Help me install Mochi, an open-source, self-hosted AI chatbot, on this computer: https://github.com/flatkey-ai/Mochi-ai-chatbot
I'm not technical, so do as much as you can yourself and explain each step simply. Talk to me in English.

1. Run Mochi's one-line installer for my system. It's open source; read it first if you like (https://github.com/flatkey-ai/Mochi-ai-chatbot/tree/main/website/public). It installs Node.js if needed, downloads Mochi into a `mochi` folder in my home folder, starts it and opens the dashboard.
   - macOS / Linux: `curl -fsSL https://www.mochichatbot.com/install.sh | bash`
   - Windows PowerShell: `$p = Get-ExecutionPolicy -Scope Process; Set-ExecutionPolicy Bypass -Scope Process -Force; try { irm https://www.mochichatbot.com/install.ps1 | iex } finally { Set-ExecutionPolicy $p -Scope Process -Force }`
2. Keep it running. Open http://localhost:3000/dashboard and help me choose an admin password (the dashboard asks the first time).
3. If anything fails, fall back to the README's Quick start: clone the repo, `npm install`, copy `.env.example` to `.env`, `npm start`.
4. Mochi uses Flatkey as its model provider. Send me to https://console.flatkey.ai/keys?utm_source=mochi_bot&utm_medium=mochi_site&utm_campaign=mochi&utm_content=ai_prompt to create an API key and top up my balance. Then have me paste the key into the dashboard under "Flatkey API key" and click "Bind key". Never ask me to paste the key into this chat.
5. Help me connect a channel (Discord, Telegram, Slack, QQ, LINE or the website widget) by following the guide inside the dashboard's Channels page, then send the bot a test message.

If something fails, read the error, fix it and keep going. Use the README in the repo as the source of truth.

Or follow the steps yourself

0 of 4 steps done
  1. Install and start Mochi

    Copy this one line into your terminal and press Enter. It installs Node.js if you don't have it, downloads Mochi into a mochi folder in your home folder, starts it and opens the dashboard. The first time, the dashboard asks you to choose an admin password. Keep the window open: closing it stops Mochi.

    Open Terminal (Applications > Utilities), paste this and press Enter.

    curl -fsSL https://www.mochichatbot.com/install.sh | bash
    Open source and safe to run

    The script only installs Node.js (if needed) and Mochi into your home folder, then starts it. Nothing runs as admin unless Node.js itself needs installing, and you can read every line first. Read the script: install.sh โ†—

  2. Get your Flatkey key

    Flatkey is Mochi's model provider. Create an API key and top up your balance: your bots' replies are paid from it.

  3. Paste the key into Mochi

    In the dashboard, open Flatkey API key, paste your key and click Bind key. Mochi checks it and keeps it only on your computer.

    Paste the key into Mochi
  4. Connect a channel and say hi

    Open Channels and pick Discord, Telegram, Slack, QQ, LINE or the website widget. Each one has its own step-by-step guide in the dashboard. Then send your bot a message.

Everything a great chatbot needs

Turn each ability on or off per bot, and pick the model behind it.

๐Ÿ’ญ

Memory

Remembers who's in the room, their personalities and what you talked about recently.

๐Ÿ“š

Knowledge base

Add docs, FAQs or notes and get a Q&A bot that answers from them.

๐Ÿ”Ž

Web search

Looks up facts and recent news instead of guessing.

๐Ÿ–ผ๏ธ

Reads images

Understands screenshots, photos and memes people send.

๐Ÿค–

Multiple bots

Each bot has its own persona, description, channels and budget.

๐Ÿ’ฌ

6 channels

Discord, Telegram, Slack, QQ, LINE and a widget for your website.

๐ŸŒ

4 languages

Dashboard in English, ไธญๆ–‡, ๆ—ฅๆœฌ่ชž and Portuguรชs.

๐Ÿช™

Cost control

Switch abilities off, choose cheaper models and watch spending per bot.

Why Mochi runs on Flatkey

Official models. Better prices.

A chatbot needs several kinds of models. Flatkey gives you all of them behind one key.

Create your Flatkey key

Powered by flatkey

๐Ÿ’ธ Save money

Mainstream models like GPT, Claude, DeepSeek, Kimi and GLM are at least 20% below official pricing. Same official models, same quality. Failed calls cost $0.

โฑ๏ธ Save time

Chat, vision, web search and a low-cost model for memory. Going direct means one account and invoice per provider. Flatkey is one key, one balance and one bill for 100+ models.

๐Ÿ” Switch freely

Change the model behind any ability from the dashboard in one click. No new signup, no code change.

A dashboard anyone can use

All your bots in one place
All your bots in one place
Persona and description
Persona and description
Knowledge base for Q&A
Knowledge base for Q&A
Connect your channels
Connect your channels

What will your bot be?

๐ŸŽฎ

Community companion

A friendly regular for your Discord or Telegram group who knows everyone by name.

๐Ÿ›Ÿ

Support Q&A bot

Answers customer questions from your docs on your website, LINE or Slack, around the clock.

๐Ÿ“–

Study buddy

Explains, quizzes and looks things up for a class or study group on QQ or Discord.

Mochi AI chatbot FAQ

Is Mochi free?

Mochi is open source under the MIT license. You pay only for the model usage your bots make, from your Flatkey balance. Turn abilities off or pick lower-cost models to spend less.

Why only Flatkey and not my own OpenAI key?

A chatbot uses chat, vision, search and memory models from different providers. Flatkey puts 100+ official models behind one key and one bill, with mainstream models at least 20% below official pricing. That keeps Mochi simple to set up and to run.

Do I need to code?

No. You run one command (or a Docker container), then do everything else in the dashboard: personas, knowledge, channels and models.

Where is my data stored?

On your own server, in a local database file. Mochi sends messages to Flatkey only to get model replies.

Can I host it on Vercel or another serverless platform?

No. Bots keep live connections to Discord, Telegram and others, so Mochi needs an always-on process and disk. Use Docker, Sealos, a VPS or your own computer.

Which models can I use?

Any model in the Flatkey catalog, including GPT, Claude, Gemini, DeepSeek, Kimi and GLM. Mochi starts with a fast, low-cost DeepSeek model and you can change it any time.

Bring Mochi to your community today

Follow the setup guide on this page, add your Flatkey key and say hi.