Servers & monitoring
TheoremOS
Open-source Lean 4 research workbench and modular agent runtime - inspect AI proof attempts and re-verify the original theorem with the Lean kernel, from Westlake University.
Available on these platforms
Optional: ↗ - the app also works without your own server.
The CLI replay runs fully local with no model calls. The hosted workbench is an allowlisted preview and live runs need your own model-provider key, which can incur provider charges. The workbench self-hosts with Docker Compose.
Compatibility details and official sources
- Linux - CLI runner (Bun + pinned Lean toolchain)
- Web - Hosted preview (allowlisted) with a no-account practice exercise
Official availability checked 2026-11-29. Availability is not feature parity. The recorded release and license refer to the linked source project; separate clients can differ. No install or compatibility test was run.
Before you install
Proofs the model can't grade itself.
- What does it run on?
- Linux CLI for the local replay and research runs (Bun, pinned Lean 4 toolchain, Bubblewrap), a hosted web workbench in allowlisted preview, and a Docker Compose self-host. No Windows or macOS route is documented.
- Where is my data?
- The preset replay is fully local: no account, no API key, no model calls. Live research runs send problems to the model provider you configure with your own key, which can incur provider charges. Attempt archives stay in your run directory; the separate public proof archive is opt-in publication, not automatic.
- What will I maintain?
- A stated research preview (v0.1.0) from a university lab, first public commits in October 2026: expect evolving CLIs and configs, pinned toolchain updates via elan, and an allowlist step for the hosted workbench. Self-hosting adds Docker upkeep and about 30 GiB of disk per concurrent Mathlib run.
Advice and funding routes source-checked . Researched, not an install or restore test. Report a correction

TheoremOS is a research workbench for mathematics with AI agents: an agent proposes Lean 4 proof steps, and the original theorem is re-checked independently by the Lean kernel before anything counts as proved. A model claiming completion is never accepted on its own - the project calls this zero-trust acceptance, and every attempt is archived so a run can be paused, inspected and resumed. The five research policies (search, evidence checks, scheduling, context and roles) are replaceable versioned modules, so studies can be reproduced against a pinned revision.
It comes from WestlakeNLP, the Natural Language Processing lab at Westlake University, and is a stated research preview (v0.1.0). The web workbench, the CLI runner, the modules and the test suite are AGPL-3.0-only in this repository; the public proof archive and product site live in a separate repository under rights-reserved terms, which the project itself is plain about.
Quick start
Checked against the project’s repository, documentation and hosted exercise on November 29, 2026. We ran the preset Linux replay firsthand on a clean machine (it passed with real Lean kernel checks and no model calls) and completed the official browser exercise without an account (see the screenshot). We did not run a live model-backed research run: that needs your own provider key and can incur provider charges.
Jump to: Linux · Web · Self-host
Linux
The preset replay needs no API key and no model: it submits a
deliberately failing candidate, inspects the Lean diagnostic, repairs
it with Nat.zero_add and re-verifies the whole problem.
- Install Git, Bun 1.2+, Node.js 22+, Python 3 and Bubblewrap, then
the pinned compiler:
elan toolchain install leanprover/lean4:v4.36.0. - Clone and install:
git clone https://github.com/HuggingMath/theorem-os.git && cd theorem-os && bun install --frozen-lockfile. - Run the replay and read the result:
export THEOREMOS_REPLAY="$PWD/../theorem-os-runs/first-replay", thenbun run math doctor --lean-only,bun run math example replay --dir "$THEOREMOS_REPLAY"andbun run math inspect --run "$THEOREMOS_REPLAY/result.json". Only a finalevaluated_passedmeans the checks passed on your machine. Running real problems with a model (example resume) calls your configured provider and can cost money.
Linux · Lean 4 research workbench: inspect AI proof attempts and re-verify the original theorem with the Lean kernel (research preview). Paste into your AI assistant. It may only be able to guide you. Review changes before running anything.
Researched from the project's documentation. Checked 2026-11-29. No AI account or connection is needed here.
Read or copy the prompt manually
Web
- The browser exercise at
app.theoremos.top/practice.html
needs no account or key: approve the plan, inspect the failing
rflattempt, send the repair guidance, and read the per-goal Lean kernel check receipts. - The full cloud workbench at app.theoremos.top is an allowlisted preview: the project says access requires an approved email and a compatible model-provider (Responses API) key, and live runs may incur provider charges.
Web · Lean 4 research workbench: inspect AI proof attempts and re-verify the original theorem with the Lean kernel (research preview). Paste into your AI assistant. It may only be able to guide you. Review changes before running anything.
Researched from the project's documentation. Checked 2026-11-29. No AI account or connection is needed here.
Read or copy the prompt manually
Self-host
The workbench self-hosts with Docker Compose (web, worker and TeX
services), per the project’s deployment guide: Linux, Docker Compose
and /dev/fuse, with about 30 GiB of disk headroom recommended per
concurrent Mathlib run. Build from the checked-out commit with
docker compose -f apps/web/compose.yml build worker web tex and
start with docker compose -f apps/web/compose.yml up -d web, or
pull the prebuilt GHCR images the project publishes for the same
commit. Keep your provider key in the compose environment, never in
chat or in Git.
Self-host · Lean 4 research workbench: inspect AI proof attempts and re-verify the original theorem with the Lean kernel (research preview). Paste into your AI assistant. It may only be able to guide you. Review changes before running anything.
Researched from the project's documentation. Checked 2026-11-29. No AI account or connection is needed here.
Read or copy the prompt manually
Why it’s listed
AI proof tooling often asks you to trust the model’s own word. TheoremOS is built around the opposite instinct: independent Lean kernel re-verification of the frozen original problem, archived attempts, and swappable research modules you can pin and reproduce. It is also honest about where it stands - a research preview from a university lab, first public commits in October 2026, with the allowlist and provider-key costs stated up front. That makes it a promising preview to watch and shape rather than a finished product; worth a recheck as it matures.
Documentation
Tags: Development, Self-hosted, Research, Local-first
Want help setting this up? Ask FOSSadmin ↗
Find FOSS Index useful? Help keep it growing. Your contribution supports maintaining this directory.