This is a Wallet AI Chat demo built with CDP AgentKit.
- Node.js 18+ installed
- Package manager (npm, yarn, pnpm, or bun)
- CDP API Key
- OpenAI API Key
- Clone the repository
- Install dependencies
npm install
# or
yarn install
# or
pnpm install
# or
bun install
- Set up environment variables by creating a
.env.local
file with the following variables:
OPENAI_API_KEY=your_openai_api_key
CDP_API_KEY_NAME=your_cdp_api_key_name
NETWORK_ID=base-sepolia
NEXT_PUBLIC_AGENT_ADDRESS=your_agent_address
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
- Open http://localhost:3000 with your browser to see the result.
- Make sure to keep your API keys secure and never commit them to version control
- Ensure all environment variables are properly set before starting the application
To learn more about AgentKit, take a look at the following resources: