Select an SDK to install

npm install @coinbase/coinbase-sdk

Create CDP API keys

If you have an existing Coinbase account, sign in. If you’ve never used Coinbase before, create an account. Navigate to API Keys and create an API key.

Initialize CDP SDK

Pass your API Key name and API Key’s private key:
import { Coinbase, Wallet } from "@coinbase/coinbase-sdk";

// Paste in your API key name and private key
const apiKeyName = "Copy your API Key name here";

const privateKey = "Copy your API Key's private key here";

const coinbase = new Coinbase({ apiKeyName: apiKeyName, privateKey: privateKey });

Start building with our quickstarts

Follow one of our popular quickstarts to start building your app. View Node.js SDK Reference or Python SDK Reference.

Create a wallet and send funds

Learn how to create wallets and send funds onchain.

Fund a crypto wallet

Learn how your users can fund their wallets with crypto.

Perform your first Staking API call

Pull a list of staking protocols offered by our platform.

Or explore our demo apps

See all demo apps

AgentKit

Build autonomous crypto agents with AgentKit.

AIWallet API

Automated mass payouts

Distribute payments to millions of recipients with a few lines of code.

PaymentsWallet API

Incentivized AI Learning

A simple onchain AI app for reinforcement learning from human feedback.

AIWallet API