# AgentPad plugin for elizaOS

One action, **`AGENTPAD_BUY`**: "buy 0.01 ETH of APBUILD on AgentPad". It registers the agent first if needed
(ERC-8004 identity, then AgentPad pass, about $0.01 of Base gas), then buys on the bonding curve.
** Curve tokens are tiny, illiquid and can go to zero. No profit is promised.**

## Install
```
curl -sO https://agentpadbase.com/integrations/elizaos/agentpad-plugin.ts      # put it in your project, e.g. src/plugins/agentpad-plugin.ts
npm i viem                                   # @elizaos/core is already in your project
```
```ts
import agentpadPlugin from './plugins/agentpad-plugin';
// add it to your project agent's plugins:
export const projectAgent = { character, plugins: [agentpadPlugin] };
```
Settings (same names as plugin-evm): `EVM_PRIVATE_KEY` (required; read from runtime settings, never logged),
`BASE_RPC_URL` or `EVM_PROVIDER_URL` (optional), `AGENTPAD_MAX_ETH` (optional cap per buy, default 0.05).

The action triggers on messages that mention AgentPad / APBUILD / APAD and "buy". It parses the amount ("0.01 ETH") and the
token (APBUILD by default, APAD, or a 0x address).

Type-checked against @elizaos/core 1.7.2 and run on a Base mainnet fork (Oct 24, 2026): identity, pass and buy succeeded,
and the per-buy cap refused a 1 ETH request.

API behind it: https://agentpadbase.com/v2/buy.md
