Agent commerce settlement routing for AI agents on Base. Use this skill to inspect treasury state, preview settlement policy, and plan attribution flows before any on-chain action.
This ClawHub skill is published under MIT-0. The Clicks Protocol contracts, SDKs, docs, and packages keep their own repository-level licenses.
This ClawHub skill is read-only by default.
If you build write flows with the SDK or local MCP server, require explicit human approval for every transaction. Show the chain, contract, method, asset, amount, recipient, fees, and expected state change before signing. Never auto-submit treasury or USDC-moving actions from an autonomous agent loop.
All commands use the live HTTP MCP Server. No API key, no setup, no dependencies beyond curl + jq.
bash
{baseDir}/scripts/clicks.sh yield-info
Returns: active protocol, APY for Aave and Morpho, total balance, pending fees.
bash
{baseDir}/scripts/clicks.sh agent-info 0xYOUR_AGENT_ADDRESS
Returns: registration status, operator, deposited USDC, yield percentage, wallet balance.
bash
{baseDir}/scripts/clicks.sh simulate 1000 0xYOUR_AGENT_ADDRESS
Returns: how much goes liquid and how much goes to yield for a given payment amount.
bash
{baseDir}/scripts/clicks.sh referral 0xYOUR_AGENT_ADDRESS
Returns: direct referrals, total earned, claimable rewards, referral chain, team bonus status.
bash
{baseDir}/scripts/clicks.sh info
Returns: protocol overview, contract addresses, fee model, and links.
Read operations work via the script above. For application code, install the SDK and start with read-only inspection and simulation:
bash
npm install @clicks-protocol/sdk
typescript
import { ClicksClient } from '@clicks-protocol/sdk';
const clicks = new ClicksClient(provider);
await clicks.getAgentInfo(agentAddress);
await clicks.simulateSplit('1000', agentAddress);
await clicks.getYieldInfo();
Write operations are available in the SDK for operators who control their own signer, but they are outside this ClawHub skill's default behavior. Before calling any method that changes on-chain state or touches USDC, get explicit human approval and show the exact transaction details.
Referral attribution should be approved by the agent operator before any state-changing transaction:
typescript
const deadline = BigInt(Math.floor(Date.now() / 1000) + 3600);
const signature = await clicks.signReferralApproval(agentAddress, referrerAddress, deadline);
// Submit a state-changing transaction only after explicit human approval
// of chain, contract, asset, amount, and referrer.
Real attribution should use an explicit signed referral approval. Avoid implicit referral parameters in autonomous agent loops.
For MCP-compatible clients like Claude, Cursor, LangChain, or custom agent runtimes:
bash
# Local stdio server. Use read-only tools in agent loops.
npx @clicks-protocol/mcp-server
# Remote HTTP endpoint, read-only, zero setup
# POST https://mcp.clicksprotocol.xyz/mcp
Read-only tools:
The local MCP package also includes operator tools for state-changing flows. Those require a signer, a separate integration, and explicit human approval. Do not expose them to autonomous agent loops.
Each onboarded agent can generate fee share upstream via the on-chain attribution graph:
This lets an agent receive a defined share of protocol fees generated by agents it onboarded. ClicksReferral and ClicksFeeV2 enforce that relationship on-chain.
Agents with larger attributed downstream volume can unlock team bonus logic and higher economics. Use this when building agent ecosystems, operator dashboards, or monetized agent templates.
x402 and ACP can execute payments. Clicks starts after payment execution and applies settlement policy to received USDC. The dedicated x402 adapter is planned, not released. Do not treat the current skill as automatic x402 detection or verification.
Clicks is registered as agentId 45074 on the Base ERC-8004 Identity Registry. One Schema V1 feedback record is live. A future ClicksSplitterV5 may read reputation to offer variable fee tiers, but V5 is a repository prototype and is not deployed. Attestor Schema V1 is published at https://clicksprotocol.xyz/strategy/ATTESTOR-SCHEMA-V1.md.
ChainBase L2AssetUSDCCurrent default split80% liquid / 20% optional yield routeSettlement scopePost-payment policy and routingFee2% on yield onlyLockupNoneReferral3-level: 40% / 20% / 10%Discoveryllms.txt + agent.json + agent-registration.json + OpenAPIIdentityERC-8004 agentId 45074OwnershipGnosis Safe Multisig
0x23bb0Ea69b2BD2e527D5DbA6093155A6E1D0C0a30xB7E0016d543bD443ED2A6f23d5008400255bf3C80x8C4E07bBF0BDc3949eA133D636601D8ba17e0fb50x053167a233d18E05Bc65a8d5F3F8808782a3EECD0x1E5Ab896D3b3A542C5E91852e221b2D849944ccC0xaD8228fE91Ef7f900406D3689E21BD29d5B1D6A90x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913Basescan links and examples are in references/contracts.md.
references/contracts.md