Skip to main content
The Coinbase AgentKit LangChain extension gives an LLM agent tools to interact with the Coinbase Developer Platform. Agents can perform onchain operations such as transfers, trades, and smart contract interactions.

Overview

Integration details

Setup

  1. Install the AgentKit packages.
  2. Set CDP API credentials.
  3. Create an AgentKit instance and convert it to LangChain tools with get_langchain_tools.
  4. Pass the tools to your agent.
To enable automated tracing of individual tools, set your LangSmith API key:

Installation

Set environment variables

Create API credentials in the CDP Portal, then set:

Instantiation

For wallet providers, action providers, and advanced configuration, see the Coinbase AgentKit README.

Tools

Available actions depend on the action providers configured on AgentKit. Common providers include wallet details, balances, faucet funds, transfers, trades, and token or NFT deployment.

Use within an agent

For a full runnable example with a CDP smart wallet, see the AgentKit LangChain chatbot example.

API reference

For detailed documentation of configuration options and APIs: