XMPP – OpenAI API bridge based on tokio-xmpp and jutella.
Supports OpenAI and Azure endpoints and implements rolling context window to reduce costs.
- Install
cargo
from https://rustup.rs/. - Install
jutella-xmpp
from crates.io withcargo install jutella-xmpp
.
The executable will be installed as$HOME/.cargo/bin/jutellaxmpp
. - Alternatively, clone the repo and build the executable with
cargo build --release
. The resulting executable will betarget/release/jutellaxmpp
. - Copy the executable to
/usr/local/bin
.
sudo useradd --system --shell /sbin/nologin --home-dir /nonexistent jutella
- Copy the config example to
/etc
. - Make it readable by
jutella
group:sudo chmod 640 /etc/jutellaxmpp.toml sudo chown root:jutella /etc/jutellaxmpp.toml
- Edit the config to match your configuration.
- Copy systemd service to
/etc/systemd/system
. - Enable it to run on system startup:
sudo systemctl enable jutellaxmpp.service
. - Start the service:
sudo systemctl start jutellaxmpp.service
.