coinbase-agentkit

Build AI agents with onchain wallet, transfer, swap, and contract deployment capabilities.

1|1|Updated May 21, 2026
One-click install
npx skills add https://github.com/naruto11eth/cryptoskills --skill coinbase-agentkit-naruto11eth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coinbase-agentkit
Source: https://github.com/naruto11eth/cryptoskills/tree/main/skills/coinbase-agentkit
Command: npx skills add https://github.com/naruto11eth/cryptoskills --skill coinbase-agentkit-naruto11eth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @coinbase/agentkit, @coinbase/agentkit-langchain, @coinbase/agentkit-vercel-ai-sdk, @langchain/langgraph, @langchain/openai, viem, zod, solc, dotenv, and includes references (resource) components.

What problem does it solve? LLMs have stale knowledge of Coinbase AgentKit: they reference deprecated packages like @coinbase/cdp-agentkit-core, use the renamed CdpWalletProvider class, and miss current requirements like Node.js v22+. This Skill provides verified, current guidance for building AI agents with onchain capabilities using @coinbase/agentkit v0.2.x. ## Core Features & Use Cases - Wallet Provider Setup: Configure CdpEvmWalletProvider, CdpSmartWalletProvider, ViemWalletProvider, or PrivyWalletProvider with correct network IDs and CDP API credentials. - Action Provider Reference: Complete catalog of 25+ action providers covering ERC20/ERC721 tokens, swaps, DeFi protocols (Compound, Morpho, Moonwell), social (Farcaster, Twitter), oracles (Pyth), and bridges (Across). - Framework Integration: Working patterns for LangChain, Vercel AI SDK, and Model Context Protocol, plus custom action providers with the @CreateAction decorator. - Use Case: Build a conversational agent that checks balances, wraps ETH, swaps tokens via the CDP trade API, and deploys an ERC20 contract on Base Sepolia, all driven by natural language. ## Quick Start Use the coinbase-agentkit skill to scaffold a LangChain agent with a CDP wallet on Base Sepolia that can check balances and transfer tokens.

Frequently Asked Questions about coinbase-agentkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an AI agent with a crypto wallet using AgentKit?

Install @coinbase/agentkit, configure a CdpEvmWalletProvider with your CDP API key ID and secret, then pass it to AgentKit.from() with action providers like walletActionProvider and erc20ActionProvider. Connect the resulting tools to LangChain via getLangChainTools or to the Vercel AI SDK via getVercelAITools.

What is the correct npm package for Coinbase AgentKit?

The current package is @coinbase/agentkit, with framework extensions @coinbase/agentkit-langchain and @coinbase/agentkit-vercel-ai-sdk. The older @coinbase/cdp-agentkit-core and @coinbase/cdp-langchain packages are deprecated and should be uninstalled.

Does AgentKit support networks other than Base?

Yes, AgentKit supports Ethereum, Arbitrum, Polygon, Optimism, and Solana in addition to Base. Base has the deepest protocol integrations such as Basename, Compound, and Morpho, but wallet operations work on any EVM network.

Why does AgentKit fail with CdpWalletProvider is not exported?

The class was renamed to CdpEvmWalletProvider in v0.1 and later. Update your imports from CdpWalletProvider to CdpEvmWalletProvider, and replace CdpToolkit with getLangChainTools(agentKit) for LangChain integration.

Why does AgentKit throw emitDecoratorMetadata is not enabled?

Custom action providers using the @CreateAction decorator require TypeScript decorator support. Add emitDecoratorMetadata and experimentalDecorators set to true in tsconfig.json, and import reflect-metadata at the top of your entry file.

What Node.js version does AgentKit require?

AgentKit requires Node.js v22 or later. Earlier versions fail silently or throw runtime errors such as missing fetch or node:crypto modules, so verify your version with node --version before installing.