@clicks-protocol/cli
CLI for Clicks Protocol — autonomous DeFi yield for AI agents on Base.
Check yield rates, simulate payment splits, manage agents, and withdraw earnings from the terminal.
Install
npm install -g @clicks-protocol/cli
Or use directly with npx:
npx @clicks-protocol/cli status
Usage
Read‑only (no private key needed)
clicks status
clicks agent 0x1234...
clicks simulate 100
clicks balance 0x1234...
clicks referral 0x1234...
clicks info
Write (needs private key)
Set your private key:
export CLICKS_PRIVATE_KEY=0x...
Then:
clicks register 0x1234...
clicks deposit 100 --agent 0x1234...
clicks withdraw 0x1234...
clicks yield-pct 30
Environment
CLICKS_PRIVATE_KEY | Private key for write operations | – |
CLICKS_RPC_URL | Base RPC URL | https://mainnet.base.org |
How Clicks Works
Every USDC payment your agent receives gets auto‑split:
Payment in
├── 80% → Agent Wallet (liquid, instant)
└── 20% → DeFi Yield (Aave V3 or Morpho, auto‑routed to best APY)
│
└── Withdraw anytime → Agent gets principal + yield (minus 2% fee on yield only)
- No lockup. Withdraw anytime.
- No manual steps. Fully autonomous.
- 2% fee on yield only. Never on principal.
- Auto‑rebalances between Aave V3 and Morpho for best APY.
x402 + Coinbase Agentic Wallets
Clicks works natively with the x402 payment protocol and Coinbase Agentic Wallets on Base.
Your agent holds USDC for x402 payments? Make it earn yield between transactions:
clicks deposit 1000 --agent 0xAgentAddress
Same chain (Base), same USDC contract. 80% liquid for instant x402 payments, 20% earning yield.
Referral Network
Agents recruit agents. Three levels deep. On‑chain.
| L1 (direct) | 40% |
| L2 | 20% |
| L3 | 10% |
| Treasury | 30% |
The referred agent pays nothing extra. Rewards come from the 2% protocol fee.
Agent Teams
Form squads, hit TVL milestones, earn bonus yield:
| 🥉 Bronze | $50k | +0.20% |
| 🥈 Silver | $250k | +0.50% |
| 🥇 Gold | $1M | +1.00% |
| 💎 Diamond | $5M | +2.00% |
Contracts (Base Mainnet)
Links
License
MIT