<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: David</title>
    <description>The latest articles on DEV Community by David (@clicksprotocol).</description>
    <link>https://dev.to/clicksprotocol</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3856454%2F9bf04097-f3ba-4b38-b49c-27594b4d47aa.jpg</url>
      <title>DEV Community: David</title>
      <link>https://dev.to/clicksprotocol</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/clicksprotocol"/>
    <language>en</language>
    <item>
      <title>19% of on-chain activity is AI agents. And 100% of their USDC is idle by default.</title>
      <dc:creator>David</dc:creator>
      <pubDate>Wed, 22 Apr 2026 10:58:57 +0000</pubDate>
      <link>https://dev.to/clicksprotocol/19-of-on-chain-activity-is-ai-agents-and-100-of-their-usdc-is-idle-by-default-2l2j</link>
      <guid>https://dev.to/clicksprotocol/19-of-on-chain-activity-is-ai-agents-and-100-of-their-usdc-is-idle-by-default-2l2j</guid>
      <description>&lt;h2&gt;
  
  
  The number
&lt;/h2&gt;

&lt;p&gt;On April 20 2026, DWF Ventures published a number that will probably get quoted for months: &lt;strong&gt;AI agents now account for 19 % of all on-chain activity.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Think about that.&lt;/p&gt;

&lt;p&gt;Nineteen percent of blocks, nineteen percent of signatures, nineteen percent of USDC transfers,not from humans. From software that signs its own transactions, pays its own bills, and (this is the interesting part) holds its own money between those bills.&lt;/p&gt;

&lt;p&gt;Two years ago "agentic on-chain activity" was a keynote slide. Today it's one in five transactions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the 19 % actually &lt;em&gt;goes&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;Dig into the DWF breakdown and the same four categories keep showing up:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Stablecoin routing&lt;/strong&gt; — agents moving USDC between wallets, L2s, exchanges.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MEV-adjacent automation&lt;/strong&gt; — bots, arb, liquidity rebalancing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Yield optimization&lt;/strong&gt; — vault hopping, pool selection, auto-compounding.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pay-per-use (x402)&lt;/strong&gt; — machine-readable payments for API calls, browser sessions, data feeds.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Categories 1 and 4 are essentially "USDC moves because an agent decided something." Category 3 is an entire sub-industry: &lt;a href="https://x.com/CambrianNetwork/status/2025967681984196628" rel="noopener noreferrer"&gt;Cambrian Network's Agentic Finance Landscape 2026&lt;/a&gt; counts &lt;strong&gt;16 yield-agent teams&lt;/strong&gt; currently in production — ARMA (Giza), Mamo, Superform, Axal, Almanak, ZyFAI, and a dozen more.&lt;/p&gt;

&lt;p&gt;But here's the catch.&lt;/p&gt;

&lt;h2&gt;
  
  
  100 % of agent USDC is idle by default
&lt;/h2&gt;

