coinbase-agentkit

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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, up-to-date guidance for building AI agents with onchain capabilities using @coinbase/agentkit v0.2.x. ## Core Features & Use Cases - Wallet Provider Setup: Configure CDP-managed wallets (CdpEvmWalletProvider), smart wallets with paymasters (CdpSmartWalletProvider), Viem, Privy, and Solana providers with persistence across sessions. - 50+ Action Providers: Enable transfers, ERC20/ERC721 operations, swaps via CDP API, DeFi actions (Compound, Morpho, Moonwell), price feeds (Pyth), Basenames, bridging (Across), and social posting (Farcaster, Twitter). - Framework Integrations: Convert AgentKit actions into tools for LangChain/LangGraph, Vercel AI SDK, or Model Context Protocol servers. - Use Case: Build a conversational agent on Base Sepolia that checks balances, requests faucet funds, wraps ETH, swaps tokens for USDC, and deploys an ERC20 contract — 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 Coinbase AgentKit?

Install @coinbase/agentkit, configure a CdpEvmWalletProvider with your CDP API credentials, then pass it to AgentKit.from() with action providers like walletActionProvider and erc20ActionProvider. Use getLangChainTools or getVercelAITools to expose actions to your LLM framework.

What is the difference between CdpEvmWalletProvider and CdpSmartWalletProvider?

CdpEvmWalletProvider uses CDP-managed externally owned wallets with server-side key signing, suited for production agents. CdpSmartWalletProvider creates ERC-4337 smart contract wallets that support gasless transactions through paymasters, available on Base and Ethereum.

Does Coinbase AgentKit work with LangChain and Vercel AI SDK?

Yes. Install @coinbase/agentkit-langchain and call getLangChainTools(agentKit) for LangChain/LangGraph agents, or @coinbase/agentkit-vercel-ai-sdk with getVercelAITools(agentKit) for the Vercel AI SDK. An MCP server integration is also available.

Why does AgentKit fail with 'Invalid API key' or wallet initialization errors?

AgentKit requires a CDP Secret API Key with both CDP_API_KEY_ID and CDP_API_KEY_SECRET set correctly. Check for trailing whitespace in environment variables, verify the key is active in the CDP portal, and ensure the networkId is valid, such as base-sepolia.

Can AgentKit be used on networks other than Base?

Yes. AgentKit supports Ethereum, Arbitrum, Polygon, Optimism, and Solana in addition to Base. Base has the deepest protocol integrations like Basename, Compound, and Morpho, while wallet operations and ERC20 actions work across all supported EVM networks.

What Node.js version does @coinbase/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. Custom action providers also require emitDecoratorMetadata and experimentalDecorators enabled in tsconfig.json.