An autonomous AI agent and API for managing a DAO treasury through Zora creator coin investments. Built for Builder DAO on Base mainnet.
- 🤖 Autonomous Agent - Runs every 12 minutes to analyze and propose creator coin investments
- 📊 Portfolio Tracking - Monitor DAO treasury holdings across networks
- 🔍 AI Analysis - OpenAI-powered evaluation of creator coins
- 📋 Queue Management - Persistent queue for user-submitted coin suggestions
- 🗳️ Governor Integration - Automatic proposal submission to Builder DAO
- ⛓️ Blockchain Verification - Duplicate prevention via subgraph queries
- Runtime: Node.js 20+ with TypeScript
- Framework: Express.js API server
- Blockchain: Coinbase CDP SDK (Smart Accounts on Base)
- Creator Coins: Zora Coins SDK
- AI: OpenAI GPT-4o-mini
- Network: Base Mainnet
- Governance: Builder DAO Governor contracts
pnpm installCopy the example environment file:
cp .env.example .env.localEdit .env.local with your credentials - see .env.example for all required variables.
pnpm create:agent-walletSave the generated addresses to .env.local.
The Smart Account needs:
- ETH for gas (~0.001 ETH)
- 1 Builder DAO NFT (required to create proposals)
# Start API server
pnpm dev
# Run agent manually
pnpm agent
# View queue
pnpm queue:viewGet all queued suggestions with statistics.
Analyze a creator coin by username and add to queue if promising.
Get DAO treasury balance and holdings.
See full API documentation in code comments.
pnpm agent # Run autonomous agent
pnpm queue:view # View suggestions queue
pnpm check:balance # Check agent wallet balance
pnpm check:governor # Check Governor requirements
pnpm test:all # Run all tests- User submits creator via API
- AI analyzes coin metrics and creator activity
- If promising (confidence >= 20%), adds to queue
- Agent processes queue every 12 minutes
- Creates proposal with Zora trade transaction
- Submits to Governor via CDP Smart Account
- DAO votes on proposal
See DEPLOYMENT.md for full guide including:
- PM2 process management
- Nginx reverse proxy
- Let's Encrypt SSL
- Firewall configuration
backend/
├── lib/
│ ├── agent/ # AI analysis logic
│ └── dao/ # DAO integrations
├── scripts/ # CLI utilities
├── server.ts # Express API
└── .env.example # Environment template
Integrates with Builder DAO on Base mainnet:
- Governor:
0x2ff7852a23e408cb6b7ba5c89384672eb88dab2e - Treasury:
0x72b052a9a830001ce202ad907e6eedd0b86c4a88
MIT