OpenGauss is designed to go from zero to a running proof agent in a single terminal session. This guide walks you through cloning the repo, running the one-line installer, registering a Lean 4 project, and spawning your firstDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/math-inc/OpenGauss/llms.txt
Use this file to discover all available pages before exploring further.
/prove workflow — all in under five minutes.
Prerequisites
Before you begin, make sure you have the following available:- git — to clone the repository
- uv — the Python package manager used by the installer (auto-installed by
install.shif missing) - ripgrep (
rg) — used bylean4-skillsfor local Lean search - Claude or Codex auth — either run
claude auth login/codex auth loginbeforehand, or have yourANTHROPIC_API_KEYorOPENAI_API_KEYready to paste duringgauss setup - A Lean 4 project — an existing repo with a
lakefile.leanorlakefile.toml, or willingness to create one during setup
After installation, run
gauss doctor at any time to check which prerequisites are satisfied, confirm your auth mode, and see whether the current directory resolves to an active Gauss project. It will tell you exactly what is missing before you try to launch a workflow.Steps
Clone and install OpenGauss
Clone the repository and run the one-line installer. The script installs The installer prints progress as it works. When it finishes you will either be attached to the
uv if needed, creates a repo-local installer environment, installs the local runner, executes the shared opengauss installer flow, and auto-attaches you to a gauss tmux session.gauss tmux session automatically, or you will see the exact tmux attach -t gauss command to run.Configure your provider (optional)
If you did not pre-authenticate Claude or Codex, run the interactive setup wizard now. It walks you through choosing a backend, entering API keys, and saving them to You can also export your key directly in the shell before launching:Skip this step entirely if you already ran
~/.gauss/.env.claude auth login or codex auth login — Gauss will detect those credentials automatically.Launch the Gauss CLI
Start the interactive CLI. If you were auto-attached by the installer you are already inside it; otherwise run:You will see the Gauss banner and an interactive prompt. Type
/chat to enable inline onboarding and plain-language chat if you want a guided tour before diving in.Register a Lean 4 project
Tell Gauss which Lean project to use for all subsequent workflow agents. If you already have a Lean project on disk:If you want to start fresh from a template:Gauss writes a
.gauss/project.yaml into the project root and sets it as the active project for the current session. Every workflow agent you spawn from now on runs inside that project root.Spawn a prove agent
Launch a guided proving agent against the active project. You can pass a specific theorem name, a file scope, or flags — or start with no arguments to let the agent discover work to do:To target a specific goal:Gauss spawns a managed backend child agent (Claude Code by default) and forwards your arguments to the
lean4-skills /lean4:prove workflow command inside the project root. You will see the agent session open in a new tmux pane.What to do next
With OpenGauss running and your first agent spawned, a natural next step is to explore the full range of workflow commands —/draft, /review, /formalize, /autoprove — or read the project model documentation to understand how .gauss/project.yaml scopes each agent. The core loop is always the same: