{"id":50968173,"url":"https://github.com/sure-scale/doc-haus","last_synced_at":"2026-07-06T19:00:41.834Z","repository":{"id":363794064,"uuid":"1260997792","full_name":"sure-scale/doc-haus","owner":"sure-scale","description":"The open-source legal AI agent. Documents stay on your machine; redlines land in Word. Fork of OpenCode.","archived":false,"fork":false,"pushed_at":"2026-06-10T11:07:53.000Z","size":225967,"stargazers_count":0,"open_issues_count":26,"forks_count":0,"subscribers_count":0,"default_branch":"dochaus","last_synced_at":"2026-06-10T12:13:21.082Z","etag":null,"topics":["ai-agents","docx","legal-documents","legal-tech","llm","opencode","redlining","self-hosted"],"latest_commit_sha":null,"homepage":"https://doc.haus","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sure-scale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-06T05:37:15.000Z","updated_at":"2026-06-10T11:08:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sure-scale/doc-haus","commit_stats":null,"previous_names":["sure-scale/doc-haus"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sure-scale/doc-haus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sure-scale%2Fdoc-haus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sure-scale%2Fdoc-haus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sure-scale%2Fdoc-haus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sure-scale%2Fdoc-haus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sure-scale","download_url":"https://codeload.github.com/sure-scale/doc-haus/tar.gz/refs/heads/dochaus","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sure-scale%2Fdoc-haus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35202786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","docx","legal-documents","legal-tech","llm","opencode","redlining","self-hosted"],"created_at":"2026-06-18T23:00:24.284Z","updated_at":"2026-07-06T19:00:41.767Z","avatar_url":"https://github.com/sure-scale.png","language":"TypeScript","funding_links":[],"categories":["Full-Stack Legal Platforms \u0026 Suites"],"sub_categories":["Multilingual \u0026 Regional Legal Models"],"readme":"\u003ch1 align=\"center\"\u003edoc.haus\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003eNot a chatbot. A legal team that works on your machine.\u003c/strong\u003e\u003cbr /\u003eOpen-source multi-agent legal AI — your documents stay on your machine; the redlines land in Word.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://doc.haus\"\u003e\u003cstrong\u003edoc.haus\u003c/strong\u003e\u003c/a\u003e — the website, with video demos of everything below.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/badge/license-MIT-blue?style=flat-square\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/anomalyco/opencode\"\u003e\u003cimg alt=\"Built on OpenCode\" src=\"https://img.shields.io/badge/built%20on-OpenCode-f59e0b?style=flat-square\" /\u003e\u003c/a\u003e\n  \u003cimg alt=\"Runtime\" src=\"https://img.shields.io/badge/runtime-Bun-000000?style=flat-square\" /\u003e\n  \u003cimg alt=\"Docker Compose\" src=\"https://img.shields.io/badge/docker%20compose-up-2496ED?style=flat-square\u0026logo=docker\u0026logoColor=white\" /\u003e\n  \u003cimg alt=\"TypeScript\" src=\"https://img.shields.io/badge/TypeScript-3178c6?style=flat-square\u0026logo=typescript\u0026logoColor=white\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Asking a question and redlining a contract in doc.haus\" src=\"screenshots/conversation.gif\" width=\"800\" /\u003e\n\u003c/p\u003e\n\n---\n\n- **Documents never leave your infrastructure.** Each matter gets its own local index on\n  your own disk; there is no doc.haus cloud, and the LLM models the agents run on can be\n  local too.\n- **Word-native.** Real tracked changes baked into the `.docx` itself — open the result\n  in Word and accept or reject each change, exactly as if a colleague had marked it up.\n- **Every answer cites the clause it came from**, quoted verbatim, so you can verify it\n  before you rely on it.\n\n## Get started\n\nYou need [Bun](https://bun.sh) (`curl -fsSL https://bun.sh/install | bash`). Then:\n\n```bash\ngit clone https://github.com/sure-scale/doc-haus.git \u0026\u0026 cd doc-haus\n./start.sh --demo\n```\n\nThe browser opens with a demo matter ready: a fictional letter of engagement, already\ningested. On first run the app asks you to connect a model provider in **Settings** —\nan API key (Anthropic, OpenAI, …), a Google Cloud sign-in, or a fully local endpoint\n(Ollama, vLLM, LM Studio). See [docs/providers.md](docs/providers.md) for copy-paste\nconfigs.\n\nTry asking: *What is the cap on the firm's liability?* — you get the answer cited to\nthe exact clause, quoted from the document. More things to try in\n[demo/README.md](demo/README.md).\n\nTo work on your own documents: create a matter, upload a `.docx` or `.pdf` (including\nflat scans — OCR runs automatically when [Poppler](https://poppler.freedesktop.org) and\n[Tesseract](https://github.com/tesseract-ocr/tesseract) are installed), and ask.\nEverything — conversations, documents, the index — persists on your machine.\n\n### Or with Docker\n\nNo Bun install needed — just Docker:\n\n```bash\ngit clone https://github.com/sure-scale/doc-haus.git \u0026\u0026 cd doc-haus\ndocker compose up\n```\n\nOpen \u003chttp://localhost:5173\u003e and connect a provider in **Settings** on first run. Matters\npersist in a `dochaus-workspace` volume. For the Google Vertex provider, uncomment the\ngcloud mount in `docker-compose.yml`.\n\n## What you can do\n\n- **Every engagement gets its own private workspace.** Matters are separate,\n  self-contained workspaces — each holds its documents, conversations, and a private\n  search index, and nothing is shared between them.\n- **Ask in plain English; get citations or redlines.** One conversation handles both:\n  questions come back with the clause cited and quoted, and edit requests land as\n  tracked changes in the `.docx` itself.\n- **Draft new documents from a template or from scratch.** Ask for an NDA or any\n  document and doc.haus drafts it into the matter — filling a firm template's\n  placeholders or composing from scratch onto a styled blank — then writes and\n  indexes the `.docx` so you can review and redline it right away, with anything it\n  can't know left as bracketed placeholders.\n- **Build a firm template library.** A dedicated Templates section holds the reusable\n  drafting bases shared across every matter: upload a `.docx`, describe the template\n  you need to the Template Builder and it composes one, or save a finished matter\n  document as a template — with every client-specific detail scrubbed into\n  `[insert ...]` placeholders before it enters the library.\n- **Pick an assistant — or let Auto choose.** Switch between focused assistants —\n  *Q\u0026A*, *Redline*, *Research*, *Draft* — or leave it on *Auto* and doc.haus routes\n  each message to the right agent as the conversation moves between asking, drafting,\n  editing, and researching.\n- **Run a full multi-agent review in one click.** Pick a workflow like *Full review*\n  and a reviewer, an adversarial challenger, and a summarizer each read every\n  document, then hand back one combined report — the multi-agent engine doc.haus\n  inherits from OpenCode, pointed at contracts.\n- **Review every contract in the matter as a grid.** Define question-columns once —\n  *Liability cap*, *Payment terms*, *Governing law* — and doc.haus answers them for\n  every document in the matter, side by side.\n\nVideo demos of each on [doc.haus](https://doc.haus).\n\n## Why firms can trust it\n\ndoc.haus is **self-hosted on infrastructure you control** — no doc.haus cloud, no\nmulti-tenant service, no vendor holding your clients' privileged documents. Document\ntext and embeddings never leave your disk; the only thing that touches the network is\nthe prompts the agents send to the model providers you chose, and those can be local\nmodels so nothing need leave at all. Everything binds to localhost by default; to put it in\nfront of a team, front it with the reverse proxy and SSO your firm already trusts. MIT\nlicensed — embed it, modify it, ship it. Full posture and vulnerability reporting in\n[SECURITY.md](SECURITY.md).\n\n## Built on OpenCode\n\ndoc.haus is a true fork of [OpenCode](https://github.com/anomalyco/opencode) that\nretargets its agent harness from code onto legal documents — so it inherits a real,\nbattle-tested agent engine (multi-agent review, permissions, skills, 75+ model\nproviders) and keeps pulling upstream improvements via merge. The concepts map 1:1:\n\n| Legal concept        | OpenCode primitive             |\n| -------------------- | ------------------------------ |\n| Matter               | project (a directory)          |\n| Document             | a file in the matter dir       |\n| Conversation         | session                        |\n| Legal agent          | agent                          |\n| Multi-agent review   | primary agent + Task subagents |\n| Retrieval / citation | a custom tool                  |\n\nBuilt by [Nick Watson](https://www.linkedin.com/in/nickpwatson/) from\n[SureScale.ai](https://surescale.ai) on OpenCode by the Anomaly team, MIT licensed. The\nheavy lifting — the agent engine itself — is theirs; doc.haus is the legal layer on top.\ndoc.haus is not affiliated with or endorsed by the OpenCode team.\n\nOpen to working with firms on implementations, customizations, and integrations — reach\nout on [LinkedIn](https://www.linkedin.com/in/nickpwatson/).\n\n## Credits\n\n- [Docxodus](https://github.com/JSv4/Docxodus) — DOCX parsing and manipulation\n- [OpenCode](https://github.com/anomalyco/opencode) — agent shell this is built on\n\n## Disclaimer\n\ndoc.haus is software, not a law firm. Its output is **not legal advice** and, like all\nAI output, it can be wrong. Every answer cites its source so it can be checked — check\nit, and review anything doc.haus produces with a licensed attorney before relying on it.\n\n## Learn more\n\n- [doc.haus](https://doc.haus) — the website, with video demos.\n- [docs/architecture.md](docs/architecture.md) — how it works: the three processes, the\n  agents and tools, models and providers, running pieces by hand, mergeability.\n- [docs/providers.md](docs/providers.md) — connect Anthropic, OpenAI, Google Vertex, or\n  a fully local model.\n- [demo/README.md](demo/README.md) — the demo matter and what to try.\n- [CONTRIBUTING.md](CONTRIBUTING.md) · [SECURITY.md](SECURITY.md) · [FUTURE.md](FUTURE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsure-scale%2Fdoc-haus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsure-scale%2Fdoc-haus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsure-scale%2Fdoc-haus/lists"}