ContractGuard
AI agent that reads the fine print so you don't have to. Upload any contract → get red flags, unfair terms, and plain-English explanations in seconds.
What is ContractGuard?
AI agent that reads the fine print so you don't have to. Upload any contract → get red flags, unfair terms, and plain-English explanations in seconds.
Overview of ContractGuard
What it is
ContractGuard is an open-source AI agent that reads contracts and provides red flags, unfair terms, and plain-English explanations in seconds. It combines LLM-based analysis with a deterministic statute checklist for jurisdiction-specific rules. It works with any OpenAI-compatible API, including OpenRouter, OpenAI, and local Ollama models.
Key features
- Structured analysis: findings are categorized into red flags, warnings, protections, and missing protections, with an overall fairness score from A+ to F - Actionable suggestions for every issue found, not just a description of the problem - Consistent output format via Pydantic models, with JSON export for scripting and integration - CLI-first design: scan, batch, compare, and web commands - Works with any LLM through OpenAI-compatible APIs: OpenRouter, OpenAI, or fully local Ollama - Supports PDF, DOCX, TXT, MD, and RTF files; auto-detects contract type and tailors analysis - Jurisdiction-aware statute checklist (auto, cn, us-ca) for deterministic legal checks
Use cases
- Reviewing residential leases, NDAs, employment contracts, freelance agreements, SaaS terms of service, loan agreements, and purchase agreements before signing - Getting plain-English explanations and negotiation suggestions without hiring a lawyer - Batch-scanning a folder of contracts or diffing two versions of a contract - Keeping contract data private by running local models via Ollama
Getting started
bash pip install contractguardian # Option A: OpenRouter export OPENROUTER_API_KEY=sk-or-... # Option B: OpenAI export OPENAI_API_KEY=sk-... export OPENAI_BASE_URL=https://api.openai.com/v1 # Option C: Local Ollama export OPENAI_BASE_URL=http://localhost:11434/v1 export OPENAI_API_KEY=ollama contractguard scan my-contract.pdf
License and pricing
ContractGuard is released under the MIT license and is open source. The README does not state any pricing information.
Based on the project's public README and repository metadata.