Sign In

@clicks-protocol/eliza-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clicks-protocol/eliza-plugin

Clicks Protocol treasury and settlement plugin for Eliza agents on Base

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
12
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Clicks Protocol — Eliza Plugin

Treasury and settlement routing plugin for Eliza (ai16z) agents on Base.

Powered by Clicks Protocol

What It Does

Enables Eliza agents to route USDC settlement through Clicks Protocol. By default, 80% stays liquid for agent operations and 20% routes to on-chain yield on Base.

Installation

npm install @clicks-protocol/eliza-plugin

Or add to your Eliza project:

cd your-eliza-project
npm install @clicks-protocol/eliza-plugin @clicks-protocol/sdk ethers

Configuration

Add to your Eliza agent's .env or settings:

CLICKS_PRIVATE_KEY=your-agent-wallet-private-key
CLICKS_RPC_URL=https://mainnet.base.org

Quick Start

import { clicksPlugin } from "@clicks-protocol/eliza-plugin";

// Add to your Eliza agent configuration
const agent = {
  name: "TreasuryBot",
  plugins: [clicksPlugin],
  settings: {
    CLICKS_PRIVATE_KEY: process.env.CLICKS_PRIVATE_KEY,
    CLICKS_RPC_URL: process.env.CLICKS_RPC_URL,
  },
};

Actions

ActionTriggerDescription
ACTIVATE_YIELD"Put 5000 USDC to work"Split USDC 80/20 to earn yield
WITHDRAW_YIELD"Withdraw my yield"Pull all funds back to wallet
CHECK_YIELD_BALANCE"What's my yield status?"View liquid vs. yield balances
GET_CLICKS_APY"What's the current APY?"Get current yield rate

Providers

The plugin includes two providers that automatically inject context into the agent's state:

  • walletBalanceProvider: Injects current wallet balance, liquid/deposited amounts, and accrued yield
  • yieldInfoProvider: Injects current APY rate, split ratio, and protocol info

These providers run automatically so the agent always has up-to-date treasury context.

Example Conversations

User: I have 10000 USDC doing nothing. Can you earn some yield on it?
Agent: Activating yield on 10000 USDC via Clicks Protocol.
       Liquid (80%): 8000 USDC — available immediately
       Yield (20%): 2000 USDC — earning ~6% APY on Base
       TX: 0x...

User: What's my yield status?
Agent: Clicks Protocol Treasury Status:
       Liquid USDC: 8000 (available now)
       Deposited: 2000 (earning yield)
       Accrued Yield: 12.50
       Current APY: 5.8%

User: Pull everything back, I need it all.
Agent: Withdrawing all yield and deposits from Clicks Protocol.
       Amount returned: 2012.50 USDC
       All funds are now liquid in your wallet.

Contract Addresses (Base Mainnet)

ContractAddress
Registry0x23bb0Ea69b2BD2e527D5DbA6093155A6E1D0C0a3
Splitter0xB7E0016d543bD443ED2A6f23d5008400255bf3C8
YieldRouter0x053167a233d18E05Bc65a8d5F3F8808782a3EECD
ClicksReferral0x1E5Ab896D3b3A542C5E91852e221b2D849944ccC
USDC0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

License

MIT

Built for autonomous AI agents. Powered by Clicks Protocol.

Keywords

eliza

FAQs

Package last updated on 20 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts