Prerequisites
- Node 18+
- A CDP API key
- An OpenAI API key (or any Vercel AI SDK-compatible provider)
Quickstart
How it works
getVercelAITools converts an AgentKit instance into a tools object compatible with the Vercel AI SDK’s generateText and streamText functions.
chatbot.ts
maxSteps parameter allows multi-step tool usage — the model can call multiple tools in sequence to fulfill a single request.
Using different model providers
The Vercel AI SDK supports many model providers. Swapopenai for any supported provider:
- Anthropic
- Mistral
Next steps
Wallet setup
Configure a production-ready CDP wallet for your agent.
x402 payments
Add per-request stablecoin payments to your agent.