Framework Guides
Use experimental-agent with Next.js, Express, Hono, and other JavaScript frameworks.
The core APIs — agent(), session.send(), session.stream() — are framework-agnostic. No special framework configuration is needed for basic usage.
Next.js
No special Next.js configuration is required. Define your agent, create API routes, and start building. For durable workflows, see the Next.js guide.
Other Frameworks
Support for additional frameworks is coming soon:
- Express
- Hono
- Fastify
- Nitro / Nuxt
- SvelteKit
The agent() and session APIs work in any environment. Framework-specific guides will cover deployment for each runtime.
Build Your First Tool
Step-by-step guide to creating a custom tool with typed input and output. Use tool() from the AI SDK, wire it into your agent, and access ToolContext.
Using with Next.js
Use experimental-agent with Next.js. No special configuration needed for basic usage. Opt into durable workflows for production.