AI SDK
LibraryTypeScript toolkit for AI apps
Use it when you are building chat, agents or generative UI into a TypeScript app
A provider-agnostic TypeScript toolkit for building AI-powered applications and agents.
Added to the shelf
From the makersREADME, read 15 Oct
The AI SDK is a provider-agnostic TypeScript toolkit for building AI-powered applications and agents. It works with UI frameworks such as Next.js, React, Svelte, Vue and Angular, and with runtimes like Node.js. By default it routes model strings through the Vercel AI Gateway, and it can also connect to providers such as OpenAI, Anthropic and Google through their own SDK packages.
Install
npm install aiCommands
npm install aiInstall the core package
npm install @ai-sdk/reactInstall the package for your UI framework
npm install @ai-sdk/openai @ai-sdk/anthropic @ai-sdk/google
