Favicon of Agnai

Agnai

A self-hosted AI roleplay chat app supports custom characters, group conversations and backends including Kobold, Claude and OpenRouter.

Alternative to:

Screenshot of Agnai website

Agnai is an AI roleplay chat app for people who want conversations with fictional characters, including shared chats with other people. It builds on early work from Galatea-UI by PygmalionAI.

  • Group conversations: Multiple people and multiple bots can participate in the same chat.
  • Custom characters: Persona formats include W++, Square bracket format (SBF), Boostyle and plain text, with AI-assisted character generation also available.
  • Memory and lore: Memory books supply background context, while optional long-term memory and Wikipedia article or PDF embeddings add material conversations can draw on.
  • AI backend choice: Supported connections include Kobold, AI Horde, OpenAI, Claude, OpenRouter and Mancer, with individual user settings and generation presets.
  • Image generation: Characters and conversations can use image generation through third-party services.

The open-source app uses the AGPL-3.0 license. You can self-host it with Docker or run it through Node.js on macOS, Linux or Windows, then access it in a browser. Agnai.chat provides a hosted version. Self-hosting places the chat application on your hardware; external AI services handle the generation requests you send to them.

MongoDB is optional. Without it, Agnai runs in guest-only mode and stores guest data in the browser, so it doesn't carry across devices or browsers and disappears if you clear that browser data. Instances using MongoDB can provide user authentication and persistent storage.

Similar to Agnai