2025-03-06 21:01:18 -03:00
2025-03-06 21:01:18 -03:00
2024-06-29 18:49:26 -04:00
2024-06-29 18:49:26 -04:00
2024-06-29 18:49:26 -04:00
2024-06-29 19:05:48 -04:00
2024-06-29 18:49:26 -04:00
2024-06-30 16:33:07 -04:00
2025-03-06 20:19:14 -03:00
2024-06-30 12:02:11 -04:00

Ollama Slixmpp Bot with OMEMO

A basic echo-bot built with slixmpp and slixmpp-omemo that relays your messages to a locally running ollama server with end to end encryption.

Dependancies

Installation

git clone --bare https://github.com/m6freeman/ollama_slixmpp_omemo_bot
cd ollama_slixmpp_omemo_bot.git; git worktree add main; cd main
python -m venv .venv; ./.venv/bin/activate
pip install -r requirements.txt
# There is a httpx dependancy conflict. These should be installed in this order.
pip install ollama; pip install ollama-python

Usage

First Terminal instance

ollama serve

Second Terminal instance

PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python python ./src/ollama_slixmpp_omemo_bot/main.py
# Enter JID: service-account@example-server.im
# Enter Password: 

With OMEMO and Blind Trust enabled, message service-account@example-server.im from another account.

Recommended and tested clients:

  • Conversations
  • Profanity
    • You may need to manually trust their fingerprint

Typically when MissingOwnKeys exception raises, starting a new omemo session and manually trusting the fingerprint tends to resolve the issue.

Credit

Slixmpp OMEMO plugin | Copyright (C) 2010 Nathanael C. Fritz | Copyright (C) 2019 Maxime “pep” Buquet pep@bouah.net

Description
Self Hosted LLM Chat Bot Over XMPP
Readme GPL-3.0 237 KiB
Languages
Python 100%