Debug your contracts before they debug you.
An AI-powered tool that analyzes legal contracts to find risks, loopholes, and unfavorable terms — explained in plain English.
Reading contracts is tedious. Missing a bad clause can cost you thousands. Contract Debugger scans your documents and highlights what matters:
- Finds Hidden Risks — Spots unfavorable terms, missing protections, and legal loopholes
- Explains in Plain English — No law degree required to understand the issues
- Suggests Better Language — Get AI-rewritten clauses that protect your interests
- Scores Each Clause — See at a glance which parts need attention (Low → Critical)
- Upload your contract (PDF or Word)
- Review the AI analysis of each clause
- Accept or revise suggested changes
- Export your reviewed contract
# Clone the repo
git clone https://github.com/Vaquill-AI/contract-debugger.git
cd contract-debugger
# Install dependencies
npm install
# Add your OpenAI API key
echo "OPENAI_API_KEY=sk-your-key-here" > .env
# Start the app
npm run devOpen http://localhost:3000 and upload a contract.
Any contract in PDF or DOCX format:
| Type | Examples |
|---|---|
| Employment | Offer letters, employment agreements |
| NDAs | Confidentiality agreements, mutual NDAs |
| Services | Freelance contracts, consulting agreements |
| Leases | Rental agreements, commercial leases |
| Vendor | Supply agreements, procurement contracts |
| Licensing | Software licenses, IP agreements |
- Frontend: Next.js 15, React 19, Tailwind CSS
- AI: OpenAI GPT-4o
- Storage: IndexedDB (everything stays in your browser)
- Parsing: pdf-parse, mammoth.js
Your documents never leave your device. The app stores everything locally in your browser's IndexedDB. Only the extracted text is sent to OpenAI for analysis — no files are uploaded to any server.
One-click deploy to Vercel:
Or deploy manually:
npm run build
npm start| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY |
Yes | Your OpenAI API key |
OPENAI_MODEL |
No | Model to use (default: gpt-4o) |
MIT — use it however you want.
This tool provides AI-generated analysis for informational purposes only. It is not legal advice. Always consult a qualified attorney for legal matters.

