YieldSensei is a multi-agent DeFi Investment Advisor inspired by Vegapunk's satellite model. Each AI agent serves a distinct function (research, growth, security, etc.) and works together to provide intelligent crypto investment support.
- 🧠 Sage (Logic): Researches DeFi protocols and market trends
- 🌾 Pulse (Growth): Identifies high-yield farming and staking opportunities
- 🛡️ Aegis (Security): Analyzes protocol security and risk factors
- 📣 Echo (Sentiment): Monitors social sentiment and community trends
- 🔋 Fuel (Logistics): Tracks portfolio performance and optimizes capital deployment
- Python 3.9+
- OpenAI API key (for GPT-4 access)
- Internet connection (for API calls to DeFiLlama, etc.)
- Clone the repository:
git clone https://github.com/yourusername/yieldsensei.git
cd yieldsensei- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install the required packages:
pip install -r requirements.txt- Create a
.envfile in the project root with your API keys:
OPENAI_API_KEY=your_openai_api_key_here
Run YieldSensei from the command line:
python main.py --capital 5000 --risk medium --strategy balancedParameters:
--capital: Amount of capital to deploy (in USD)--risk: Risk tolerance (low, medium, high)--strategy: Investment strategy (conservative, balanced, aggressive)
For a more visual experience, launch the Streamlit dashboard:
streamlit run ui/streamlit_app.pyThen visit http://localhost:8501 in your browser.
YieldSensei uses CrewAI to orchestrate multiple specialized agents:
- Sage (Logic) - Collects and analyzes market data about DeFi protocols
- Pulse (Growth) - Identifies and ranks yield opportunities based on APY and safety
- Aegis (Security) - Performs security checks and risk analysis on protocols
- Echo (Sentiment) - Analyzes social signals and community sentiment
- Fuel (Logistics) - Tracks and optimizes capital deployment
Each agent has specific tools and prompts designed for their function.
- DeFiLlama: TVL and APY data
- CertiK: Security audits information
- Twitter/X: Sentiment analysis
- Etherscan: On-chain activity
yieldsensei/
├── agents/ # Agent definitions and logic
├── tools/ # API integrations and tools
├── core/ # Core system functionality
├── ui/ # User interfaces (CLI & Streamlit)
├── data/ # Local data storage
├── requirements.txt # Project dependencies
├── main.py # Application entry point
└── README.md # This file
The system will provide recommendations like:
🧠 YieldSensei Investment Recommendation
=======================================
Capital: $5,000
Risk Profile: Medium
Strategy: Balanced
Top 3 Opportunities:
1. USDC Lending on Aave (Polygon)
- APY: 4.32%
- Security: GREEN ✅
- Sentiment: Positive
- Capital: $2,500 (50%)
2. ETH-USDC LP on Uniswap V3 (Ethereum)
- APY: 8.76%
- Security: GREEN ✅
- Sentiment: Very Positive
- Capital: $1,500 (30%)
3. MATIC Staking on Polygon
- APY: 12.45%
- Security: YELLOW ⚠️
- Sentiment: Neutral
- Capital: $1,000 (20%)
Expected Monthly Return: $42.88 (10.3% APY)
Gas Costs: Approx. $15 for initial setup
- Add Forge satellite for infrastructure development
- Implement real-time monitoring of positions
- Create mobile notification system for opportunity alerts
- Add direct wallet integration for automated deployment
MIT