Table of Contents
LLeMbas CLI — developer wiki
LLeMbas CLI is a terminal coding agent and project manager: the lembas
command. TypeScript on Bun, rendered with OpenTUI and Solid, shipped as one
compiled, signed binary for Linux (x64, x64 without AVX2, arm64). It is the
agent of a LLeMbas server: it signs in to
one, uses that server's models through its /v1, its memory and search, and
lets its web UI (and LLeMbas Desktop) work the same sessions. It works in a
project under four permission modes with a git snapshot of every turn, keeps
tool results short without ever rewriting what the model has read, keeps skills
and knowledge bases on the machine, and speaks MCP.
This describes 2.0 on dev. 1.x on main also talks to any LLM API of its
own — OpenAI-compatible, Responses, Anthropic, Gemini, Ollama — through custom
connections, and works with a 1.x server only (link protocol 2); 2.0 drops
those connections and speaks link protocol 3 to a 2.0 server alone.
This wiki is for people changing the code. User documentation lives on the website:
| Looking for | Go to |
|---|---|
| Installing and using the CLI | https://llembas.eu/cli.html and https://llembas.eu/docs/ |
| Every configuration key | https://llembas.eu/docs/cli-configuration.html |
| What changed in each release | https://llembas.eu/changelog.html and CHANGELOG.md |
| Verifying a release by hand, reporting a vulnerability | SECURITY.md in the repository |
| The server | LLeMbas |
Pages
| Page | What it covers |
|---|---|
| Working notes | Read first. The rules the project is built on and why, building, testing and releasing, and the lessons from bugs that shipped looking correct — kept as rules. |
| Architecture | The layout of src/: the app wiring, the engine loop, providers, tools, permissions, the session store, the TUI, the ACP agent, hub, share and link, updates and signing, the service. |
| Harness parity | The harness design shared with LLeMbas: every concept mapped to its file in both projects, and where they still differ. |
| Commands and menus | What every slash command shows — which are menus, on the one menu component, and what each says where there is no menu; the marks a line or a row carries. |
| Configuration | For developers: how configuration is loaded, layered, trusted and validated, and what to touch when adding a key. |
Where it comes from
It takes its project system, permission rules, patch and edit matching, question
tool and autocomplete from OpenCode, its
renderer from OpenTUI, its memory,
skills, MCP client, threat patterns, voice and look from
Hermes Agent, and its connection
knobs, model quirks, chunker, reasoning splitter and prompt texts from LLeMbas.
Every lifted file says so in its header; THIRD_PARTY.md lists the licences.
Getting going
bun install
bun run dev # the TUI from source
bun test # unit and end-to-end tests against a scripted fake endpoint
bunx tsc --noEmit
bun run smoke # build dist/lembas and drive the compiled binary
scripts/ci.sh # everything a release has to pass
Running the TUI from source outside the repository needs
bun --config=<repo>/bunfig.toml, or the Solid JSX preload is not loaded.