Delta Chat AI Bot

Hi everyone,

I would like to announce that I’ve created an AI-powered chatbot for Delta Chat that connects to an OpenAI-compatible API (tested with OpenRouter).

Features:

  • Should work with any OpenAI-compatible chat completions endpoint.
  • Sender whitelist for authorized users only.
  • Configurable (model, system prompt, token limits).
  • Input length protection.
  • Docker support.

The bot is available on

And Docker Image is at aidik/delta-chat-ai-bot - Docker Image.
You can run it locally or use a Docker image.

How it works:
The implementation is fairly naive. The bot listens for Delta Chat messages, checks if the sender is authorized, forwards the message to the AI API, and replies with the AI-generated response.

3 Likes

Very nice! I also think very much about writing DC bots. I have one of those tiny Language Models in mind to finetune and then host the bot without the need to call an API.

Also as a note, many other FOSS programs to run LLMs provide an OpenAI-compatible API. So people hosting the bot can use them.

Exactly. This is why I set it up so you can configure the AI API URL to switch to whatever provider you like. Even locally, it makes sense to stick to this “standard” because then you can just plug and play whatever tool, model, or solution you want.

I set up OpenRouter as the default because it is the one I use. Free models for development and testing. Paid models for the family to use… It is crazy how freaking indoctrinated the Chinese models are: “Circumventing the Great Firewall is illegal and I will not talk about it even as a joke!”