AgentKit plugin for Eliza that enables interaction with CDP AgentKit tools for NFT and token management.
- Install dependencies:
pnpm install
- Configure environment variables:
CDP_API_KEY_NAME=your_key_name
CDP_API_KEY_PRIVATE_KEY=your_private_key
CDP_AGENT_KIT_NETWORK=base-sepolia # Optional: Defaults to base-sepolia
- Add the plugin to your character configuration:
{
"plugins": ["@elizaos/plugin-agentkit"],
"settings": {
"secrets": {
"CDP_API_KEY_NAME": "your_key_name",
"CDP_API_KEY_PRIVATE_KEY": "your_private_key"
}
}
}
The plugin provides access to the following CDP AgentKit tools:
GET_WALLET_DETAILS
: Get wallet informationDEPLOY_NFT
: Deploy a new NFT collectionDEPLOY_TOKEN
: Deploy a new tokenGET_BALANCE
: Check token or NFT balanceMINT_NFT
: Mint NFTs from a collectionREGISTER_BASENAME
: Register a basename for NFTsREQUEST_FAUCET_FUNDS
: Request testnet fundsTRADE
: Execute tradesTRANSFER
: Transfer tokens or NFTsWOW_BUY_TOKEN
: Buy WOW tokensWOW_SELL_TOKEN
: Sell WOW tokensWOW_CREATE_TOKEN
: Create new WOW tokens
- Get wallet details:
Can you show me my wallet details?
- Deploy an NFT collection:
Deploy a new NFT collection called "Music NFTs" with symbol "MUSIC"
- Create a token:
Create a new WOW token called "Artist Token" with symbol "ART"
- Check balance:
What's my current balance?
- Build the plugin:
pnpm build
- Run in development mode:
pnpm dev
- @elizaos/core
- @coinbase/cdp-agentkit-core
- @coinbase/cdp-langchain
- @langchain/core
The plugin supports the following networks:
- Base Sepolia (default)
- Base Mainnet
Configure the network using the CDP_AGENT_KIT_NETWORK
environment variable.
-
If tools are not being triggered:
- Verify CDP API key configuration
- Check network settings
- Ensure character configuration includes the plugin
-
Common errors:
- "Cannot find package": Make sure dependencies are installed
- "API key not found": Check environment variables
- "Network error": Verify network configuration
MIT