Don’t get caught lackin: protect your crypto investments even when you’re not there w/ agents & CDP!
DegenGuard is an AI-powered DeFi wallet protection system built entirely on Coinbase Developer Platform. It acts as a real-time guardian for users’ on-chain portfolios, enabling them to monitor balances, track performance, and receive automated alerts about risks - all powered by AI and CDP infrastructure.
With a Coinbase-managed server wallet spun up at signup, users can fund their account through Coinbase On-Ramp (Coinbase, Apple Pay, credit/debit, etc.) and immediately gain access to a live dashboard. From there, AI agents let them define portfolio protection rules in natural language (e.g., “alert me if my stablecoin allocation drops below 30%”). These rules are automatically enforced through a continuous evaluation engine, keeping users protected even when they’re offline.
The result is a comprehensive system that brings institutional-grade monitoring, intelligence, and on-ramp convenience to everyday DeFi investors. Users are able to set up alerts, look back on their transactions/portfolio, and get a holistic understanding of their investments (and learn!).
DegenGuard is built with a Next.js and TypeScript frontend and an Express backend, with Supabase handling persistent storage. Everything on-chain flows through Coinbase Developer Platform services. CDP Server Wallets v2 are used to provision a wallet for each user at signup, providing secure custody and interaction with assets. CDP On-Ramp enables seamless fiat-to-crypto funding through Apple Pay and debit or credit cards, with funds deposited directly into the user’s server wallet. CDP Data API (SQL and Balances) powers real-time balance queries, historical transaction insights, and portfolio metrics such as PnL, allocations, and performance. CDP AgentKit connects AI to the system, allowing natural language rule creation and automated risk monitoring. We use cron jobs to periodically check for the rule conditions and execute them via the Agent.
For portfolio valuations, the Alchemy Price API is integrated to normalize balances into USD. Future roadmap plans include integrating the x402 protocol to enable a self-sustaining on-ramp agent that can automate yield strategies, implementing automated defensive execution so the system can take protective on-chain actions like rebalancing or hedging instead of just alerting, and exploring advanced DeFi strategies such as arbitrage and liquidity optimization to strengthen the platform’s value.
By building entirely on Coinbase Developer Platform and extending with AI, DegenGuard delivers a secure, extensible, and automated protection layer for DeFi portfolios.