"ChatGPT for your DAO treasury - just tell it what you want, it executes onchain"
AutoTreasury AI is an autonomous treasury management agent for DAOs and teams on BNB Chain. It uses AI to optimize fund allocation across PancakeSwap LP, Venus Protocol, and BNB staking based on risk tolerance and market conditions.
- 🤖 AI-Powered Decisions: Natural language interface powered by GPT-4
- 💼 Multi-Protocol Support: PancakeSwap V3, Venus Protocol, BNB staking
- 📊 Risk Management: Customizable risk profiles and portfolio optimization
- 🔄 Auto-Rebalancing: Continuous optimization based on market conditions
- 🔒 Security First: Multi-sig support and comprehensive testing
# Install dependencies
pnpm install
# Configure environment
cp .env.example .env
# Edit .env with your keys
# Start development
pnpm dev📖 See QUICKSTART.md for detailed setup instructions.
- Quick Start Guide - Get up and running in 5 minutes
- Full Documentation - Architecture and detailed guides
- Smart Contracts - Contract documentation
- AI Engine - AI strategy details
- Backend API - API documentation
- Frontend - UI development guide
This is a monorepo with 4 main workspaces:
- contracts - Smart contracts (Solidity + Hardhat)
- ai-engine - AI decision making engine (TypeScript + OpenAI)
- backend - API and blockchain services (Node.js)
- frontend - Web application (Next.js + React)
- Blockchain: BNB Chain, Solidity, Hardhat, ethers.js
- AI: OpenAI GPT-4, TypeScript
- Backend: Node.js, TypeScript
- Frontend: Next.js, React, TailwindCSS
- Protocols: PancakeSwap V3, Venus Protocol
# Run all tests
pnpm test
# Test individual workspaces
cd contracts && pnpm test
cd ai-engine && pnpm test
cd backend && pnpm test
cd frontend && pnpm test# Deploy to BNB testnet
pnpm deploy:testnet- Phase 1 (Days 1-2): Project scaffolding and smart contracts ✅
- Phase 2 (Days 3-4): AI engine and strategy implementation
- Phase 3 (Days 5-6): Backend API and frontend development
- Phase 4 (Days 7-10): Integration, testing, and deployment
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
MIT License - see LICENSE file for details.
Built for the BNB Chain AI Innovation Challenge 🏆