Open-source legal AI platform for document review, drafting, and legal research, built on Next.js, Express, and Supabase.
FuturixAI-and-Quantum-Works/Prism-Legal-OS
Self-hostable legal OS for drafting, reviewing, and managing contracts, with an AI assistant named Luna for research and document analysis.
Open-source alternative to:Ironclad
DocuSign CLM
- Stars
- 337
- Forks
- 12
- Open issues
- 6
- Last commit
- 17 days ago
What is it?
Prism is an open-source contract and legal work management system that brings drafting, document review, version history, collaboration, and approvals into one workspace. Its built-in AI assistant, Luna, helps research, draft, and refine documents, answer questions about uploaded files, and extract key terms across multiple documents in a configurable review table.
The project ships 61 contract and legal-document templates, including 54 Word and seven HTML templates with guided fields, and supports checking contracts against custom review playbooks. Documents can be edited with clause-level comments and exported as Word or PDF files.
The stack is a React and Vite frontend, an Express API with Better Auth and Drizzle ORM on PostgreSQL, a background worker for indexing and analysis jobs, Qdrant for document search, and S3-compatible storage. Docker Compose starts all services for a quick local setup, and the project is also offered as a managed service by FuturixAI. It is licensed under AGPL-3.0.
Key features
- 01Shared legal workspaces with role-based access for agreements, versions, and collaborators
- 02AI drafting and document Q&A through the Luna assistant, with source references
- 0361 bundled contract templates in Word and HTML formats with guided fields
- 04Multi-document tabular review for comparing key terms
- 05Contract review against custom playbooks, with clause-level comments and version history
- 06Collaborative approvals with activity history, exporting to Word or PDF
Use cases
- In-house legal teams drafting and reviewing contracts across matters
- Organizations that need to self-host legal document tools and keep data on their own infrastructure
- Teams comparing terms across many agreements in a single review table
- Legal departments enforcing consistent review criteria through shared playbooks
Quick start
- 1
Clone the repository
git clone https://github.com/FuturixAI-and-Quantum-Works/Prism.git - 2
Copy the example environment file, then set RESEND_API_KEY and OPENAI_API_KEY in .env
cp .env.example .env - 3
Start Prism with Docker Compose, then open http://localhost:8080
docker compose up -d
Things to know
- Requires Docker Compose plus Resend and OpenAI API keys for sign-in email and AI features.
- Document search also needs Qdrant, and background analysis needs the worker process.
- AI output and templates need qualified legal review before use.
Topics
FAQ
- What is Prism-Legal-OS?
- Self-hostable legal OS for drafting, reviewing, and managing contracts, with an AI assistant named Luna for research and document analysis. Prism is an open-source contract and legal work management system that brings drafting, document review, version history, collaboration, and approvals into one workspace. Its built-in AI assistant, Luna, helps research, draft, and refine documents, answer questions about uploaded files, and extract key terms across multiple documents in a configurable review table.
- Is Prism-Legal-OS free to use? What license does it have?
- Prism-Legal-OS is open source under the AGPL-3.0 license. Check the license terms before using it in commercial products.
- Is Prism-Legal-OS still maintained?
- Actively maintained. The last commit to Prism-Legal-OS was on Oct 3, 2026.
- What can I use Prism-Legal-OS for?
- In-house legal teams drafting and reviewing contracts across matters Organizations that need to self-host legal document tools and keep data on their own infrastructure Teams comparing terms across many agreements in a single review table Legal departments enforcing consistent review criteria through shared playbooks
- How do I install Prism-Legal-OS?
- Clone the repository: git clone https://github.com/FuturixAI-and-Quantum-Works/Prism.git Copy the example environment file, then set RESEND_API_KEY and OPENAI_API_KEY in .env: cp .env.example .env Start Prism with Docker Compose, then open http://localhost:8080: docker compose up -d
- Where can I get Prism-Legal-OS?
- The source code and installation instructions are on GitHub: https://github.com/FuturixAI-and-Quantum-Works/Prism-Legal-OS
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Self-hosted accounting app that uses LLMs to extract data from receipts, invoices and PDFs into a structured transaction database.
Open-source, cross-platform AI chat client for Web, desktop and mobile that connects to OpenAI, Claude, Gemini, DeepSeek and self-hosted models.
LobeHub is a platform for organizing AI agents into always-on teams that can be hired, scheduled, and reviewed from one place.
Open-source platform that turns any topic or document into an interactive classroom with AI teachers, slides, quizzes and simulations.
Self-hosted, open source AI assistant and persistent bot platform where you choose the model and sandbox, on web, desktop, iPhone and Android.