Agent Treasury Manager
> Built by GetAgentIQ — [getagentiq.ai](https://getagentiq.ai)
Professional-grade DeFi treasury management for AI agents. Find yield, manage risk, optimize returns.
Architecture
Agent Treasury Manager
├── Portfolio Tracker — multi-chain position monitoring
├── Yield Scanner — DeFi opportunity detection
├── Risk Engine — risk scoring and allocation limits
├── Rebalancer — recommendations based on risk profile
└── Report Generator — dashboards and analytics
Commands
Scan Yield Opportunities
Find the best DeFi yields right now
Runs scripts/treasury_manager.py --scan-yields to query DeFi protocols for current APY rates.
Analyze Portfolio
Analyze my crypto portfolio
Runs scripts/treasury_manager.py --portfolio --address to track positions and value.
Risk Assessment
What's the risk profile of my DeFi positions?
Runs scripts/treasury_manager.py --risk-report to score portfolio risk.
Rebalancing Recommendation
Should I rebalance my crypto allocation?
Runs scripts/treasury_manager.py --rebalance --profile moderate to generate suggestions.
Treasury Dashboard
Show treasury dashboard
Runs scripts/treasury_manager.py --dashboard for full overview.
Risk Profiles
| Profile | Target Yield | Max Protocol Risk | Max Single Position | Strategy |
|---------|-------------|-------------------|---------------------|----------|
| Conservative | 3-8% APY | A-rated only | 20% | Blue-chip staking, T-bills, USDC lending |
| Moderate | 8-15% APY | B+ rated | 30% | Diversified lending + staking |
| Aggressive | 15-30% APY | B rated | 40% | LP farming + leveraged lending |
| Degen | 30%+ APY | Any | 50% | High-risk pools, new protocols |
Supported Chains
- Solana — SOL staking, Marinade, Raydium, Jupiter
- Ethereum — ETH staking, Aave, Compound, Lido
- Base — Aerodrome, Moonwell, Extra Finance
- Sui — Cetus, Turbos, Navi Protocol
Data Sources
All data is fetched from public APIs (no wallet connection required for scanning):
- DeFiLlama — Protocol TVL and yield data
- CoinGecko — Token prices
- On-chain RPCs — Direct position queries (when address provided)
Configuration
Stored at ~/.openclaw/workspace/treasury-config.json:
{
"risk_profile": "moderate",
"tracked_chains": ["solana", "ethereum", "base"],
"min_tvl_usd": 10000000,
"min_apy": 3.0,
"max_apy": 100.0,
"stablecoin_allocation_pct": 30,
"rebalance_threshold_pct": 10,
"alert_on_depegs": true,
"alert_on_hacks": true
}
Reference Files
references/protocol-ratings.md— Risk ratings for major DeFi protocolsreferences/yield-strategies.md— Detailed strategies by risk profile with expected returns