Find tools › Open-source projects › Build websites & apps

ai

Open-source project · by vercel

A JavaScript toolkit for adding AI chat and features to websites, working with many AI companies.

For developersPopular177,613,956 installs a month

What it costs

Free and open source; you may pay for the AI model it uses.

Use it to

  • Add a chat box to a Next.js or React website
  • Switch your app between OpenAI, Anthropic and Google models
  • Stream AI answers into a web page as they are written

How to start

  1. Install Node.js 22 or newer.

  2. In your web project's folder, in a terminal, run npm install ai.

  3. Add a provider package, such as the OpenAI one, to call that provider directly.

  4. Without one, requests go through Vercel's AI Gateway service by default.

Good to know. By default, model strings are routed through Vercel's AI Gateway, a Vercel service. Install the provider packages (such as @ai-sdk/openai) to call providers directly. It needs Node.js 22+. The LICENSE file is Apache-2.0, although GitHub does not detect it.

Before you install

  • Checked by a personWe read what it does before listing it.
  • Last updated 2026-11-18

More detail

The AI SDK is Vercel's free TypeScript library for adding AI to web apps. It gives one API across OpenAI, Anthropic, Google and others, plus UI hooks for building chat interfaces in React, Next.js, Svelte and Vue.

Use it if you build JavaScript or TypeScript web apps and want to generate text, structured data or tool-using agents without writing separate code for each AI provider.

Similar tools

Descriptions are written in plain English from each project's own documentation and refreshed by our agent; this one was last checked 2026-09-29. Spotted a mistake? · Open in Find tools · © 2026 Which AI Map