Smart DeFi Yield Optimization Tool
YieldSensei is an AI-powered DeFi advisor that helps users find the best yield opportunities across multiple blockchains, estimate gas costs, and assess protocol risk. Built with Next.js, Tailwind CSS, and integrates live data from DefiLlama and the OpenAI API.
- Live yield discovery via DefiLlama (APY, TVL, minimum deposit)
- Real-time gas fee estimates
- Protocol risk analysis (audit history, TVL stability, insurance)
- Natural language queries powered by OpenAI
- Mobile-responsive, modern UI with Tailwind CSS
- Comprehensive unit and integration tests
- Node.js v16 or higher
- npm (or Yarn)
- DefiLlama API key
- OpenAI API key
-
Clone this repository:
git clone https://github.com/<YOUR_USERNAME>/yield-sensei.git cd yield-sensei
-
Install dependencies:
npm install
-
Copy the example env file and enter your keys:
cp .env.example .env.local
Then edit
.env.localto set:NEXT_PUBLIC_DEFILLAMA_API_KEY=your_defillama_key OPENAI_API_KEY=your_openai_key
-
Start the development server:
npm run dev
Open http://localhost:3000 in your browser.
Run the full test suite with:
npm testTo watch files and re-run tests:
npm run test:watch-
Build for production:
npm run build
-
Run the optimized server:
npm start
Contributions are welcome! Please open issues or pull requests.
MIT © 2024 RedeploySensei Team