Favicon of Matrix ChatGPT Bot

Matrix ChatGPT Bot

A self-hosted Matrix chatbot using OpenAI APIs, with encrypted-room support and conversation context. Archived and unmaintained.

Matrix ChatGPT Bot connects Matrix rooms to OpenAI's ChatGPT API for people who want AI conversations in their existing chat client, including Element. The project is archived and no longer maintained. It's open source under AGPL-3.0, and the maintainers point users to Baibot as an alternative.

You host the bot yourself using Docker or Node.js. The model runs through OpenAI's cloud API, so self-hosting the bot doesn't keep prompts and conversation context on your hardware. It requires an internet connection, a Matrix account for the bot, and an OpenAI account with API access.

The bot supports encrypted Matrix conversations and stores context for follow-up questions. Context can belong to a room, a thread, or both; threads can branch from the room's conversation. This lets separate discussions retain their own history inside the same Matrix room. A typing indicator shows when the bot is waiting for an answer.

Access controls can limit which users and rooms may interact with the bot, including users on a particular Matrix homeserver. By default, anyone who knows the bot's name can invite it or chat with it. You can select the OpenAI chat model, with gpt-3.5-turbo as the documented default, and point API requests to a different base URL. The self-hosted storage holds the bot's encryption keys, while OpenAI processes the messages sent for model responses.

Similar to Matrix ChatGPT Bot