Docs · Getting Started

Getting started

From source to running loop in a few commands. OpenLegal is local-first: nothing here requires an account, a cloud service, or a model credential.

1 · Get the source

The canonical repository for OpenLegal is github.com/M4G3LL4N0/obviouslybad (verified as the project’s configured git remote). It is currently private while the public open-source release is prepared — once published, the link below resolves publicly. Clone it wherever you keep code:

git clone https://github.com/M4G3LL4N0/obviouslybad.git openlegal cd openlegal

If you already have the project installed locally, skip the clone and cd into your existing copy.

2 · Install

Use a virtual environment. Python ≥ 3.10 is required. Dependencies come from the package metadata (click, fastapi, uvicorn, watchdog, pydantic).

python3 -m venv .venv source .venv/bin/activate pip install -e . --no-deps which openlegal # should be $VENV/bin/openlegal

No credentials required

Local-only mode is the default. External model providers are off until you explicitly configure and verify them — so a fresh install is immediately usable and immediately private.

3 · Verify the installation

openlegal doctor openlegal health openlegal status
  • doctor diagnoses your environment, roots, API, and provider state — WHAT / WHY / HOW, secrets never printed.
  • health prints a JSON health report: Python, package, CLI, repository state, filesystem, API, privacy, models, audit.
  • status is a read-only view of matters, models, and privacy state.

4 · Run the engine

openlegal run # plan the work (human-gated) openlegal run --live # execute, still human-gated openlegal tui # live operations console

run is human-gated by design: it plans first, and --live executes with the same gates in place. The synthetic benchmark stays off your real data, and real-matter onboarding follows the conservative checklist in the repository’s user guide.

5 · Launch the application (optional)

openlegal start

This starts the backend application (FastAPI) plus the operations console. To run just the API explicitly:

python3 -m uvicorn legalone.ui.api.api:app --host 127.0.0.1 --port 8101 curl http://127.0.0.1:8101/health curl http://127.0.0.1:8101/mcc # Matter Command Center

Next steps

Explore capabilities

What is implemented, planned, experimental.

Read

Understand the loop

Architecture from filesystem to approval.

Read

Privacy first

Why fail-closed is the default.

Read