Coinbase AgentKit

Platforms & APIs 💻 TypeScript ⚖️ Other 🟢 Actively maintained
1.3k stars

AgentKit is Coinbase Developer Platform's toolkit for giving AI agents a crypto wallet and onchain interactions. It is framework-agnostic and wallet-agnostic, enabling developers to build agents that can perform onchain actions like payments. It is for developers creating AI agents that need blockchain capabilities.

Welcome To AgentKit

🎬 Welcome To AgentKit · Lincoln Murr

✨ Key features

  • Framework-agnostic: works with any AI framework
  • Wallet-agnostic: supports multiple wallet providers
  • 50+ actions in TypeScript, 30+ in Python
  • Supports fee-free stablecoin payments
  • Includes examples for LangChain, Vercel AI SDK, and more
  • Nightly builds for latest features

🎯 Use cases

  • Build a chatbot that can fund wallets with testnet ETH
  • Create an AI agent that can trade on decentralized exchanges
  • Develop a social media agent that posts on Twitter or Farcaster
  • Integrate onchain capabilities into existing AI frameworks

📦 Installation

🧰 Requirements: Node.js 22+ or Python 3.10+, CDP Secret API Key, OpenAI API Key, and optionally Poetry for Python.

Node.js

npm create onchain-agent@latest
cd onchain-agent
Fill in .env.local with your API keys, then rename to .env
mv .env.local .env
npm install
npm run dev

Python

pipx run create-onchain-agent
cd onchain-agent
Fill in .env.local with your API keys, then rename to .env
mv .env.local .env
poetry install
poetry run python chatbot.py

🚀 Usage

Node.js

After running npm run dev, visit http://localhost:3000 and prompt the agent, e.g., "Fund my wallet with some testnet ETH." The agent will execute the action and return a transaction link.

Python

After running poetry run python chatbot.py, select "1. chat mode" and prompt the agent similarly.

⚠️ Good to know

AgentKit is experimental and provided AS-IS; LLMs can be manipulated to perform unintended onchain transfers, and developers are responsible for managing risks.

❓ FAQ

What are the prerequisites for using AgentKit?

You need Node.js 22+ or Python 3.10+, a CDP Secret API Key, and an OpenAI API Key. For Python, Poetry is also required.

Can I use AgentKit with any AI framework?

Yes, AgentKit is framework-agnostic and provides extensions for LangChain, Vercel AI SDK, OpenAI Agents SDK, and more.

What wallets are supported?

AgentKit supports CDP, Privy, and Viem wallet providers, among others.

How do I get the latest features?

You can install nightly builds via npm or pip, which are updated nightly from the main branch.

📊 Repository

Stars★ 1,297
Forks🍴 806
Open issues🐛 360
Last commit🕒 Sep 3, 2026
Created📅 Oct 2024
Language💻 TypeScript
License⚖️ Other

🤖 Overview, features, install steps and FAQ were generated from the project's README on Sep 4, 2026. Always check the original source before running commands.