CostPilot AI is an intelligent financial agreement analyzer designed to uncover hidden fees, true costs, and effective APRs from complex loan documents and credit agreements. Built for transparency, it empowers users to truly understand what they are signing up for.

- AI-Powered Analysis: Instantly parse unstructured text to extract loan amount, interest rates, and hidden fees.
- Multi-Model Support: Seamlessly integrates with OpenRouter, Google Gemini, and OpenAI with a robust fallback mechanism.
- True Cost Calculation: Calculates the actual effective APR and total payable amount, ignoring misleading marketed rates.
- Financial Trap Detection: Highlights predatory clauses and hidden penalties before you sign.
- Paste any financial agreement or loan document into the analyzer.
- CostPilot AI extracts the raw numbers using advanced LLMs.
- The engine calculates the real financial impact and flags potential risks.
- Clone the repository:
git clone https://github.com/khanirfan18/CostPilot-AI.git
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Access the app locally: Open
http://localhost:3000
(Optional) API Keys: You can add your API keys directly into the UI via the "API Keys" pop-up.
Click on "Try Example" in the app to instantly load a sample predatory loan agreement. Click Analyze Agreement to watch the AI break down the hidden costs and recalculate the real APR.
Created by Irfan Khan
- LinkedIn: https://www.linkedin.com/in/irfankhan1855/
- GitHub: https://github.com/khanirfan18
- X (Twitter): https://x.com/irfnn_k