goat
GOAT (Great Onchain Agent Toolkit)
GOAT is the leading open-source framework for connecting AI agents to onchain protocols. It provides 200+ protocol integrations across 30+ chains with adapters for every major agent framework — Vercel AI SDK, LangChain, LlamaIndex, Eliza, MCP, and more. Agents get wallets, trade tokens, interact with DeFi protocols, bridge cross-chain, and execute arbitrary smart contract calls through a modular plugin architecture. MIT licensed, sponsored by Crossmint, but fully provider-agnostic.
Source: https://github.com/goat-sdk/goat
What You Probably Got Wrong
LLMs have stale training data. These are the most common mistakes.
- "Import from
goat-sdk" → The npm scope is@goat-sdk/*. Every package lives under this scope:@goat-sdk/core,@goat-sdk/adapter-vercel-ai,@goat-sdk/plugin-erc20, etc. There is no singlegoat-sdkpackage. - "Install one package for everything" → GOAT is modular by design. You install only what you need: a core package, one adapter for your framework, one wallet provider, and the specific plugins for protocols you want. A minimal setup needs 3-4 packages, not one.
getTools()is synchronous →getOnChainTools()from the adapter packages isasyncand must beawaited. Missingawaitgives you a Promise instead of tools, and your agent silently has zero capabilities.- "GOAT only supports EVM" → GOAT supports EVM, Solana, Aptos, Chromia, Cosmos, Fuel, Sui, Starknet, Zilliqa, Radix, Zetrix, and Lit. Plugin chain-specificity is declared via
supportsChain(). - "Use the same wallet for all chains" → Each chain has its own wallet provider. EVM uses
@goat-sdk/wallet-viem, Solana uses@goat-sdk/wallet-solana, Crossmint smart wallets use@goat-sdk/wallet-crossmint. You cannot pass a viem wallet to a Solana plugin. - "Plugins are functions" → Plugins are class instances. The convention is a factory function (e.g.,
erc20(),uniswap()) that returns anew PluginBasesubclass. Call the factory; do not pass the class directly. - Old
@ai16z/plugin-goatpackage → The Eliza integration moved to@elizaos/plugin-goat. The@ai16zscope is deprecated. - "GOAT handles transaction signing" → GOAT delegates signing to the wallet provider. You must configure the wallet client (viem, Crossmint, keypair) with the appropriate private key or signer. GOAT orchestrates tool calls; the wallet signs.
- Missing
maxStepsin Vercel AI SDK → When usinggenerateTextorstreamText, you must setmaxSteps(e.g., 10) so the model can make multiple tool calls. Without it, the agent makes one call and stops.
More from aomi-labs/skills
aomi-transact
>
29aomi-build
>
13x402
HTTP 402 payment protocol for AI agent commerce — three-actor model (Client, Resource Server, Facilitator), ERC-3009 transferWithAuthorization, server middleware (@x402/express), client patterns in TypeScript and Python, facilitator integration, agent-to-agent payments, pricing strategies, and replay protection. Works on Base, Ethereum, Arbitrum, Optimism, Polygon, and Solana.
2eliza
elizaOS multi-agent AI framework — character files, plugin system, platform connectors, trust scoring, RAG knowledge, and Solana wallet integration. Use when building autonomous AI agents with personality, multi-platform presence, or onchain capabilities.
2brian-api
Brian API — natural language to executable Web3 transactions. Convert text intents into swap, bridge, transfer, deposit, withdraw, and borrow transactions across multiple chains. REST API, LangChain integration, and knowledge queries for DeFi protocol data.
2solana-agent-kit
Comprehensive guide for building AI agents that interact with Solana blockchain using SendAI's Solana Agent Kit. Covers 60+ actions, LangChain/Vercel AI integration, MCP server setup, and autonomous agent patterns.
2