Skip to content

m6freeman/ollama_slixmpp_omemo_bot

Repository files navigation

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: [email protected]
# Enter Password: 

With OMEMO and Blind Trust enabled, message [email protected] 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 [email protected]

About

Self Hosted LLM Chat Bot Over XMPP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages