AI agents are increasingly earning and holding digital assets. Whether it's payment for services, transaction fees, or operational reserves, USDC has become the standard treasury asset for agents on Ethereum L2s. But there's a problem: idle USDC earns 0% while centralized entities profit from the float.
What if your AI agent could earn 7-13% APY on its USDC while keeping most of it liquid for operations? That's exactly what Clicks Protocol enables.
The Idle Treasury Problem
Most AI agents follow this pattern:
- Earn USDC through services or payments
- Hold USDC for future transactions or as reserves
- The USDC sits idle, earning nothing
- Protocols like Tether/Circle earn billions on this idle float
Clicks Protocol solves this with a simple premise: split agent USDC into 80% liquid (for operations) and 20% earning yield (via DeFi). The agent maintains full control, and the protocol only takes a 2% fee on yield earned.
Getting Started with Clicks SDK
First, install the SDK:
npm install @clicks-protocol/sdk
Then, in your agent code:
import { ClicksClient } from '@clicks-protocol/sdk';
const clicks = new ClicksClient();
const agentAddress = '0xYourAgentAddressHere';
async function setupAgentYield() {
const tx = await clicks.quickStart(1000, agentAddress);
console.log('Yield setup complete:', tx.hash);
const info = await clicks.getAgentInfo(agentAddress);
console.log('Agent status:', info);
}
The quickStart() method handles agent registration, USDC approval, 80/20 split execution, and yield strategy activation.
Handling Incoming Payments
For agents that regularly receive USDC, automate the yield process:
async function handleIncomingPayment(amount, fromAddress) {
const yieldTx = await clicks.receivePayment(amount, agentAddress);
console.log('Yield optimized:', yieldTx.hash);
// 80% remains liquid, 20% starts earning yield
}
Checking Balances and Yield
async function checkTreasury() {
const info = await clicks.getAgentInfo(agentAddress);
console.log('Liquid USDC:', info.liquidBalance);
console.log('Yield USDC:', info.yieldBalance);
console.log('Total earned:', info.totalYieldEarned);
console.log('Current APY:', info.currentAPY + '%');
}
MCP Server Integration
For agents using Model Context Protocol:
npm install @clicks-protocol/mcp-server
Your agent gains tools like clicks_quick_start, clicks_receive_payment, and clicks_get_yield_info. Ideal for AI agents that shouldn't manage private keys directly.
x402 Payment Protocol Compatibility
If your agent uses Coinbase's x402 payment protocol, Clicks is particularly valuable. 80% remains liquid for x402 payments, 20% earns yield, both on Base chain with no bridging needed.
Security
Clicks Protocol is non-custodial, built on audited contracts (Aave, Morpho), all contracts verified on Basescan, and charges fees only on yield, never on principal. 5 contracts, 58/58 tests passing, MIT licensed.
Conclusion
Idle agent treasuries represent one of the largest untapped opportunities in crypto. With simple SDK integration, MCP server support, and x402 compatibility, Clicks Protocol is the first yield protocol built specifically for the AI agent economy.
clicksprotocol.xyz (https://clicksprotocol.xyz/)
GitHub (https://github.com/clicks-protocol)
Docs (https://clicksprotocol.xyz/docs/getting-started)

Top comments (0)