This example demonstrates an agent setup as a terminal style chatbot with access to the full set of CDP AgentKit actions.
- "Transfer a portion of your ETH to john2879.base.eth"
- "Deploy an NFT that will go super viral!"
- "Choose a name for yourself and register a Basename for your wallet"
- "Deploy an ERC-20 token with total supply 1 billion"
- Node.js 18+
- CDP API Key
- OpenAI API Key
Before using the example, ensure that you have the correct version of Node.js installed. The example requires Node.js 18 or higher. You can check your Node version by running:
node --version
npm --version
npm install
- Ensure the following ENV Vars are set:
- "CDP_API_KEY_NAME"
- "CDP_API_KEY_PRIVATE_KEY"
- "OPENAI_API_KEY"
- "NETWORK_ID" (Defaults to
base-sepolia
)
npm start
Apache-2.0