• Docs
  • AI GatewayGateway

AI SDK 7 is now available. Read the announcement

AI SDK by Vercel
Foundations
Overview
Providers and Models
Prompts
Tools
Streaming
Provider Options
Getting Started
Choosing a Provider
Navigating the Library
Next.js App Router
Next.js Pages Router
Svelte
Vue.js (Nuxt)
Node.js
Expo
TanStack Start
Coding Agents
Agents
Overview
Building Agents
Workflow Patterns
Loop Control
Configuring Call Options
Memory
Policy-Based Tool Approvals
Subagents
Tool Approvals
WorkflowAgent
Terminal UI
AI SDK Core
Overview
Generating Text
Generating Structured Data
Tool Calling
Model Context Protocol (MCP)
MCP Apps
Runtime and Tool Context
Prompt Engineering
Settings
Reasoning
Embeddings
Reranking
Image Generation
Realtime
Transcription
Speech
Video Generation
File Uploads
Language Model Middleware
Skill Uploads
Provider & Model Management
Error Handling
Testing
Telemetry
DevTools
Lifecycle Callbacks
AI SDK Harnesses
Overview
HarnessAgent
Tools
Skills
Harness Adapters
Workflow Utilities
UI
Terminal UI
AI SDK UI
Overview
Chatbot
Chatbot Message Persistence
Chatbot Resume Streams
Chatbot Tool Usage
Generative User Interfaces
Completion
Object Generation
Streaming Custom Data
Error Handling
Transport
Reading UIMessage Streams
Message Metadata
Stream Protocols
AI SDK RSC
Advanced
Reference
AI SDK Core
AI SDK UI
AI SDK RSC
AI SDK Workflow
AI SDK Errors
AI SDK TUI
Migration Guides
Troubleshooting
AI SDK Harnesses

AI SDK Harnesses

The harness section covers the AI SDK harness abstraction: a uniform API for running established agent harnesses such as Claude Code, Codex, and Pi.

Overview
Understand how harnesses relate to providers, models, agents, streams, and UI primitives.
HarnessAgent
Create sessions, run turns, manage sandbox lifecycle, and resume harness conversations.
Tools
Use built-in harness tools, host-executed AI SDK tools, approvals, and sandbox-aware execution.
Skills
Provide reusable instruction bundles to harness runtimes.
Harness Adapters
Learn about the available harness adapters.
Workflow Utilities
Run HarnessAgent turns as durable Workflow DevKit workflows.
UI
Stream harness output to useChat and build chat routes that preserve harness sessions.
Terminal UI
Run HarnessAgent in @ai-sdk/tui with a small session adapter.
Previous
Lifecycle Callbacks
Next
Overview
On this page
AI SDK Harnesses
Deploy and Scale AI Apps with Vercel

Deliver AI experiences globally with one push.

Trusted by industry leaders:
  • OpenAI
  • Photoroom
  • leonardo-ai Logoleonardo-ai Logo
  • zapier Logozapier Logo

Get Started

  • Templates
  • Supported frameworks
  • Marketplace
  • Domains

Build

  • Next.js on Vercel
  • Turborepo
  • v0

Scale

  • Content delivery network
  • Fluid compute
  • CI/CD
  • Observability
  • AI GatewayNew
  • Vercel AgentNew

Secure

  • Platform security
  • Web Application Firewall
  • Bot management
  • BotID
  • SandboxNew

Resources

  • Pricing
  • Customers
  • Enterprise
  • Articles
  • Startups
  • Solution partners

Learn

  • Docs
  • Blog
  • Changelog
  • Knowledge Base
  • Academy
  • Community

Frameworks

  • Next.js
  • Nuxt
  • Svelte
  • Nitro
  • Turbo

SDKs

  • AI SDK
  • Workflow DevKitNew
  • Flags SDK
  • Chat SDK
  • Streamdown AINew

Use Cases

  • Composable commerce
  • Multi-tenant platforms
  • Web apps
  • Marketing sites
  • Platform engineers
  • Design engineers

Company

  • About
  • Careers
  • Help
  • Press
  • Legal
  • Privacy Policy

Community

  • Open source program
  • Events
  • Shipped on Vercel
  • GitHub
  • LinkedIn
  • X
  • YouTube

© 2026 Vercel, Inc.

Select a display theme: