Introduction
Hyperbolic AgentKit integrates with the Coinbase Developer Platform (CDP) to provide comprehensive blockchain capabilities. Through the CDP AgentKit, your AI agents can manage wallets, execute token operations, and interact with various blockchain protocols.CDP Integration
The framework uses thecoinbase_agentkit package to provide blockchain functionality:
Action Providers
The CDP integration supports multiple action providers, each offering specific blockchain capabilities:Available Providers
- cdp_api_action_provider: Core CDP API operations
- cdp_wallet_action_provider: CDP-specific wallet operations
- erc20_action_provider: ERC-20 token standard operations
- pyth_action_provider: Pyth Network price oracle integration
- wallet_action_provider: General wallet management
- weth_action_provider: Wrapped ETH (WETH) operations
Initialization Example
Fromchatbot.py:445-472, here’s how blockchain tools are initialized:
Environment Configuration
Required environment variables:Wallet Persistence
Wallet data is automatically persisted to a local file (wallet_data.txt by default) to maintain wallet state across sessions. The wallet is created on first run and reused in subsequent sessions.
Adding Tools to Agent
Fromchatbot.py:373-377:
Supported Networks
The CDP integration supports multiple blockchain networks. Configure the network using theCDP_NETWORK_ID environment variable:
base-mainnet(default)base-sepolia(testnet)ethereum-mainnetethereum-sepolia- And other supported CDP networks
Next Steps
- Wallet Management - Learn how to manage wallets
- Token Operations - Execute token transfers and operations