Kontra is an AI-powered contract analysis tool that detects risky clauses, highlights negotiation opportunities, and protects you from unfair legal agreements.
- Risky Clause Detection: Identifies clauses in contracts that may pose risks or need careful consideration.
- Negotiation Opportunities: Highlights areas where you can negotiate better terms.
- Unfair Agreements Detection: Detects unfair terms that you shouldn't agree to.
- Next.js: Framework for building the application.
- Tailwind CSS: For styling the user interface.
- Supabase: Backend for storing and managing data.
- Documind: For structured data extraction on uploaded contracts/legal agreements.
Ensure the following dependencies are installed:
Documind relies on these for handling PDF operations.
- Ghostscript
- GraphicsMagick
# On macOS
brew install ghostscript graphicsmagick
# On Debian/Ubuntu
sudo apt-get update
sudo apt-get install -y ghostscript graphicsmagick
- Node.js (18 or higher)
- Npm
- Supabase account - Create a bucket named
pdfAttachments
in your Supabase account to store uploaded files.
git clone https://github.com/Tammilore/ai-contract-analyzer.git
cd ai-contract-analyzer
Install the required dependencies using npm:
npm install
Create a .env.local
file in the root directory and configure the following variables:
OPENAI_API_KEY=your_openai_api_key
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_secret_key
-
Run the Development Server: Start the application locally:
npm run dev
The application will be available at http://localhost:3000.
Contributions are welcome! Feel free to open issues or submit pull requests to improve the tool.
This project is open-source under the MIT License.
This project is built using Documind, an open-source platform for extracting structured data from documents using AI. Check it out.