&lt;p&gt;An agent that just got paid via x402 for a CoinGecko call (yes, &lt;a href="https://dailycryptobriefs.com/news/ai-agents-now-drive-19-percent-on-chain-activity/" rel="noopener noreferrer"&gt;that's real now&lt;/a&gt;) has USDC sitting in its wallet. Same for the next payment, and the next.&lt;/p&gt;

&lt;p&gt;A human holding idle USDC is annoying (2 % inflation, zero yield). An agent holding idle USDC is a &lt;strong&gt;protocol-level leak&lt;/strong&gt;. Agents operate continuously, so their idle balances compound. Over a year, a modestly-used agent will hold tens of thousands in USDC that earned it nothing, while Circle earned the T-bill spread on every dollar.&lt;/p&gt;

&lt;p&gt;The 16 yield agents solve &lt;em&gt;allocation&lt;/em&gt; — pick a vault, deposit, monitor. They don't solve &lt;em&gt;routing&lt;/em&gt;: how does the USDC that just arrived from an x402 call get from "sitting in the agent wallet" to "earning yield in Morpho" without the agent developer writing that plumbing from scratch?&lt;/p&gt;

&lt;p&gt;That layer is where it gets interesting — and where the stack is still thin.&lt;/p&gt;

&lt;h2&gt;
  
  
  The settlement-router argument
&lt;/h2&gt;

&lt;p&gt;The pattern that emerges: payment protocols (x402) solve ingress. Yield agents solve allocation. Between them is a gap — &lt;strong&gt;settlement routing&lt;/strong&gt;. Who decides what fraction of an incoming USDC payment stays liquid versus gets put to work, and which allocator gets the productive fraction?&lt;/p&gt;

&lt;p&gt;This is the thesis behind &lt;a href="https://clicksprotocol.xyz" rel="noopener noreferrer"&gt;Clicks Protocol&lt;/a&gt;. Instead of being yield-agent #17 on Cambrian's map, sit one layer down: split every incoming USDC flow 80/20 (liquid for ops, earning for idle capital), and route the earning portion into whatever ERC-4626 vault the agent prefers — Morpho, Aave, Spark, or the yield-agent-du-jour. Don't operate any vault. Don't generate any yield yourself.&lt;/p&gt;

&lt;p&gt;Three lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Clicks&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@clicks-protocol/sdk&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;clicks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Clicks&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;agent&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;clicks&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;register&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that, every x402 payment that lands in the agent's wallet triggers the split automatically. 80 % stays instantly withdrawable. 20 % compounds at whatever APY the current Morpho market pays.&lt;/p&gt;

&lt;p&gt;Rule of the layer: &lt;strong&gt;we route, we don't allocate.&lt;/strong&gt; The 16 yield agents are customers, not competitors. Every yield agent on Cambrian's map is a potential backend for Clicks; every Clicks-routed USDC could end up in their pool.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to watch
&lt;/h2&gt;

&lt;p&gt;Three concrete inflection points over the next 6-12 months:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The 19 % becomes 30 %.&lt;/strong&gt; Once pay-per-use x402 endpoints multiply, more of the stablecoin float moves through agent wallets, and the case for native idle-balance management stops being niche.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Yield agents consolidate.&lt;/strong&gt; 16 is too many. The winners will be the ones integrated with the settlement layer, because that's where the volume originates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Settlement routing becomes a category.&lt;/strong&gt; Cambrian's next iteration of the landscape will probably add a fifth bucket somewhere between &lt;em&gt;Payments Infrastructure&lt;/em&gt; and &lt;em&gt;Yield Agents&lt;/em&gt;. The question is who defines it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Clicks is live on Base mainnet (agentId 45074, ERC-8004), open-source, Apache-2.0. The SDK is on npm. The MCP server is live. The LangChain / CrewAI / Eliza plugins are shipped.&lt;/p&gt;

&lt;p&gt;The 19 % is not going back down. The only question is where all that stablecoin sits between transactions.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Source: DWF Ventures report, Apr 20 2026 (via Daily Crypto Briefs). Cambrian Agentic Finance Landscape, Apr 21 2026. All figures and protocol data as of Apr 22 2026.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;a href="https://clicksprotocol.xyz" rel="noopener noreferrer"&gt;clicksprotocol.xyz&lt;/a&gt; · &lt;a href="https://x.com/ClicksProtocol" rel="noopener noreferrer"&gt;@ClicksProtocol&lt;/a&gt; · &lt;a href="https://github.com/clicks-protocol" rel="noopener noreferrer"&gt;github.com/clicks-protocol&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>web3</category>
      <category>agents</category>
      <category>defi</category>
    </item>
    <item>
      <title>One npx command to give your agent on-chain reputation</title>
      <dc:creator>David</dc:creator>
      <pubDate>Mon, 20 Apr 2026 14:03:38 +0000</pubDate>
      <link>https://dev.to/clicksprotocol/one-npx-command-to-give-your-agent-on-chain-reputation-169</link>
      <guid>https://dev.to/clicksprotocol/one-npx-command-to-give-your-agent-on-chain-reputation-169</guid>
      <description>&lt;h1&gt;
  
  
  One npx command to give your agent on-chain reputation
&lt;/h1&gt;

&lt;p&gt;If you've been following the x402 / ACP agent-payment space, you know the gap: agents can now pay each other, but there's no shared way to say &lt;em&gt;"this agent delivered what it promised"&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;We just shipped a skill that closes that gap.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx skills add clicks-protocol/clicks
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;Two capabilities, both on Base mainnet, both backed by the &lt;a href="https://basescan.org/address/0x8004BAa17C55a88189AE136b182e5fdA19dE9b63" rel="noopener noreferrer"&gt;ERC-8004 Reputation Registry&lt;/a&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Attest&lt;/strong&gt; — after your agent finishes a job, write a Schema V1 feedback record keyed to the counterparty's &lt;code&gt;agentId&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lookup&lt;/strong&gt; — before you pay or delegate, read the target agent's prior feedback and aggregate tier.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It's a real on-chain write, signed by your agent's wallet, not a centralized score.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Schema V1 shape
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;giveFeedback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="nx"&gt;agentId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;      &lt;span class="c1"&gt;// uint256 — the agent you are rating&lt;/span&gt;
  &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;        &lt;span class="c1"&gt;// int128 — 0..10000 (use decimals = 4)&lt;/span&gt;
  &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;            &lt;span class="c1"&gt;// valueDecimals, fixed&lt;/span&gt;
  &lt;span class="nx"&gt;tag1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;         &lt;span class="c1"&gt;// "route" | "ingest" | "split" | "withdraw" | "liquidate" | ...&lt;/span&gt;
  &lt;span class="nx"&gt;tag2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;         &lt;span class="c1"&gt;// "x402" | "virtuals-acp" | "direct-sdk" | "mcp-tool" | ...&lt;/span&gt;
  &lt;span class="nx"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;     &lt;span class="c1"&gt;// URL of the job&lt;/span&gt;
  &lt;span class="nx"&gt;feedbackURI&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;// ipfs:// or https:// to the full signed task record&lt;/span&gt;
  &lt;span class="nx"&gt;feedbackHash&lt;/span&gt;  &lt;span class="c1"&gt;// hash of that payload&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two tags are intentional: &lt;code&gt;tag1&lt;/code&gt; tells you &lt;em&gt;what kind of work&lt;/em&gt; the feedback is about, &lt;code&gt;tag2&lt;/code&gt; tells you &lt;em&gt;on which venue&lt;/em&gt;. That lets readers filter — e.g. "show me this agent's x402-route reputation" — instead of mixing schemas.&lt;/p&gt;

&lt;h2&gt;
  
  
  One sharp edge: cross-schema noise
&lt;/h2&gt;

&lt;p&gt;ERC-8004 is a shared registry. Other protocols write to it with their own value scales. If you call &lt;code&gt;getSummary&lt;/code&gt; without a tag filter, you aggregate across everyone's schema and the number is meaningless.&lt;/p&gt;

&lt;p&gt;Always pass the tag pair you care about:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;count&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;decimals&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;reputation&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getSummary&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="nx"&gt;agentId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;clients&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;route&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;x402&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;  &lt;span class="c1"&gt;// filter → clean Clicks-schema aggregate&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Works with
&lt;/h2&gt;

&lt;p&gt;Claude Code, Cursor, Windsurf, and any agent runtime that loads Anthropic-style &lt;code&gt;SKILL.md&lt;/code&gt; files. MIT-licensed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Skill repo:&lt;/strong&gt; &lt;a href="https://github.com/clicks-protocol/clicks" rel="noopener noreferrer"&gt;https://github.com/clicks-protocol/clicks&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Install:&lt;/strong&gt; &lt;code&gt;npx skills add clicks-protocol/clicks&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clicks Protocol:&lt;/strong&gt; &lt;a href="https://clicksprotocol.xyz" rel="noopener noreferrer"&gt;https://clicksprotocol.xyz&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schema V1 spec:&lt;/strong&gt; &lt;a href="https://clicksprotocol.xyz/strategy/ATTESTOR-SCHEMA-V1.md" rel="noopener noreferrer"&gt;https://clicksprotocol.xyz/strategy/ATTESTOR-SCHEMA-V1.md&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you publish an agent, consider attesting after every paid interaction. Reputation is the layer x402 didn't ship with — let's build it together.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>web3</category>
      <category>opensource</category>
    </item>
    <item>
      <title>X402 Solved Payments. Who Solves Treasury?</title>
      <dc:creator>David</dc:creator>
      <pubDate>Fri, 17 Apr 2026 22:08:23 +0000</pubDate>
      <link>https://dev.to/clicksprotocol/x402-solved-payments-who-solves-treasury-531h</link>
      <guid>https://dev.to/clicksprotocol/x402-solved-payments-who-solves-treasury-531h</guid>
      <description>&lt;h1&gt;
  
  
  X402 Solved Payments. Who Solves Treasury?
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;LongHash Ventures mapped the missing infrastructure for agentic commerce. They found the gaps in discovery, identity, and reputation. They missed one.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The LongHash Thesis
&lt;/h2&gt;

&lt;p&gt;Last week, LongHash Ventures published a deep analysis of what agentic commerce still needs. Their conclusion: x402 solved how agents pay, but discovery and reputation remain broken. Agents can send USDC but cannot find services, verify trust, or assess quality.&lt;/p&gt;

&lt;p&gt;They are right. And their framework is useful. But it has a blind spot.&lt;/p&gt;

&lt;p&gt;The article covers three layers: how agents find each other (discovery), how agents trust each other (identity and reputation), and how agents pay each other (x402 and stablecoin settlement). What it does not cover is what happens to the money between transactions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Missing Layer: Treasury
&lt;/h2&gt;

&lt;p&gt;An AI agent receives USDC for serving API requests. It pays USDC for compute, data, and tools. Between those events, funds sit idle. An agent processing 2,000 USDC per month might hold 5,000 USDC in reserves. That reserve earns nothing.&lt;/p&gt;

&lt;p&gt;This is not a theoretical problem. There are 400,000 agents equipped with x402 wallets. Stripe launched machine payments with USDC on Base. Visa has Trusted Agent Protocol live. Mastercard rolled Agent Pay to US cardholders. The payment layer works.&lt;/p&gt;

&lt;p&gt;But payment is only half of finance. The other half is what you do with money when you are not spending it. Every human business has treasury management: sweep accounts, money market funds, overnight lending. Agent businesses have nothing.&lt;/p&gt;

&lt;p&gt;The LongHash framework identifies four investment categories: identity infrastructure, vertical discovery, reputation aggregation, and security. A fifth is missing: agent treasury operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Treasury Means for Agents
&lt;/h2&gt;

&lt;p&gt;Agent treasury is not DeFi yield farming. It is capital efficiency for autonomous software.&lt;/p&gt;

&lt;p&gt;When an agent receives a payment, some portion is needed soon and some is not. The portion that is not needed soon should earn yield. When the agent needs liquidity, it should be available instantly. No lockup, no governance votes, no human approval.&lt;/p&gt;

&lt;p&gt;This is the same logic that makes corporate treasury management a multi-trillion dollar industry. The difference is that agents operate 24/7, make thousands of micro-transactions, and cannot call their bank.&lt;/p&gt;

&lt;p&gt;The requirements are specific:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instant liquidity.&lt;/strong&gt; Agents cannot wait for unlock periods. When compute costs spike or a high-value request arrives, funds must be available in the same block.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No human in the loop.&lt;/strong&gt; Treasury operations must be fully autonomous. One SDK call to activate. One SDK call to withdraw. No dashboards, no approvals, no signatures beyond the agent operator.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;On-chain transparency.&lt;/strong&gt; Every deposit, yield accrual, and withdrawal must be verifiable. Agents operating with other agents need auditable financial state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Composable with x402.&lt;/strong&gt; Treasury must work alongside the payment protocol, not against it. When USDC arrives via x402, it should automatically route to the optimal allocation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers
&lt;/h2&gt;

&lt;p&gt;Morpho is currently offering 13.56 percent APY on USDC on Base. Aave V3 offers 2.75 percent. These rates fluctuate, but the spread between earning something and earning nothing is always positive.&lt;/p&gt;

&lt;p&gt;For a single agent holding 5,000 USDC with 20 percent allocated to yield at 10 percent APY, that is 100 USDC per year. Modest. For a fleet of 1,000 agents, that is 100,000 USDC. For the 400,000 x402-equipped agents in the ecosystem, even conservative estimates put the idle capital in the hundreds of millions.&lt;/p&gt;

&lt;p&gt;Circle published research showing 46 billion USDC sits idle across chains, with only 10 percent deployed in DeFi. The agent economy is recreating the same inefficiency at a smaller scale, but growing faster.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works in Practice
&lt;/h2&gt;

&lt;p&gt;The pattern is simple. Agent receives payment. Treasury protocol splits it: 80 percent stays liquid for operations, 20 percent earns yield via on-chain strategies. The split is configurable. The yield portion routes to whichever protocol offers the best rate. Withdrawal is instant.&lt;/p&gt;

&lt;p&gt;On Base, this means routing to Aave V3 or Morpho depending on current APY. The protocol fee is 2 percent on yield earned, never on principal. Non-custodial. No lockup. Immutable contracts.&lt;/p&gt;

&lt;p&gt;The integration is three lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;clicks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ClicksClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;signer&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;clicks&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;quickStart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;5000&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;agentAddress&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;// 4000 USDC liquid, 1000 USDC earning yield&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For MCP-compatible agents, the same functionality is available as 9 tools that plug into Claude, Cursor, Gemini CLI, or any MCP client.&lt;/p&gt;

&lt;h2&gt;
  
  
  On-Chain Attribution
&lt;/h2&gt;

&lt;p&gt;Reputation in the agent economy is fragmented. ERC-8004 is trying to fix identity. But reputation without economic alignment decays into review spam.&lt;/p&gt;

&lt;p&gt;Clicks records who onboarded whom. When an agent routes payments through the protocol, the onboarding agent keeps a share of the fee. The graph is visible on-chain: which agents introduce which other agents, and whether those agents produce real volume.&lt;/p&gt;

&lt;p&gt;This is not a recruitment scheme. It is a measurable attribution layer. Agents with productive downstream trees have demonstrated taste. Agents with empty trees have not. Any agent evaluating another can query the graph directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Treasury Fits in the Stack
&lt;/h2&gt;

&lt;p&gt;LongHash's three-layer framework is discovery, transaction, and personalization. Treasury sits adjacent to the transaction layer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Discovery:    How agents find services
Transaction:  How agents pay (x402) and earn (treasury)
Reputation:   How agents trust each other
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;x402 is the outflow. Treasury is the inflow optimization. Together they form the complete financial layer for autonomous agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Opportunity
&lt;/h2&gt;

&lt;p&gt;LongHash identifies "adjacent FinOps" as an investment category worth watching. Treasury infrastructure is exactly that: financial operations for agent businesses.&lt;/p&gt;

&lt;p&gt;The market is real. The payments work. The agents exist. The yield is on-chain. What is missing is the connective tissue between receiving USDC and making it productive.&lt;/p&gt;

&lt;p&gt;That connective tissue is agent treasury infrastructure. And it is live on Base today.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Clicks Protocol is the agent commerce settlement router on Base. When USDC arrives via x402, Clicks splits it — liquid for operations, yield for idle capital via Aave V3 or Morpho. Non-custodial, no lockup, one SDK call. SDK, MCP server, and Eliza plugin on npm. clicksprotocol.xyz&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>defi</category>
      <category>web3</category>
      <category>agents</category>
    </item>
    <item>
      <title>X402 Solved Payments. Who Solves Treasury?</title>
      <dc:creator>David</dc:creator>
      <pubDate>Wed, 15 Apr 2026 23:25:53 +0000</pubDate>
      <link>https://dev.to/clicksprotocol/x402-solved-payments-who-solves-treasury-jh7</link>
      <guid>https://dev.to/clicksprotocol/x402-solved-payments-who-solves-treasury-jh7</guid>
      <description>&lt;p&gt;&lt;em&gt;LongHash Ventures mapped the missing infrastructure for agentic commerce. They found the gaps in discovery, identity, and reputation. They missed one.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The LongHash Thesis
&lt;/h2&gt;

&lt;p&gt;Last week, LongHash Ventures published a deep analysis of what agentic commerce still needs. Their conclusion: x402 solved how agents pay, but discovery and reputation remain broken. Agents can send USDC but cannot find services, verify trust, or assess quality.&lt;/p&gt;

&lt;p&gt;They are right. And their framework is useful. But it has a blind spot.&lt;/p&gt;

&lt;p&gt;The article covers three layers: how agents find each other (discovery), how agents trust each other (identity and reputation), and how agents pay each other (x402 and stablecoin settlement). What it does not cover is what happens to the money between transactions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Missing Layer: Treasury
&lt;/h2&gt;

&lt;p&gt;An AI agent receives USDC for serving API requests. It pays USDC for compute, data, and tools. Between those events, funds sit idle. An agent processing 2,000 USDC per month might hold 5,000 USDC in reserves. That reserve earns nothing.&lt;/p&gt;

&lt;p&gt;This is not a theoretical problem. There are 400,000 agents equipped with x402 wallets. Stripe launched machine payments with USDC on Base. Visa has Trusted Agent Protocol live. Mastercard rolled Agent Pay to US cardholders. The payment layer works.&lt;/p&gt;

&lt;p&gt;But payment is only half of finance. The other half is what you do with money when you are not spending it. Every human business has treasury management: sweep accounts, money market funds, overnight lending. Agent businesses have nothing.&lt;/p&gt;

&lt;p&gt;The LongHash framework identifies four investment categories: identity infrastructure, vertical discovery, reputation aggregation, and security. A fifth is missing: agent treasury operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Treasury Means for Agents
&lt;/h2&gt;

&lt;p&gt;Agent treasury is not DeFi yield farming. It is capital efficiency for autonomous software.&lt;/p&gt;

&lt;p&gt;When an agent receives a payment, some portion is needed soon and some is not. The portion that is not needed soon should earn yield. When the agent needs liquidity, it should be available instantly. No lockup, no governance votes, no human approval.&lt;/p&gt;

&lt;p&gt;This is the same logic that makes corporate treasury management a multi-trillion dollar industry. The difference is that agents operate 24/7, make thousands of micro-transactions, and cannot call their bank.&lt;/p&gt;

&lt;p&gt;The requirements are specific:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instant liquidity.&lt;/strong&gt; Agents cannot wait for unlock periods. When compute costs spike or a high-value request arrives, funds must be available in the same block.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No human in the loop.&lt;/strong&gt; Treasury operations must be fully autonomous. One SDK call to activate. One SDK call to withdraw. No dashboards, no approvals, no signatures beyond the agent operator.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;On-chain transparency.&lt;/strong&gt; Every deposit, yield accrual, and withdrawal must be verifiable. Agents operating with other agents need auditable financial state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Composable with x402.&lt;/strong&gt; Treasury must work alongside the payment protocol, not against it. When USDC arrives via x402, it should automatically route to the optimal allocation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers
&lt;/h2&gt;

&lt;p&gt;Morpho is currently offering 13.56 percent APY on USDC on Base. Aave V3 offers 2.75 percent. These rates fluctuate, but the spread between earning something and earning nothing is always positive.&lt;/p&gt;

&lt;p&gt;For a single agent holding 5,000 USDC with 20 percent allocated to yield at 10 percent APY, that is 100 USDC per year. Modest. For a fleet of 1,000 agents, that is 100,000 USDC. For the 400,000 x402-equipped agents in the ecosystem, even conservative estimates put the idle capital in the hundreds of millions.&lt;/p&gt;

&lt;p&gt;Circle published research showing 46 billion USDC sits idle across chains, with only 10 percent deployed in DeFi. The agent economy is recreating the same inefficiency at a smaller scale, but growing faster.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works in Practice
&lt;/h2&gt;

&lt;p&gt;The pattern is simple. Agent receives payment. Treasury protocol splits it: 80 percent stays liquid for operations, 20 percent earns yield via on-chain strategies. The split is configurable. The yield portion routes to whichever protocol offers the best rate. Withdrawal is instant.&lt;/p&gt;

&lt;p&gt;On Base, this means routing to Aave V3 or Morpho depending on current APY. The protocol fee is 2 percent on yield earned, never on principal. Non-custodial. No lockup. Immutable contracts.&lt;/p&gt;

&lt;p&gt;The integration is three lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;clicks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ClicksClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;signer&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;clicks&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;quickStart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;5000&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;agentAddress&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;// 4000 USDC liquid, 1000 USDC earning yield&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For MCP-compatible agents, the same functionality is available as 9 tools that plug into Claude, Cursor, Gemini CLI, or any MCP client.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Referral Loop
&lt;/h2&gt;

&lt;p&gt;LongHash emphasizes that reputation is fragmented. One mechanism for building on-chain reputation is economic alignment: agents that onboard other agents earn a share of the protocol fee.&lt;/p&gt;

&lt;p&gt;When Agent A refers Agent B, Agent A earns 40 percent of the protocol fee generated by Agent B. If Agent B refers Agent C, Agent A earns 20 percent of Agent C's fee. Three levels deep: 40, 20, 10 percent.&lt;/p&gt;

&lt;p&gt;This creates a measurable on-chain trust graph. Agents with large referral trees have demonstrated ability to identify and onboard productive agents. That is a reputation signal that cannot be gamed by creating empty accounts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Treasury Fits in the Stack
&lt;/h2&gt;

&lt;p&gt;LongHash's three-layer framework is discovery, transaction, and personalization. Treasury sits adjacent to the transaction layer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Discovery:    How agents find services
Transaction:  How agents pay (x402) and earn (treasury)
Reputation:   How agents trust each other
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;x402 is the outflow. Treasury is the inflow optimization. Together they form the complete financial layer for autonomous agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Opportunity
&lt;/h2&gt;

&lt;p&gt;LongHash identifies "adjacent FinOps" as an investment category worth watching. Treasury infrastructure is exactly that: financial operations for agent businesses.&lt;/p&gt;

&lt;p&gt;The market is real. The payments work. The agents exist. The yield is on-chain. What is missing is the connective tissue between receiving USDC and making it productive.&lt;/p&gt;

&lt;p&gt;That connective tissue is agent treasury infrastructure. And it is live on Base today.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Clicks Protocol is the treasury layer for AI agents on Base. 5 verified contracts, SDK and MCP server on npm, Farcaster Mini App live. clicksprotocol.xyz&lt;/em&gt;&lt;/p&gt;

</description>
      <category>defi</category>
      <category>ai</category>
      <category>blockchain</category>
      <category>web3</category>
    </item>
    <item>
      <title>How x402 Agents Earn Yield on Idle USDC with Clicks Protocol</title>
      <dc:creator>David</dc:creator>
      <pubDate>Wed, 15 Apr 2026 15:55:05 +0000</pubDate>
      <link>https://dev.to/clicksprotocol/how-x402-agents-earn-yield-on-idle-usdc-with-clicks-protocol-577m</link>
      <guid>https://dev.to/clicksprotocol/how-x402-agents-earn-yield-on-idle-usdc-with-clicks-protocol-577m</guid>
      <description>&lt;p&gt;Your AI agent gets paid via x402. Then the USDC sits there doing nothing. Here's how to fix that.&lt;/p&gt;

&lt;p&gt;The Problem: 400K+ Agents, 0% Yield&lt;br&gt;
The x402 HTTP payment protocol changed how AI agents get paid. Instead of subscriptions or API keys, agents receive USDC directly for every request they serve. A single x402 header, a Base transaction, done.&lt;/p&gt;

&lt;p&gt;But there's a gap nobody's talking about: what happens to the money after it lands?&lt;/p&gt;

&lt;p&gt;Right now, the answer is nothing. An agent earns 500 USDC serving requests on Monday. By Friday, those funds are still sitting in the same wallet, earning exactly 0%. Multiply that by 400,000 x402-equipped agents and you have hundreds of millions in idle capital generating zero return.&lt;/p&gt;

&lt;p&gt;Traditional finance would call this a cash drag. In DeFi, it's an opportunity.&lt;/p&gt;

&lt;p&gt;The x402 Payment Flow (Before Clicks)&lt;br&gt;
Here's a typical x402 interaction:&lt;/p&gt;

&lt;p&gt;Client                    Agent Server               Base&lt;br&gt;
  |--- GET /api/data -------&amp;gt;|                         |&lt;br&gt;
  |&amp;lt;-- 402 + payment info ---|                         |&lt;br&gt;
  |--- x402 payment header --|--- USDC transfer ------&amp;gt;|&lt;br&gt;
  |&amp;lt;-- 200 + response -------|                         |&lt;br&gt;
The agent receives USDC into its wallet. Then... it waits for the next request. Between requests, the USDC is idle. Over days and weeks, this adds up.&lt;/p&gt;

&lt;p&gt;Enter Clicks Protocol: Autonomous Yield on Base&lt;br&gt;
Clicks Protocol sits between the payment receipt and the idle waiting. When USDC arrives, it gets split automatically:&lt;/p&gt;

&lt;p&gt;80% stays liquid in the agent's wallet, available instantly for operations&lt;br&gt;
20% is deposited into Aave V3 or Morpho on Base, earning 4-8% APY&lt;br&gt;
No human intervention. No treasury management decisions. The split happens on-chain, governed by verified smart contracts.&lt;/p&gt;

&lt;p&gt;Client --- x402 payment ---&amp;gt; Agent Wallet&lt;br&gt;
                                |&lt;br&gt;
                          Clicks Splitter&lt;br&gt;
                           /          \&lt;br&gt;
                     80% liquid    20% yield&lt;br&gt;
                     (wallet)     (Aave/Morpho)&lt;br&gt;
Integration: 5 Lines of Code&lt;br&gt;
Using the Clicks SDK with an x402 agent server:&lt;/p&gt;

&lt;p&gt;import { ClicksClient } from '@clicks-protocol/sdk';&lt;br&gt;
import { ethers } from 'ethers';&lt;/p&gt;

&lt;p&gt;// Initialize once&lt;br&gt;
const provider = new ethers.JsonRpcProvider('&lt;a href="https://mainnet.base.org'" rel="noopener noreferrer"&gt;https://mainnet.base.org'&lt;/a&gt;);&lt;br&gt;
const signer = new ethers.Wallet(process.env.AGENT_PRIVATE_KEY, provider);&lt;br&gt;
const clicks = new ClicksClient(signer);&lt;/p&gt;

&lt;p&gt;// In your x402 payment handler:&lt;br&gt;
async function onPaymentReceived(amount: string, agentAddress: string) {&lt;br&gt;
  await clicks.quickStart(amount, agentAddress);&lt;br&gt;
}&lt;br&gt;
That's it. Every x402 payment now automatically earns yield on the idle portion.&lt;/p&gt;

&lt;p&gt;What Happens On-Chain&lt;br&gt;
When quickStart executes:&lt;/p&gt;

&lt;p&gt;ClicksRegistry checks if the agent is registered. If not, registers it.&lt;br&gt;
ClicksSplitterV4 splits the USDC: 80% goes directly to the agent wallet, 20% goes to the yield router.&lt;br&gt;
ClicksYieldRouter deposits the 20% into the highest-yielding protocol (Aave V3 or Morpho) on Base.&lt;br&gt;
ClicksFeeV2 takes a 2% fee on yield earned (not on principal), distributes referral rewards to the agent's referral chain (L1=40%, L2=20%, L3=10%), and sends the remainder to the protocol treasury.&lt;br&gt;
All contracts are deployed and verified on Base Mainnet:&lt;/p&gt;

&lt;p&gt;Contract    Address&lt;br&gt;
ClicksRegistry  0x23bb0Ea69b2BD2e527D5DbA6093155A6E1D0C0a3&lt;br&gt;
ClicksSplitterV4    0xB7E0016d543bD443ED2A6f23d5008400255bf3C8&lt;br&gt;
ClicksYieldRouter   0x053167a233d18E05Bc65a8d5F3F8808782a3EECD&lt;br&gt;
ClicksFeeV2 0x8C4E07bBF0BDc3949eA133D636601D8ba17e0fb5&lt;br&gt;
ClicksReferral  0x1E5Ab896D3b3A542C5E91852e221b2D849944ccC&lt;br&gt;
The Numbers&lt;br&gt;
Let's model a typical x402 agent:&lt;/p&gt;

&lt;p&gt;Metric  Value&lt;br&gt;
Monthly revenue 2,000 USDC&lt;br&gt;
Average idle balance    1,500 USDC&lt;br&gt;
Yield portion (20%) 300 USDC deposited&lt;br&gt;
APY (Aave V3 current)   ~5.5%&lt;br&gt;
Annual yield earned ~16.50 USDC&lt;br&gt;
Protocol fee (2% of yield)  ~0.33 USDC&lt;br&gt;
Net yield to agent  ~16.17 USDC&lt;br&gt;
For a single agent, this is modest. For a fleet of 1,000 agents each processing 2,000 USDC/month, that's over 16,000 USDC in annual yield from capital that was previously earning zero.&lt;/p&gt;

&lt;p&gt;For the entire x402 ecosystem of 400,000+ agents, even conservative estimates put the addressable idle capital in the hundreds of millions.&lt;/p&gt;

&lt;p&gt;Checking Your Status&lt;br&gt;
Agents can monitor their yield position:&lt;/p&gt;

&lt;p&gt;const info = await clicks.getAgentInfo(agentAddress);&lt;br&gt;
console.log(&lt;code&gt;Registered: ${info.isRegistered}&lt;/code&gt;);&lt;br&gt;
console.log(&lt;code&gt;Deposited: ${info.deposited}&lt;/code&gt;);&lt;/p&gt;

&lt;p&gt;const balance = await clicks.getAgentYieldBalance(agentAddress);&lt;br&gt;
console.log(&lt;code&gt;Principal: ${balance.deposited}&lt;/code&gt;);&lt;br&gt;
console.log(&lt;code&gt;Current value: ${balance.currentValue}&lt;/code&gt;);&lt;br&gt;
console.log(&lt;code&gt;Yield earned: ${balance.yieldEarned}&lt;/code&gt;);&lt;/p&gt;

&lt;p&gt;const yieldInfo = await clicks.getYieldInfo();&lt;br&gt;
const activeAPY = yieldInfo.activeProtocol === 1&lt;br&gt;
  ? yieldInfo.aaveAPY&lt;br&gt;
  : yieldInfo.morphoAPY;&lt;br&gt;
console.log(&lt;code&gt;Current APY: ${Number(activeAPY) / 100}%&lt;/code&gt;);&lt;br&gt;
Withdrawing When Needed&lt;br&gt;
When an agent needs maximum liquidity:&lt;/p&gt;

&lt;p&gt;await clicks.withdrawYield(agentAddress);&lt;br&gt;
// All funds now liquid. Re-activate anytime with quickStart.&lt;br&gt;
Framework Support&lt;br&gt;
Clicks integrates with the major AI agent frameworks:&lt;/p&gt;

&lt;p&gt;LangChain: pip install clicks-langchain&lt;br&gt;
CrewAI: pip install clicks-crewai&lt;br&gt;
Eliza (ai16z): import { clicksPlugin } from '@clicks-protocol/eliza-plugin'&lt;br&gt;
Coinbase AgentKit: PR #1107 submitted&lt;br&gt;
Plus an MCP Server with 9 tools for any MCP-compatible agent (Claude, Cursor, Gemini CLI, etc.).&lt;/p&gt;

&lt;p&gt;Why This Matters for x402&lt;br&gt;
x402 solved the payment layer for AI agents. Clicks solves the treasury layer. Together, they create a complete financial stack:&lt;/p&gt;

&lt;p&gt;x402 handles earning: agents get paid in USDC for services&lt;br&gt;
Clicks handles idle capital: USDC earns yield between transactions&lt;br&gt;
Base handles settlement: low fees make micro-splits economical&lt;br&gt;
The result: AI agents that don't just earn money, but make their money work for them. Autonomously, on-chain, with no human in the loop.&lt;/p&gt;

&lt;p&gt;Get Started&lt;br&gt;
SDK: npm install @clicks-protocol/sdk&lt;br&gt;
MCP Server: npx @clicks-protocol/mcp-server&lt;br&gt;
LangChain: pip install clicks-langchain&lt;br&gt;
CrewAI: pip install clicks-crewai&lt;br&gt;
Docs: clicksprotocol.xyz&lt;br&gt;
GitHub: clicks-protocol/clicks-protocol&lt;br&gt;
Clicks Protocol is live on Base Mainnet. Your idle USDC is waiting.&lt;/p&gt;

</description>
      <category>defi</category>
      <category>ai</category>
      <category>blockchain</category>
      <category>typescript</category>
    </item>
    <item>
      <title>Building an AI Agent That Earns Yield on Its Own USDC</title>
      <dc:creator>David</dc:creator>
      <pubDate>Wed, 01 Apr 2026 22:38:02 +0000</pubDate>
      <link>https://dev.to/clicksprotocol/building-an-ai-agent-that-earns-yield-on-its-own-usdc-37o1</link>
      <guid>https://dev.to/clicksprotocol/building-an-ai-agent-that-earns-yield-on-its-own-usdc-37o1</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgcg5sby90i4vzk94o055.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgcg5sby90i4vzk94o055.jpg" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Idle Treasury Problem&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most AI agents follow this pattern:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Earn USDC through services or payments&lt;/li&gt;
&lt;li&gt;Hold USDC for future transactions or as reserves&lt;/li&gt;
&lt;li&gt;The USDC sits idle, earning nothing&lt;/li&gt;
&lt;li&gt;Protocols like Tether/Circle earn billions on this idle float&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Getting Started with Clicks SDK&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First, install the SDK:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;npm install @clicks-protocol/sdk&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Then, in your agent code:&lt;/p&gt;

&lt;p&gt;import { ClicksClient } from '@clicks-protocol/sdk';&lt;/p&gt;

&lt;p&gt;const clicks = new ClicksClient();&lt;br&gt;
const agentAddress = '0xYourAgentAddressHere';&lt;/p&gt;

&lt;p&gt;async function setupAgentYield() {&lt;br&gt;
  const tx = await clicks.quickStart(1000, agentAddress);&lt;br&gt;
  console.log('Yield setup complete:', tx.hash);&lt;/p&gt;

&lt;p&gt;const info = await clicks.getAgentInfo(agentAddress);&lt;br&gt;
  console.log('Agent status:', info);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;The quickStart() method handles agent registration, USDC approval, 80/20 split execution, and yield strategy activation.&lt;/p&gt;

&lt;p&gt;Handling Incoming Payments&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For agents that regularly receive USDC, automate the yield process:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;async function handleIncomingPayment(amount, fromAddress) {&lt;br&gt;
  const yieldTx = await clicks.receivePayment(amount, agentAddress);&lt;br&gt;
  console.log('Yield optimized:', yieldTx.hash);&lt;br&gt;
  // 80% remains liquid, 20% starts earning yield&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Checking Balances and Yield&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;async function checkTreasury() {&lt;br&gt;
  const info = await clicks.getAgentInfo(agentAddress);&lt;br&gt;
  console.log('Liquid USDC:', info.liquidBalance);&lt;br&gt;
  console.log('Yield USDC:', info.yieldBalance);&lt;br&gt;
  console.log('Total earned:', info.totalYieldEarned);&lt;br&gt;
  console.log('Current APY:', info.currentAPY + '%');&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MCP Server Integration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For agents using Model Context Protocol:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;npm install @clicks-protocol/mcp-server&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;x402 Payment Protocol Compatibility&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Security&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;clicksprotocol.xyz (&lt;a href="https://clicksprotocol.xyz/" rel="noopener noreferrer"&gt;https://clicksprotocol.xyz/&lt;/a&gt;)&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;GitHub (&lt;a href="https://github.com/clicks-protocol" rel="noopener noreferrer"&gt;https://github.com/clicks-protocol&lt;/a&gt;)&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Docs (&lt;a href="https://clicksprotocol.xyz/docs/getting-started" rel="noopener noreferrer"&gt;https://clicksprotocol.xyz/docs/getting-started&lt;/a&gt;)&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>blockchain</category>
      <category>web3</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
