doc.haus
Open-source multi-agent legal AI · built on OpenCode

Not a chatbot. A legal team
that works on your machine.

doc.haus is a team of AI specialists for legal work: ask a question and the answer comes back with the exact clause cited; ask for a change and real tracked changes are written into the .docx. Full reviews run like a deal team — one agent drafts the findings, an adversarial challenger tries to tear them apart, and only what survives reaches you.

Private by architecture Documents and their index never leave your disk. There is no doc.haus cloud, and the model itself can run locally.
Word-native Real tracked changes baked into the .docx. Open in Word and accept or reject each edit, as if a colleague marked it up.
Verifiable Every answer cites the clause it came from, quoted verbatim, so you can check it before you rely on it.
True redaction Redacted content is removed from the .docx itself — text and metadata, never an overlay — verified clean and logged per matter.

What you can do

01

Ask & verify

Ask in plain English; get citations or redlines

One conversation handles both. Ask a question and the answer arrives with the clause cited and quoted; ask for a change and the redlining agent writes it as tracked changes into the .docx — the right agent is picked automatically.

02

Draft & reuse

Draft a new document from a template or from scratch

Ask for an NDA — or any document — and doc.haus drafts it into the matter, filling a firm template's placeholders or composing from scratch onto a styled blank. The .docx is written and indexed on the spot, ready to review and redline, with anything it can't know left as bracketed placeholders for you to fill.

03

Review at scale

Run a full multi-agent review in one click

Pick a workflow like Full review and a reviewer, a challenger, and a summarizer each read every document, then hand back one combined report.

04

Private & safe

Redact for real — content removed, not covered

Ask the Redact assistant to find PII and sensitive content and it proposes every removal for your approval before anything changes. Approved redactions are removed from the .docx itself — text and metadata, never a black box drawn over the words — verified clean and logged: what was removed, by whom, and why.

Get started

Open Terminal and run — the first line installs Bun (skip it if you already have it):

bash — macOS
$ curl -fsSL https://bun.sh/install | bash$ git clone https://github.com/sure-scale/doc-haus.git && cd doc-haus$ ./start.sh --demo

The browser opens on a demo matter — a fictional letter of engagement, already ingested — and walks you through connecting a model provider from there.

Security

Why firms can trust it

doc.haus is self-hosted on infrastructure you control — no doc.haus cloud, no multi-tenant service, no vendor holding your clients' privileged documents. Document text and embeddings never leave your disk; the only thing that touches the network is the prompt sent to the model provider you chose, and that provider can be a local model so it need not leave either. Everything binds to localhost by default. MIT licensed — embed it, modify it, ship it. Full posture and vulnerability reporting in SECURITY.md.

Built on OpenCode

doc.haus is a true fork of OpenCode that retargets its agent harness from code onto legal documents — so it inherits a real, battle-tested agent engine and keeps pulling upstream improvements via merge. The concepts map almost one to one:

Matter A project directory holding one case and its documents.
Document A file the agent can read, search, and revise in place.
Conversation A session that keeps full context across the matter.

Changelog

Jun 12, 2026
Permanent redaction, scanned documents & tamper-proofing
  • Redact for real: the new Redact assistant finds names, personal details, and sensitive passages, asks your approval, then removes them from the document itself — permanently, with a log of what was removed, by whom, and why.
  • Scanned documents now work: upload a scanned PDF — a motion, a filing, an exhibit — and doc.haus reads it like any other document.
  • Defense against adversarial documents: instructions concealed in a file to manipulate the AI are detected, flagged for your review, and never executed.
  • A cleaner, calmer interface: refreshed layouts and typography, lighter chat, and clear progress while reviews run.
  • See inside a workflow before you run it: which specialists it uses and what each one is asked to do.
Jun 11, 2026
Playbooks, templates & your firm's know-how
  • Hold contracts to your standards: bind a negotiation playbook to a matter and reviews flag any clause that deviates, proposing your approved language as tracked changes — with starter playbooks included for NDAs, engagement letters, services agreements, and more.
  • Teach it how your firm works: capture clause standards, checklists, and drafting guidance once, and the assistants apply them in every review.
  • Guided drafting from your templates: add a Word template and the assistant interviews you for the terms, confirms a summary with you, then assembles the document.
  • Build your own reviewers and workflows: describe a focused reviewer or a whole review process in plain English and it becomes a repeatable process you can run in any matter.
  • 30 jurisdictions: a matter can carry several at once — the UK nations, Ireland, US federal and key states, Canada, Australia, the EU, and more — and cross-border questions are answered against each.
  • Every quote double-checked: quotations are verified word-for-word against the live document, and case citations are checked against a public database of court decisions.
  • Two new specialists: compare two versions of a contract clause by clause, or pull a list of every obligation and key date across the matter, with verified quotes.
  • Talk it over: comment on any answer in the review grid — comments stay with the matter and carry into the Excel export.
  • Privilege protection: a privilege and work-product check runs before anything leaves the workspace.
  • Make it yours: set attorney and firm details, drafting style, approval preferences, and default jurisdictions for new matters.
Jun 10, 2026
First public release
  • Ask questions in plain English and get answers with the exact clause quoted and cited.
  • Ask for changes and get real tracked-change edits in the Word document itself.
  • Run a one-click full review by a team of AI specialists that check each other's work.
  • Private by design: your documents never leave your machine. Free and open source.
doc.haus Built by Nicholas Watson · SureScale.ai · doc-haus · Docxodus · Open Code · MIT licensed.

doc.haus is software, not a law firm. Its output is not legal advice and can be wrong — check the cited source and review anything it produces with a licensed attorney before relying on it.