cdp-sdk
CDP SDK
What it is and what it does
The CDP SDK is a Python client for Coinbase's Developer Platform that abstracts blockchain account management and transaction operations across EVM and Solana networks. It provides async-first APIs to create accounts (with optional import from existing private keys), manage transaction permissions through policies, and execute blockchain operations like token transfers and swaps. The client handles authentication via API keys and wallet secrets, manages connection pooling internally, and is designed to be instantiated once per application lifecycle and reused across concurrent operations.
The package wraps lower-level blockchain libraries (web3, solana, solders) and Coinbase's own APIs, letting developers focus on application logic rather than key management, signing, or network details. It supports both simple accounts and EVM smart accounts, end-user management for multi-tenant scenarios, and webhook subscriptions for transaction events.
Use it for:
- Build a custodial wallet service that creates and manages user accounts on EVM or Solana without exposing private keys
- Implement transaction policies to enforce spending limits or approval workflows before blockchain operations execute
- Create a multi-chain token swap interface that abstracts EVM swap mechanics through the SDK's high-level API
- Develop a serverless function that processes blockchain transactions on-demand, reusing a singleton CDP client across invocations
- Manage end-user accounts and delegated operations in a multi-tenant application with fine-grained access control
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for the Coinbase Developer Platform that enables creating and managing EVM and Solana blockchain accounts, sending transactions, and interacting with wallet and policy APIs.
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and requires Python 3.10+. It is purpose-built for Coinbase platform users who need programmatic account and transaction management across EVM and Solana. Install it if you are building on Coinbase Developer Platform; avoid it if you need a general-purpose web3 library or are not using Coinbase's infrastructure.
Install
cdp-sdk on PyPI
pip
pip install cdp-sdkuv
uv add cdp-sdkpoetry
poetry add cdp-sdkInstalling cdp-sdk
Before you install
Low install friction with a pure Python wheel distribution. The package is actively maintained with a recent release and depends on well-established libraries like aiohttp, web3, and solana for async HTTP and blockchain operations.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install cdp-sdk
from cdp import CdpClient
import asyncio
async def main():
async with CdpClient(
api_key_id="YOUR_API_KEY_ID",
api_key_secret="YOUR_API_KEY_SECRET",
wallet_secret="YOUR_WALLET_SECRET",
) as cdp:
account = await cdp.evm.create_account()
print(account)
asyncio.run(main())
Requires Python 3.10 or later. You must obtain a Coinbase Developer Platform API Key ID, API Key Secret, and Wallet Secret from the Coinbase portal before initializing the client.
Verify before relying
- Whether the SDK supports all EVM chains or is limited to specific networks
- Rate limiting or quota details for the Coinbase Developer Platform API
- Whether smart account functionality requires additional setup beyond the owner account
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — aiohttp-retry, aiohttp, base58, cryptography, pydantic, pyjwt, python-dateutil, solana, solders, urllib3, web3 |
| Maintenance | actively maintained — 56 days since the last release |
| First released | |
| Downloads | 79,394/month — #14,362 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cdp_sdk-1.47.1-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
coinbase-advanced-pyOfficial Python SDK for the Coinbase Advanced…
permissive · top 15,000 on PyPI
aptos-sdkProvides Python bindings to interact with the…
permissive · top 15,000 on PyPI
x402Implements the x402 payment protocol with…
permissive · top 15,000 on PyPI
solanaSolana.py is a Python SDK for building…
permissive · top 5,000 on PyPI
fireblocks-sdkOfficial Python SDK for the Fireblocks API that…
permissive · top 15,000 on PyPI
xrpl-pyA pure Python library for building applications…
permissive · top 15,000 on PyPI
salesforce-cdp-connectorConnects Python to Salesforce Data Cloud to…
permissive · top 15,000 on PyPI
customerio-cdp-analyticsSends event and user data to Customer.io's Data…
permissive · top 15,000 on PyPI
cosmpyCosmPy provides Python bindings to interact…
permissive · top 15,000 on PyPI
stellar-sdkStellar SDK provides Python APIs to build and…
permissive · top 15,000 on PyPI