Favicon of Agnai

Agnai

An open-source AI roleplay chat app you can self-host with Docker, with custom characters, group chats and connections to Kobold, Claude and OpenRouter.

Screenshot of Agnai website

Agnai is a self-hosted AI roleplay chat app for people who want to create fictional characters and talk with them alone or in a group. A conversation can include multiple people and multiple bots. It builds on early work from Galatea-UI by PygmalionAI and uses the AGPL-3.0 open-source license.

You can run the app on your own computer or server, including through Docker, and use it in a browser. It also runs on macOS, Linux and Windows through Node.js. Agnai.chat provides a hosted version with its own models. Self-hosting runs the chat app on your hardware; choosing an external AI service sends generation requests to that service.

Its choice of backends includes Kobold, AI Horde, OpenAI, Claude, OpenRouter and Mancer. Reusable provider connections and generation presets let you keep different service settings for different conversations. The Claude connection supports images and reasoning options.

Character tools support several persona formats, including W++, SBF and plain text, alongside AI-assisted character creation. Memory and lore books supply background information for roleplay, while optional long-term memory and PDF or Wikipedia embeddings add material the chat can draw on. Image generation uses third-party services.

Guest access doesn't require an account. In guest mode, the browser stores your data locally, so it doesn't carry across browsers or devices. A self-hosted instance can also support user authentication, individual settings and presets, with MongoDB for persistent storage.

Similar to Agnai