Your AI agent is making thousands of dollars in DeFi trades, but you're flying blind. Without proper monitoring, you won't know if your automated trading strategy is generating alpha or bleeding funds until it's too late. Even worse, you can't track which protocols are performing, monitor health factors before liquidation, or quickly respond when positions go sideways.
Why DeFi Monitoring Matters for Autonomous Agents
AI agents don't sleep, don't take coffee breaks, and can execute complex DeFi strategies 24/7. But this advantage becomes a liability without proper oversight. Your agent might be:
- Accumulating leveraged positions that approach liquidation thresholds
- Interacting with protocols you didn't explicitly authorize
- Burning gas on failed transactions due to slippage or market conditions
- Missing arbitrage opportunities because position limits are maxed out
Traditional portfolio trackers aren't built for autonomous agents. They're designed for human users who manually check balances a few times per day. What you need is real-time visibility into your agent's entire DeFi empire from a single dashboard.
The Self-Hosted Solution: WAIaaS Admin Dashboard
WAIaaS includes a built-in admin web UI that gives you complete visibility into your AI agent's activities without sending sensitive data to third-party services. The dashboard runs on your own infrastructure, ensuring your trading strategies and positions remain private.
The admin interface provides wallet management, session control, policy editor, DeFi positions dashboard, and notification configuration—all accessible at the /admin endpoint of your WAIaaS daemon.
Setting Up Your Self-Hosted Monitoring Stack
Step 1: Deploy WAIaaS with Docker
Start with the simplest possible deployment:
git clone https://github.com/minhoyoo-iotrust/WAIaaS.git
cd WAIaaS
docker compose up -d
The daemon runs on port 127.0.0.1:3100 by default, keeping everything local to your machine. For production deployments, you can expose it to your internal network:
services:
daemon:
image: ghcr.io/minhoyoo-iotrust/waiaas:latest
ports:
- "0.0.0.0:3100:3100" # Expose to network
environment:
- WAIAAS_DAEMON_HOSTNAME=0.0.0.0
- WAIAAS_DATA_DIR=/data
volumes:
- waiaas-data:/data
restart: unless-stopped
Step 2: Create Your Trading Wallet
Using the CLI for initial setup:
npm install -g @waiaas/cli
waiaas quickset --mode mainnet
This creates wallets for both EVM and Solana networks with MCP integration automatically configured. The quickset command sets up everything your AI agent needs in one step.
Step 3: Configure DeFi Policies
Before your agent starts trading, establish safety guardrails. The admin dashboard includes a policy editor, but you can also configure policies via API:
curl -X POST http://127.0.0.1:3100/v1/policies \
-H "Content-Type: application/json" \
-H "X-Master-Password: your-password" \
-d '{
"walletId": "<wallet-uuid>",
"type": "SPENDING_LIMIT",
"rules": {
"instant_max_usd": 100,
"notify_max_usd": 1000,
"delay_max_usd": 5000,
"delay_seconds": 900,
"daily_limit_usd": 10000
}
}'
You can also restrict which DeFi protocols your agent can access:
curl -X POST http://127.0.0.1:3100/v1/policies \
-H "Content-Type: application/json" \
-H "X-Master-Password: your-password" \
-d '{
"walletId": "<wallet-uuid>",
"type": "VENUE_WHITELIST",
"rules": {
"venues": ["jupiter-swap", "lido-staking", "aave-v3"]
}
}'
Navigating the Admin Dashboard
Portfolio Overview
The dashboard homepage shows your AI agent's complete financial picture across all supported networks. You'll see:
- Total portfolio value in USD
- Asset allocation breakdown by token and protocol
- Recent transaction activity with status indicators
- Active DeFi positions across all integrated protocols
The interface automatically refreshes, so you get real-time updates as your agent executes trades.
DeFi Positions Deep Dive
The DeFi dashboard is where the magic happens. WAIaaS integrates with 15 DeFi protocols, including Aave V3, Lido staking, Jupiter swap, Hyperliquid perpetuals, and Polymarket prediction markets.
For each protocol, you can monitor:
- Lending positions: Supplied assets, borrowed amounts, and health factors
- Staking positions: Staked amounts and accumulated rewards
- Trading positions: Open orders, filled trades, and P&L
- Liquidity positions: Pool shares and impermanent loss tracking
The dashboard calculates critical metrics like your overall health factor across lending protocols and alerts you before positions approach liquidation.
Session Management
Your AI agents connect through authenticated sessions. The admin panel lets you:
- View active sessions and their associated wallets
- Monitor session activity and last-seen timestamps
- Revoke compromised sessions instantly
- Set session limits and expiration policies
Each session shows recent API calls, so you can audit exactly what actions your agent is taking.
Transaction Pipeline Monitoring
WAIaaS processes transactions through a 7-stage pipeline: validate, auth, policy, wait, execute, confirm. The admin interface shows:
- Transactions queued at each stage
- Policy evaluation results and why transactions were approved/denied
- Pending transactions waiting for time delays or owner approval
- Failed transactions with detailed error messages
This visibility is crucial for debugging why your agent's strategies aren't executing as expected.
Real-Time Notifications
The notification system keeps you informed without overwhelming you. Configure alerts for:
- Large transactions above your comfort threshold
- Failed transactions that might indicate market issues
- DeFi positions approaching liquidation
- Policy violations or unauthorized activity
Notifications support multiple channels including push notifications, Telegram, and email.
Advanced Monitoring Features
Health Factor Tracking
For lending protocols like Aave, your health factor determines liquidation risk. The dashboard shows:
- Current health factor across all lending positions
- Historical health factor trends
- Alerts when health factors drop below safe thresholds
- Automatic position adjustment suggestions
Gas Optimization Monitoring
WAIaaS includes gas conditional execution—transactions only proceed when gas prices meet your thresholds. Monitor:
- Transactions queued waiting for lower gas prices
- Average gas costs for different transaction types
- Savings from gas optimization over time
Cross-Chain Position Tracking
With support for both EVM and Solana networks, track positions across:
- Ethereum mainnet DeFi protocols
- Solana DeFi (Jupiter, Jito staking, Drift perpetuals)
- Cross-chain bridging activity via LI.FI and Across
- Asset allocation by network
Getting Started with Your Self-Hosted Setup
Ready to gain full visibility into your AI agent's DeFi activities? Here's your quickstart checklist:
Quick Setup (5 minutes)
-
Deploy the stack:
docker compose up -din the WAIaaS directory -
Access the admin panel: Navigate to
http://127.0.0.1:3100/admin - Create your first wallet: Use the wallet management interface
- Set up policies: Configure spending limits and protocol restrictions
- Connect your AI agent: Create a session token for your agent
Essential Configurations
After deployment, configure these critical settings:
- RPC endpoints: Add your own Ethereum/Solana RPC URLs for reliability
- Notification channels: Set up alerts for position monitoring
- Backup policies: Enable automatic wallet backups to encrypted storage
- Access controls: Restrict admin panel access to your IP range
Staying Secure While Self-Hosting
Self-hosting gives you complete control, but requires proper security practices:
Network Security
- Run WAIaaS behind a reverse proxy with TLS termination
- Use fail2ban to prevent brute force attacks on the admin panel
- Consider VPN access for remote monitoring
Data Protection
- Enable automatic encrypted backups of wallet data
- Use Docker secrets for sensitive configuration
- Regularly update the WAIaaS container image
Monitoring Access
- Enable audit logging for all admin panel activity
- Set up monitoring for unusual API access patterns
- Use strong master passwords with regular rotation
The admin dashboard provides comprehensive audit logs showing who accessed what and when, giving you full accountability over your self-hosted infrastructure.
What's Next
The admin dashboard gives you the visibility needed to run sophisticated AI trading strategies with confidence. Your agents can operate autonomously while you maintain oversight and control. Ready to deploy your own instance? Check out the complete documentation at WAIaaS GitHub or visit waiaas.ai for more examples and tutorials.
Top comments (0)