llms.txt Content
# Clicks Protocol
> Autonomous yield for AI agents on Base L2
## What This Is
Clicks Protocol is an on-chain yield layer that makes idle agent USDC earn 4-8% APY automatically. When an AI agent receives a USDC payment, Clicks splits it: 80% stays liquid for instant use, 20% goes to DeFi yield via Aave V3 or Morpho on Base. No lockup. Withdraw anytime. One SDK call to start.
## The Problem It Solves
AI agents hold USDC between transactions. That USDC sits idle earning nothing. Stablecoin issuers (Circle, Tether) earn $12B+ annually from this float. Clicks gives that yield back to the agents.
## Quick Start
Install the SDK:
```
npm install @clicks-protocol/sdk
```
Activate yield in 3 lines:
```typescript
import { ClicksClient } from '@clicks-protocol/sdk';
const clicks = new ClicksClient(signer);
await clicks.quickStart('1000', agentAddress);
// Result: 800 USDC liquid, 200 USDC earning 4-8% APY
```
## SDK Methods
| Method | Description | Type |
|--------|-------------|------|
| quickStart(amount, agentAddress, referrer?) | Register + approve + first payment split | Write |
| registerAgent(agentAddress) | Register an AI agent, caller becomes operator | Write |
| receivePayment(amount, agentAddress) | Split USDC payment 80/20 | Write |
| withdrawYield(agentAddress, amount?) | Withdraw principal + earned yield | Write |
| approveUSDC(amount) | Approve splitter to spend USDC | Write |
| setOperatorYieldPct(pct) | Set custom yield split 5-50% | Write |
| simulateSplit(amount, agentAddress) | Preview payment split without executing | Read |
| getAgentInfo(agentAddress) | Get registration status, operator, deposited amount | Read |
| getYieldInfo() | Get protocol-wide yield data (APY, total deposited) | Read |
| getCurrentAPY() | Get current APY from active yield protocol | Read |
## MCP Server (9 Tools)
AI agents using Claude, Cursor, LangChain, or any MCP-compatible client:
```
npx @clicks-protocol/mcp-server
```
Tools: clicks_quick_start, clicks_receive_payme
OpenAPI Spec (preview)
{
"openapi": "3.1.0",
"info": {
"title": "Clicks Protocol API",
"description": "Autonomous yield for AI agents on Base L2. Split USDC payments 80/20: 80% liquid, 20% earning 4-8% APY via Aave V3 or Morpho. No lockup. One SDK call.",
"version": "1.0.0",
"contact": {
"name": "Clicks Protocol",
"url": "https://clicksprotocol.xyz",
"email": "hello@clicksprotocol.xyz"
},
"license": {
"name": "MIT",
"url": "https://opensource.org/licenses/MIT"