Lectern
GitHubDownload
Documentation

Overview & setup

Lectern is one cockpit for the coding agents you already use — Claude Code, Antigravity (Gemini), and OpenCode (OpenRouter + free models). It adds what they don't have alone: a Conductor that routes each task to the best model, a persistent brain (memory, skills, your machine's profile, a code graph), and one session history shared by the desktop app, the terminal UI, and the CLI. Local-first, Linux-first, open source under Apache-2.0.

Live demo · one turn, end to end

1 · Get the pieces

Everything builds from one public repo. From a fresh clone:

$ git clone https://github.com/ShrimpScript/lectern && cd lectern && cargo buildcopy
  • Desktop app: cd apps/desktop && npm install && npm run app (Linux needs the WebKitGTK dev libs; unsigned Windows/macOS builds come off public CI — see Downloads).
  • Terminal UI: cd apps/tui && bun install, then ./target/debug/lectern tui — or compile the single binary with bun build --compile.
  • CLI + daemon: built by the cargo command above (lectern, lecternd).

2 · Connect the AI you already pay for

Lectern drives each provider's own CLI, so your keys and logins never touch Lectern. Sign in to Claude Code (claude) and/or Antigravity (agy) once, then:

$ lectern doctor # verifies Claude Code, Antigravity, OpenCodecopy

No keys at all? OpenCode's built-in free models work with zero configuration, and the mock backend exercises every pipeline for nothing.

Want zero cloud? Point Lectern at Ollama and it runs entirely on your machine — no API keys, no per-token bill, and nothing leaves the box. Install Ollama, pull a code-tuned model, and Lectern auto-detects it (the model picker flags the ones that are strong for coding):

$ curl -fsSL https://ollama.com/install.sh | sh && ollama pull qwen3-codercopy

Local quality scales with your hardware — a code model like qwen3-coder shines on a 24-32GB GPU or Mac, while a smaller one still handles everyday edits on a 16GB laptop. It's the most direct answer to the two things developers most want from an agent: no surprise token bill, and code that never leaves their machine.

3 · First run

$ cd ~/code/your-repo && lectern run "explain this repo"copy

The first run indexes the repo into the brain; every later session starts already knowing your code. In the desktop app the same happens when you open a folder. Without --apply, edits are proposals held behind the Apply gate until you accept them.

Live demo · the Apply gate

Where to next

By feature — what each part does and how it works:

  • Chat commands — every slash command, and how skill replay works.
  • Conductor & routing — how Auto picks a model, and how /conduct plans, fans out, and cross-reviews.
  • The brain — memory, recall without draining tokens, the code graph.
  • Scheduling — queue a prompt; the daemon runs it when due.
  • The Hub — create, import, and share skills.

By surface:

Next: Chat commands
Lectern

An engine for your AI — local-first and backend-agnostic.

Product
OverviewPlatformFree & open sourceDownloadChangelog
Resources
DocsHubStudiesChangelog
Open source
GitHubLicense (Apache-2.0)Security
© 2026 Lectern · open source under Apache-2.0
One engine under your coding agents