HomerandClaude Opus 5.5 dfc897210d LLeMbas 1.7.2: a device that logs in again stays one device
DELETE /api/v1/token takes an optional {"replaced_by": "<new token>"}. When it
is a live token of the same account, the old device's agent chats and its
pending session deletes move to the new token before the old is revoked, and
the audit line says how many. LLeMbas CLI 1.5.2 sends it on every login again;
without it the sign-out is what it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:48:50 +00:00
2026-10-09 22:26:15 +00:00
2026-10-09 22:26:15 +00:00
2026-10-20 16:21:13 +00:00
2026-10-09 22:26:15 +00:00
2026-10-09 22:26:15 +00:00
2026-10-09 22:26:15 +00:00
2026-10-09 22:26:15 +00:00
2026-10-09 22:26:15 +00:00

LLeMbas — waybread for the long road of thought

A self-hosted web UI for your language models, written in Python.
Talks to anything that speaks the OpenAI API. Themed after Middle-earth.


LLeMbas is a server-rendered web application for chatting with language models you run yourself or reach over an API: chats in folders, a library of documents, notes and skills with search, tools and web search, agent chats that run on your own machines through the LLeMbas CLI, accounts with credits and usage, and an OpenAI-compatible API of its own. It is Python and FastAPI with htmx — no bundler, no build step, nothing fetched from a CDN at runtime — and keeps everything in one SQLite database.

Quick start

With Docker. The compose file builds the image locally from the checkout:

git clone https://github.com/LLeMbas/LLeMbas.git && cd LLeMbas
echo "LEMBAS_SECRET_KEY=$(python3 -c 'import secrets;print(secrets.token_urlsafe(48))')" > .env
docker compose up -d --build

It listens on 127.0.0.1:8080. Open it, create the first account — it becomes the administrator — and add a connection to your models. Keep the secret key: changing it signs everyone out and makes stored API keys unreadable. Other settings are in .env.example.

Put a TLS reverse proxy in front for anything beyond your own machine: the service worker and the microphone need HTTPS.

Updating:

git pull && docker compose up -d --build

On a machine of its own (systemd and nginx, or a Proxmox container): see deploy/README.md and https://llembas.eu/server.html.

Licence

MIT.

A note on the theme

This is an independent project, themed as an affectionate nod to J.R.R. Tolkien's world. It is not affiliated with, endorsed by, or connected to the Tolkien Estate, Middle-earth Enterprises, or any related rights holder. All artwork here is original.

Languages
Python 83.7%
HTML 9.1%
JavaScript 3.6%
CSS 3.2%
Shell 0.4%