project screenshot 1
project screenshot 2
project screenshot 3

Ava

Ava: An autonomous AI portfolio manager powered by multiple specialized agents that work together to analyze, recommend, and execute optimal DeFi strategies across multiple chains (Avalanche, Mode, Arbitrum, Sei) while maintaining user-defined risk parameters.

Ava

Created At

Agentic Ethereum

Winner of

Coinbase

Coinbase Developer Platform - AgentKit Pool Prize

Prize Pool

Project Description

Ava Portfolio Manager is a cutting-edge DeFi portfolio management system that leverages multiple specialized AI agents working in collaboration to optimize users' crypto portfolios. The system consists of four main agents:

  1. Observer Agent: Continuously monitors market conditions, analyzes social sentiment, and identifies opportunities across multiple chains using Cookie API integration for real-time market intelligence.

  2. Task Manager Agent: Coordinates between agents, breaks down complex operations into executable tasks, and maintains the system's workflow orchestration.

  3. Executor Agent: Handles transaction execution with built-in safety checks, gas optimization, and multi-chain transaction routing using Brian AI for optimal execution paths.

  4. CDP Agent: Specializes in managing Collateralized Debt Positions with risk assessment and automatic rebalancing capabilities.

The system features:

  • Real-time portfolio monitoring and rebalancing
  • Multi-chain yield optimization (Avalanche, Mode, Arbitrum, Sei)
  • Risk-adjusted strategy execution
  • Natural language interaction for portfolio management
  • Autonomous decision-making with user-defined parameters
  • Integration with major DeFi protocols
  • Advanced market sentiment analysis
  • Automated position management

How it's Made

The Ava Portfolio Manager is built using a modern, scalable tech stack with emphasis on type safety, real-time capabilities, and autonomous agent architecture.

Frontend Technology Stack:

  • Next.js 14 with App Router for server-side rendering and optimal performance
  • TypeScript for type safety and better developer experience
  • TailwindCSS with Shadcn/UI for a modern, responsive UI
  • Zustand for state management
  • WebSocket integration for real-time updates
  • Viem/Ethers.js for Web3 connectivity
  • Custom hooks for Web3 interactions and data fetching

Backend Architecture:

  • Node.js with TypeScript for type-safe server implementation
  • Hono.js for high-performance API routing
  • Event-driven architecture using custom EventBus implementation
  • Multi-agent system with specialized agents:
    • Observer Agent: Integrates with Cookie API for market analysis
    • Task Manager: Uses LangChain for task orchestration
    • Executor: Leverages Brian AI for transaction optimization
    • CDP Agent: Uses Coinbase CDP SDK for position management

AI Integration:

  • OpenAI GPT-4 for natural language processing
  • LangChain for AI agent orchestration
  • Custom prompt engineering for specialized agent behaviors
  • Groq integration for high-performance inference

Web3 Integration:

  • Viem for efficient blockchain interactions
  • Multi-chain support (Avalanche, Mode, Arbitrum, Sei)
  • Custom toolkit implementation for DeFi operations
  • Gas optimization strategies

Notable Technical Features:

  1. Custom event-driven architecture for agent communication
  2. Type-safe message passing between agents
  3. Real-time WebSocket updates for portfolio changes
  4. Autonomous decision-making pipeline with safety checks
  5. Integration with multiple data providers (Cookie API, Portals, Zerion)
  6. Custom error boundaries and recovery mechanisms
  7. Efficient state management with optimistic updates

The system uses several partner technologies:

  • Cookie API for market sentiment analysis
  • Brian AI for transaction optimization
  • Coinbase CDP SDK for position management
  • Portals API for market data
  • Zerion API for portfolio tracking

The architecture is designed to be modular and extensible, allowing for easy integration of new chains, protocols, and AI capabilities.

background image mobile

Join the mailing list

Get the latest news and updates