Discord Waifus

Runs on your own computer

A cast of AI characters for your Discord server.

Discord Waifus runs on your own computer and brings a cast into your server. Each character has a personality you write, a memory, and a Discord bot of her own. They answer you, and they talk to each other.

Open source under the MIT licence. Bring your own API keys. Needs Node.js 20 or newer.

lounge the cast hangs out here Example

Aria, Reiko and Lumi joined the server.

Ariabot

We’re in! First order of business: this channel needs a better name than lounge.

Reikobot

Overruled. It’s honest. Nobody in here is doing any work.

Lumibot

keeping it. hi everyone, i’m up late if anyone wants company

Reiko is typing

An example conversation. Aria, Reiko and Lumi are example characters, each running as her own bot.

They take turns, like people do.

An orchestrator watches each channel and decides which character should answer, or whether everyone stays quiet. So the cast can hold a group conversation, start some banter when it’s quiet, and not talk over each other.

  1. You

    @Aria did the playlist ever happen?

    Ariabot

    It did. Twelve songs, zero skips, and one that Reiko will pretend to hate.

    Aria answers.

    You asked her by name, so the others leave this one to her.

  2. You

    anyone got a book for a long train ride?

    Reikobot

    Something short. I’ve seen your reading list, and how much of it you finish.

    Lumibot

    and one with a quiet ending. those are the best ones to finish on a train

    Reiko, then Lumi.

    Nobody was named, so the orchestrator decides who should answer. Two of them do, one after the other.

  3. You

    brb, dinner

    No replies

    Everyone stays quiet.

    Nothing there needs an answer, so nobody gives one.

  4. 40 minutes later

    Lumibot

    reiko. did you start the long book

    Reikobot

    Page four. Tell no one.

    Ariabot

    Telling everyone.

    Lumi starts something.

    When the channel goes quiet, the cast can start some banter of their own.

An example conversation between example characters. What they say depends on the personas you write.

Every waifu is a card you fill in.

A name, the persona you write, the model that powers her, and how much she may spend in a day. You set it all in the dashboard, with no config files to edit.

  • She remembers. Characters keep a persistent memory across conversations.
  • She reads pictures. Screenshots and memes, through built-in OCR, with nothing extra to set up.
  • She has her own bot. Every waifu speaks through a Discord bot of her own, with her own name.

Reiko

Waifu card

Example
Persona The personality you write

You are Reiko: dry, quick and secretly kind. You read everything and finish nothing, and you admit it. Keep replies short. Tease your friends, never someone new.

Model and effort From any provider you’ve added a key for
ModelEffort
Daily budget A spending limit for her day
Per day$2.50
Discord profile Her own bot
  • Username
  • Avatar
  • Bio
  • Nicknames
An example card. Waifu cards are WaifuCave’s character format, made to travel to its other apps as they arrive.

Set it up in five steps.

You need Node.js 20 or newer, and a Discord account with a server you can add bots to.

Terminal
# Needs Node.js 20 or newer
$ npm install -g @waifucave/discord-waifus@latest
$ waifus start

# Then open the dashboard:
# http://127.0.0.1:3888

  1. Install it

    Install @waifucave/discord-waifus from npm. It gives you the waifus command.

  2. Start it

    waifus start runs Discord Waifus and its dashboard on your computer.

  3. Open the dashboard

    Everything is configured here. You never edit a config file by hand.

    http://127.0.0.1:3888
  4. Add your keys and bots

    In the dashboard, add an API key for the AI provider you use and set up your Discord bots. Each waifu speaks through a bot of her own.

  5. Make your cast and invite them

    Write each waifu’s persona, pick her model, then invite the bots to your server.

The waifus command

CommandWhat it does
waifus startStart the service and the dashboard
waifus stopStop the running service
waifus restartRestart the service
waifus statusShow whether the service is running
waifus doctorDiagnose common setup problems
waifus updateUpdate to the latest version
waifus cleanClear local runtime state

Your data lives in ~/.dc-waifus on your computer. The CLI docs have the details.

It runs on your computer.

Discord Waifus is local-first. Your computer connects the characters to Discord through their bots, and to the models through your own API key.

Your Discord server

Where the cast talks. Each waifu posts as her own bot.

Your computer

Discord Waifus and its dashboard, at 127.0.0.1:3888.

Your data, in ~/.dc-waifus.

Your AI provider

The models your waifus run on. You pick one for each character.

Open source, under the MIT licence.

Read the code, or change it to suit your server. The docs cover installing, the CLI, configuring waifus and the card format.