OpenLex reads contracts, searches the law and drafts with you, in Word, in the app or in your terminal. It runs on your machine, uses the model you choose, and every answer quotes its source.
curl -fsSL https://openlex.pinemarshlands.com/install | bash
Needs Node.js 20+. Installs into ~/.openlex, checks the release checksum, changes nothing else. Read the script · Releases
Every finding carries a verbatim quote from your document or the statute. If the quote isn't there, the finding isn't shown as fact.
Reviews, chronologies and grid cells keep only answers whose quote appears word for word in the document. A judge checks suggested edits against the cited law.
Rows are documents, columns are your questions: yes/no, choice, dates, amounts, or built on another column. Every cell links to its quote. Export to Excel.
Local-only by default. Allow a cloud model per matter, limit it to EU regions, pseudonymise names before anything leaves. Privileged matters never leave.
Describe the goal; OpenLex proposes the steps and stops at checkpoints where judgment is yours. Nothing runs before you approve.
Watch new EU acts, the Austrian federal gazette, any RSS feed or a public page. Alerts land in the matter with their source.
A Word add-in with tracked changes and comments, a desktop app, Outlook, a CLI and a local API: one engine, one set of matters.
Run fully local with llama.cpp, or use your own key with a hosted provider. The data policy decides what may leave the machine, matter by matter, and every call is written to an audit log without its content.
The harness map in openlex.json decides which model handles each step, which firm rules apply at each decision point, and which agent profiles your lawyers can call. The firm sets it; partners can lock it.
// which model does what "routes": { "roles": { "write": "anthropic:claude-opus-5-5", "judge": "local" }, "rules": [{ "when": { "privileged": true }, "use": "local" }], "fallback": ["local"] }, // firm rules at the decision points "hooks": { "before_answer": [{ "match": { "notRegex": "§|Art\\." }, "action": "warn", "message": "No citation — verify." }], "on_suggestion": [{ "match": { "regex": "(?i)indemnif" }, "action": "flag", "message": "Partner sign-off." }] }, "lock": ["routes"]
The engine, the Word add-in, the CLI, skills and playbooks are Apache-2.0. The community build needs no account and no licence server. Firms that want curated law packs, the Lotus models and support take a subscription.
The engine, CLI, Word add-in code, skills, playbooks and the harness map. Your models, your law sources.
The desktop app and Word add-in with signed updates, local law packs per jurisdiction, the Lotus models, and support.
Connect your DMS, set up the harness map, firm skills and playbooks, and bring OpenLex to your infrastructure.
curl -fsSL https://openlex.pinemarshlands.com/install | bash