vercel
Develop. Preview. Ship.
The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source library for building AI-powered applications and agents
$ npx -y skills add vercel/ai --agent claude-code
Run the curl in your terminal, the rest in Claude Code.
Repo: vercel/ai
What's inside
packages/ai/README.md
.agents/
skills
.changeset/
config.json
README.md
.claude/
settings.json
skills
.codex/
environments/
environment.toml
hooks.json
.cursor/
hooks.json
.github/
dependabot.yml
DISCUSSION_TEMPLATE/
help.yml
polls.yml
show-and-tell.yml
ISSUE_TEMPLATE/
1.support_request.yml
2.community_feedback.yml
config.yml
konsistent.json
pull_request_template.md
scripts/
cleanup-examples-changesets.mjs
notify-released/
index.mjs
package.json
upload-provenance/
index.mjs
package.json
SECURITY.md
tigent.yml
workflows/
actions/
verify-changesets/
index.js
package.json
test.js
ai-provider-api-changes.yml
ai-provider-models.yml
assign-team-pull-request.yml
auto-merge-release-prs.yml
backport.yml
ci.yml
reconcile-merge-labels.yml
release.yml
slack-team-review-notification.yml
slack-workflow-failure-notification.yml
update-model-settings.yml
verify-changesets.yml
.gitignore
.husky/
.gitignore
pre-commit
.kodiak.toml
.npmrc
.oxfmtrc.jsonc
.oxlintrc.json
.vscode/
settings.json
AGENTS.md
apps/
docs/
.gitignore
app/
[lang]/
agents.md/
route.ts
cookbook/
cookbook-llms.mdx/
[[...slug]]/
route.ts
[[...slug]]/
page.tsx
layout.tsx
docs/
[[...slug]]/
page.tsx
layout.tsx
layout.tsx
llms.mdx/
[[...slug]]/
route.ts
llms.txt/
route.ts
page.tsx
providers/
providers-llms.mdx/
[[...slug]]/
route.ts
[[...slug]]/
page.tsx
layout.tsx
resources/
recipes/
[...slug]/
layout.tsx
page.tsx
page.tsx
sitemap.md/
route.ts
v5/
cookbook/
cookbook-llms.mdx/
[[...slug]]/
route.ts
[[...slug]]/
page.tsx
layout.tsx
docs/
[[...slug]]/
page.tsx
layout.tsx
llms.mdx/
[[...slug]]/
route.ts
llms.txt/
route.ts
providers/
providers-llms.mdx/
[[...slug]]/
route.ts
[[...slug]]/
page.tsx
layout.tsx
resources/
recipes/
[...slug]/
layout.tsx
page.tsx
page.tsx
sitemap.md/
route.ts
v6/
cookbook/
cookbook-llms.mdx/
[[...slug]]/
route.ts
[[...slug]]/
page.tsx
layout.tsx
docs/
[[...slug]]/
page.tsx
layout.tsx
llms.mdx/
[[...slug]]/
route.ts
llms.txt/
route.ts
providers/
providers-llms.mdx/
[[...slug]]/
route.ts
[[...slug]]/
page.tsx
layout.tsx
resources/
recipes/
[...slug]/
layout.tsx
page.tsx
page.tsx
sitemap.md/
route.ts
api/
chat/
route.ts
search/
route.ts
global.css
icon.svg
robots.ts
sitemap.ts
components/
docs/
browser-illustration.tsx
browser.tsx
chat-generation.tsx
example-links.tsx
generative-ui-preview.tsx
index-cards.tsx
inline-icons.tsx
inline-prompt.tsx
install-packages.tsx
interactive-code-preview.tsx
marketing-cards.tsx
mdx-image.tsx
misc.tsx
model-cards.tsx
note.tsx
object-generation.tsx
properties-table.tsx
provider-preview.tsx
resolve-href.ts
snippet.tsx
steps.tsx
stub.tsx
tabs.tsx
template-icons.tsx
templates.tsx
text-generation.tsx
use-interval.ts
version-select.tsx
weather-card.tsx
mdx-components.tsx
recipes/
badge.tsx
book.module.css
book.tsx
guides.tsx
recipe-list.tsx
recipes-landing.tsx
geistdocs.tsx
lib/
geistdocs/
config.tsx
fonts.ts
source.ts
version-markdown.ts
version-paths.ts
recipes.ts
next.config.ts
package.json
postcss.config.mjs
proxy.ts
public/
images/
ai-sdk-diagram-dark.png
ai-sdk-diagram.png
icons/
anthropic.svg
aws.svg
azure.svg
baseten.svg
cerebras.svg
cohere.svg
custom.svg
deepinfra.svg
deepseek.svg
fal.svg
fireworks.svg
google.svg
groq.svg
luma.png
mistral.svg
ollama.png
openai.svg
perplexity.svg
portkey.png
togetherai.svg
vercel.svg
xai-black.svg
llama-3_1-benchmarks.png
rag-guide-1-dark.png
rag-guide-1.png
rag-guide-2-dark.png
rag-guide-2.png
rag-guide-demo.mp4
README.md
scripts/
sync-content-utils.mjs
sync-content-utils.test.mjs
sync-content.mjs
source.config.ts
tsconfig.json
vercel.json
architecture/
file-uploads.md
harness-abstraction.md
message-layers.md
provider-abstraction.md
sandbox-abstraction.md
stream-text-loop-control.md
assets/
hero.gif
CHANGELOG.md
CLAUDE.md
CODE_OF_CONDUCT.md
content/
cookbook/
00-guides/
01-rag-chatbot.mdx
02-multi-modal-chatbot.mdx
03-slackbot.mdx
04-natural-language-postgres.mdx
05-computer-use.mdx
06-agent-skills.mdx
07-custom-memory-tool.mdx
08-agent-context-compaction.mdx
17-gemini.mdx
18-claude-4.mdx
19-openai-responses.mdx
20-google-gemini-image-generation.mdx
20-sonnet-3-7.mdx
21-llama-3_1.mdx
23-gpt-5.mdx
23-o1.mdx
24-o3.mdx
25-r1.mdx
26-deepseek-v3-2.mdx
index.mdx
01-next/
10-generate-text.mdx
11-generate-text-with-chat-prompt.mdx
12-generate-image-with-chat-prompt.mdx
122-caching-middleware.mdx
20-stream-text.mdx
21-stream-text-with-chat-prompt.mdx
22-stream-text-with-image-prompt.mdx
23-chat-with-pdf.mdx
24-stream-text-multistep.mdx
25-markdown-chatbot-with-memoization.mdx
30-generate-object.mdx
31-generate-object-with-file-prompt.mdx
40-stream-object.mdx
70-call-tools.mdx
72-call-tools-multiple-steps.mdx
73-mcp-tools.mdx
74-use-shared-chat-context.mdx
75-human-in-the-loop.mdx
77-track-agent-token-usage.mdx
80-send-custom-body-from-use-chat.mdx
85-custom-stream-format.mdx
90-render-visual-interface-in-chat.mdx
index.mdx
05-node/
10-generate-text.mdx
100-retrieval-augmented-generation.mdx
101-knowledge-base-agent.mdx
11-generate-text-with-chat-prompt.mdx
12-generate-text-with-image-prompt.mdx
20-stream-text.mdx
21-stream-text-with-chat-prompt.mdx
22-stream-text-with-image-prompt.mdx
23-stream-text-with-file-prompt.mdx
30-generate-object-reasoning.mdx
30-generate-object.mdx
40-stream-object.mdx
41-stream-object-with-image-prompt.mdx
45-stream-object-record-token-usage.mdx
46-stream-object-record-final-object.mdx
50-call-tools.mdx
51-call-tools-in-parallel.mdx
52-call-tools-with-image-prompt.mdx
53-call-tools-multiple-steps.mdx
54-mcp-tools.mdx
55-manual-agent-loop.mdx
56-web-search-agent.mdx
57-mcp-elicitation.mdx
60-embed-text.mdx
61-embed-text-batch.mdx
70-intercept-fetch-requests.mdx
80-local-caching-middleware.mdx
85-repair-json-with-jsonrepair.mdx
90-dynamic-prompt-caching.mdx
index.mdx
15-api-servers/
10-node-http-server.mdx
20-express.mdx
30-hono.mdx
40-fastify.mdx
50-nest.mdx
index.mdx
20-rsc/
10-generate-text.mdx
11-generate-text-with-chat-prompt.mdx
20-stream-text.mdx
21-stream-text-with-chat-prompt.mdx
30-generate-object.mdx
40-stream-object.mdx
50-call-tools.mdx
51-call-tools-in-parallel.mdx
60-save-messages-to-database.mdx
61-restore-messages-from-database.mdx
90-render-visual-interface-in-chat.mdx
91-stream-updates-to-visual-interfaces.mdx
92-stream-ui-record-token-usage.mdx
index.mdx
docs/
00-introduction/
index.mdx
02-foundations/
01-overview.mdx
02-providers-and-models.mdx
03-prompts.mdx
04-tools.mdx
05-streaming.mdx
06-provider-options.mdx
index.mdx
02-getting-started/
00-choosing-a-provider.mdx
01-navigating-the-library.mdx
02-nextjs-app-router.mdx
03-nextjs-pages-router.mdx
04-svelte.mdx
... 1600 moreShowing a partial view of a very large repo.
Develop. Preview. Ship.
Workflow SDK: Build durable, reliable, and observable apps and AI Agents in TypeScript
Production-grade Turborepo template for Next.js apps.
FAQ
vercel-ai is a Claude Code plugin with 12 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes add-function-examples, add-harness-package, add-provider-package. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.