AI Agent Plugins
Give your AI agent access to aggregated flash loans on Solana. One line of code, 65+ tokens, automatic routing across Kamino, Marginfi & Jupiter Lend.
The agent doesn't need to understand Solana transactions, PDAs, or lending protocols. It calls discovery tools, evaluates profitability, and builds atomic transactions โ the plugin handles everything else.
Choose Your Plugin
| Agent Kit v2 | GOAT SDK | MCP Server | |
|---|---|---|---|
| Best for | Autonomous agents | Autonomous agents | Chat assistants |
| Frameworks | ElizaOS, LangChain, Vercel AI | LangChain, Vercel AI, ElizaOS | Claude, Cursor, Windsurf |
| Install | npm i @vaea/solana-agent-kit-plugin | npm i @vaea/goat-plugin | npx @vaea/mcp-server |
| Tools | 5 core tools | 5 core tools | 8 tools + 6 resources + 3 prompts |
| Wallet | Via Agent Kit wallet | Auto-fill from wallet | User provides pubkey |
| License | MIT | MIT | MIT |
Solana Agent Kit v2 Recommended
The leading AI agent framework on Solana. Used by ElizaOS and the Solana Skills registry (where VAEA will be listed).
Installation & Setup
Plugin Architecture
The plugin implements the official Agent Kit v2 Plugin interface. When registered, it injects 5 Action objects into the agent's tool registry. Each action has:
| Property | Purpose |
|---|---|
name | Tool name the LLM calls (e.g. vaea_check_capacity) |
description | Natural language explanation for the LLM |
similes | Alternative phrasings โ "check liquidity", "how much can I borrow" |
examples | Few-shot input/output pairs for accurate LLM tool use |
handler | Async function that calls the VAEA API and returns structured data |
Custom API URL
GOAT SDK
Framework-agnostic plugin ecosystem with 200+ plugins. Your agent can combine VAEA flash loans with any other GOAT plugin (Jupiter swap, Raydium LP, etc.) in the same tool set.
Installation
With LangChain
With Vercel AI SDK
Plugin Architecture
The GOAT plugin extends PluginBase and declares supportsChain("solana"). Each tool uses Zod schemas for input validation โ the LLM sees typed, documented parameters.
| Feature | Detail |
|---|---|
| Base class | PluginBase |
| Chain support | supportsChain("solana") โ Solana only |
| Wallet auto-fill | Yes โ user_pubkey injected from wallet |
| Input validation | Zod schemas (type-safe, documented parameters) |
| Composable | Combine with Jupiter swap, Raydium LP, etc. |
Agent Flow
Every plugin follows the same 4-step flow. The agent calls tools in sequence:
Security Model
| Guarantee | How |
|---|---|
| No private keys | Plugins never touch keys. They return unsigned transactions. |
| Read-only discovery | 4 of 5 tools are read-only ๐๏ธ Eyes. No state mutation. |
| User signs | Agent builds TX, user reviews & signs via wallet adapter. |
| Atomic execution | If repay fails, entire TX reverts. Zero partial execution. |
| Anti-CPI guard | On-chain program rejects CPI calls โ only direct invocation allowed. |
Packages
| Package | Framework | Install | Type |
|---|---|---|---|
| @vaea/solana-agent-kit-plugin | Agent Kit v2 | npm i @vaea/solana-agent-kit-plugin | Autonomous |
| @vaea/goat-plugin | GOAT SDK | npm i @vaea/goat-plugin | Autonomous |
| @vaea/mcp-server | MCP | npx @vaea/mcp-server | Interactive |