Built on AI SDK 6 + Vercel AI Gateway

The Agent Toolkit for TypeScript

A modular SDK for building AI agents in Next.js and React. Structured output, tool calling, reasoning, planning, and more.

Get Started

Modular by Design

Import only what you need. Each module is independent and optimized for tree-shaking.

Multi-Provider Support

Built on Vercel AI Gateway, agent-tools-kit supports all major AI providers with a unified API. Switch between OpenAI, Anthropic, Google, and more by changing a single line of code.

OpenAI GPT-5, GPT-4o, o1 models
Anthropic Claude 4.6, Claude Opus
Google Gemini 3, Vertex AI
AWS Bedrock, Fireworks AI
// Switch providers with one line
import { createStructuredOutput } from 'agent-tools-kit/structured'

// Use OpenAI
const result1 = await createStructuredOutput({
  model: 'openai/gpt-5',
  schema: mySchema,
  prompt: 'Analyze...',
})

// Or switch to Anthropic
const result2 = await createStructuredOutput({
  model: 'anthropic/claude-opus-4.6',
  schema: mySchema,
  prompt: 'Analyze...',
})

Start Building Today

Try the interactive playground or dive into the documentation to start building your AI agent.