ai-sdk
Skill27k starsChanged 3 months agoLicence not identifiedView on GitHub
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
- Reads credentials
- Installs packages
33 other projects use a version of this, 28 of them edited; 28 of 28 edited versions we compared changed its rules; 0 new projects in the last 4 weeks, against 3 the 4 before.
How people change it
28 of 28 edited versions changed its rules, and some changes recur.
Of the 28 edited versions we compared: 28 made changes of their own.
Rules people drop
- A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
- A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
- A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
- A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
- A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
- A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
- A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
- A rule we can't quote: its licence doesn't allow itdropped by 22 of 28
Rules people add
- Search bundled docs and source in
node_modules/ai/:added by 22 of 28 - Before searching docs, check if
node_modules/ai/docs/exists. If not, install only theaipackage using the project's package manager (e.g.,pnpm add ai).added by 20 of 28 - Do not install other packages at this stage. Provider packages (e.g.,
@ai-sdk/openai) and client packages (e.g.,@ai-sdk/react) should be installed later when needed based on user requirements.added by 20 of 28 - Ensure
aipackage is installed (see Prerequisites)added by 20 of 28 - Search
node_modules/ai/docs/andnode_modules/ai/src/for current APIsadded by 20 of 28 - If not found locally, search ai-sdk.dev documentation (instructions below)added by 20 of 28
- Never rely on memory - always verify against source code or docsadded by 20 of 28
useChathas changed significantly - check [Common Errors](references/common-errors.md) before writing client codeadded by 20 of 28
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Cooling: 0 new projects took it in the last 4 weeks, 0× the 4 weeks before.thin data
Most recently taken up by
- r2hu1/openbotsword for word, first seen Oct 4, 2026
- STIFLEUR390/kwiktalk-docsedited, first seen Oct 3, 2026
- compozy/compozyedited, first seen Oct 1, 2026
- laguagu/claude-code-nextjs-skillstheir own version, first seen Sep 30, 2026
- cgoinglove/thursday-agentedited, first seen Sep 27, 2026
- kissgyorgy/coding-agentsedited, first seen Sep 20, 2026
Who's talking about vercel/ai
- modelcontextprotocol/typescript-sdk“feat: zod v4”GitHub · Aug 12, 2025 · 91 reactions
- sveltejs/svelte“Svelte 5: List of libraries not working out of the box”GitHub · Feb 1, 2024 · 39 reactions
- OpenRouterTeam/ai-sdk-provider“Support Provider v3 for AI SDK v6 beta”GitHub · Oct 31, 2025 · 25 reactions
- convex/agent“Support for AI SDK v6”GitHub · Dec 26, 2025 · 16 reactions
- anomalyco/opencode“Unable to use Kimi K2: error due to parsing of tool calls”GitHub · Jul 12, 2025 · 15 reactions
The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 44
Talked about on GitHub, Bluesky and Hacker News (44 times).
On GitHub · 25
- Aug 12, 2025feat: zod v4 — modelcontextprotocol/typescript-sdk91 reactions · 20 comments
- Feb 1, 2024Svelte 5: List of libraries not working out of the box — sveltejs/svelte39 reactions · 83 comments
- Oct 31, 2025Support Provider v3 for AI SDK v6 beta — OpenRouterTeam/ai-sdk-provider25 reactions · 6 comments
- Dec 26, 2025Support for AI SDK v6 — convex/agent16 reactions · 3 comments
- Jul 12, 2025Unable to use Kimi K2: error due to parsing of tool calls — anomalyco/opencode15 reactions · 4 comments
20 more on GitHub
- Jun 25, 2026Support ai v7 — OpenRouterTeam/ai-sdk-provider12 reactions · 2 comments
- Jan 14, 2026Support for thought_signature in openai-compatible provider — anomalyco/opencode10 reactions · 9 comments
- Jul 23, 2025generateObject() produces non-validating responses with current beta — OpenRouterTeam/ai-sdk-provider8 reactions · 11 comments
- Jan 16, 2026feat(opencode): add copilot specific provider to properly handle copilot reasoning tokens — anomalyco/opencode6 reactions · 47 comments
- Sep 11, 2025v4.1.6 — colinhacks/zod6 reactions
- Jan 23, 2026feat(provider): support responses api for `@ai-sdk/openai-compatible` providers — anomalyco/opencode5 reactions · 3 comments
- Dec 8, 2025Add @ai-sdk/mcp to fix import of experimental dependencies — ai-hero-dev/ai-sdk-v6-crash-course5 reactions
- Nov 3, 2026chore(deps): bump the ai-and-llm group across 1 directory with 7 updates — DataDog/dd-trace-js3 reactions · 4 comments
- Nov 2, 2026chore(deps): bump the ai-and-llm group across 1 directory with 11 updates — DataDog/dd-trace-js3 reactions · 4 comments
- Oct 23, 2026chore(deps): bump the ai-and-llm group across 1 directory with 8 updates — DataDog/dd-trace-js3 reactions · 4 comments
- Oct 20, 2026chore(deps): bump the ai-and-llm group across 1 directory with 7 updates — DataDog/dd-trace-js3 reactions · 4 comments
- Oct 19, 2026chore(deps): bump the ai-and-llm group across 1 directory with 11 updates — DataDog/dd-trace-js3 reactions · 4 comments
- Oct 16, 2026chore(deps): bump the ai-and-llm group across 1 directory with 6 updates — DataDog/dd-trace-js3 reactions · 4 comments
- Oct 12, 2026chore(deps): bump the ai-and-llm group across 1 directory with 15 updates — DataDog/dd-trace-js3 reactions · 4 comments
- Sep 14, 2026fix(update): honor locked paths with mirrored skills — vercel-labs/skills3 reactions · 1 comment
- May 27, 2026chore(deps): bump the npm_and_yarn group across 4 directories with 9 updates — GoldenEagle-23/agentkit3 reactions · 1 comment
- Apr 2, 2026chore(deps): bump the npm_and_yarn group across 3 directories with 4 updates — Chemically-Motivated-Solutions/promptcrafting-mcp3 reactions · 1 comment
- Jan 25, 2026build(deps): bump ai from 4.3.19 to 5.0.52 in the npm_and_yarn group across 1 directory — magicappdev/magicappdev3 reactions · 3 comments
- Jan 24, 2026build(deps): bump ai from 4.3.19 to 6.0.49 — magicappdev/magicappdev3 reactions · 5 comments
- Jan 10, 2026fix: Support `finishReason` in both new and old versions of ai-sdk — anomalyco/opencode3 reactions · 4 comments
On Bluesky · 17
- Sep 16, 2026📦 vercel / ai ⭐ 26,783 (+32) 🗒 TypeScript The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source… — @github-trending-js.bsky.social5 likes and reposts
- Jul 15, 2025📦 vercel / ai ⭐ 15,754 (+39) 🗒 TypeScript The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source… — @github-trending-js.bsky.social3 likes and reposts
- Apr 24, 2025I believe the "ai" package from Vercel does that github.com/vercel/ai — @matteogabriele.npmx.social3 likes and reposts
- Mar 6, 2024📦 vercel / ai ⭐ 6,734 (+59) 🗒 TypeScript Build AI-powered applications with React, Svelte, Vue, and Solid — @github-trending-js.bsky.social3 likes and reposts
- Mar 5, 2025github.com/vercel/a... GitHub - vercel/ai: The AI Toolkit for TypeScript. From the creators of Ne... - AI SDKはVercelが開発したTypeScriptツールキット -… — @technews4869.bsky.social2 likes and reposts
12 more on Bluesky
- Feb 28, 2025This is how easy it is to integrate AI into your application with Vercel's AI SDK. You can switch between OpenAI, Anthropic, DeepSeek,… — @lorenzpfei.bsky.social2 likes and reposts
- Jan 22, 2025github.com/vercel/a... GitHub - vercel/ai: Build AI-powered applications with React, Svelte, Vue, and Solid — @technews4869.bsky.social2 likes and reposts
- Jan 14, 2025📦 vercel / ai ⭐ 11,073 (+46) 🗒 TypeScript Build AI-powered applications with React, Svelte, Vue, and Solid — @github-trending-js.bsky.social2 likes and reposts
- Dec 2, 2024here we go - github.com/vercel/ai I found the best DX.. easy to use and integrate ... works best with nextjs as you are using nextjs you… — @amirgal.bsky.social2 likes and reposts · 1 reply
- Jul 24, 2026Lo uso para conectar Claude a mis proyectos. Literalmente un import y ya tienes un chat con streaming funcionando. npm i ai… — @josusanz.bsky.social1 likes and repost
- May 1, 2026I'd just say that the basics haven't changed for a long time now. The API's almost all look alike. And they aren't complicated:… — @jauntywunderkind.bsky.social1 likes and repost · 1 reply
- Apr 1, 2026github.com/vercel/ai — @josusanz.bsky.social1 likes and repost
- Mar 4, 2026https://github.com/vercel/ai — @tom-doerr.bsky.social1 likes and repost
- Oct 9, 2025📦 vercel / ai ⭐ 18,302 (+53) 🗒 TypeScript The AI Toolkit for TypeScript. From the creators of Next.js, the AI SDK is a free open-source… — @github-trending-js.bsky.social1 likes and repost
- Jul 10, 2025https://github.com/vercel/ai — @tom-doerr.bsky.social1 likes and repost
- Jan 21, 2025github.com/vercel/a... yug1224 starred vercel/ai — @yug1224.com1 likes and repost
- Nov 15, 2024👋 Working on the AI SDK (open source): github.com/vercel/ai — @lars.grammel.cloud1 likes and repost · 1 reply
On Hacker News · 2
- Jun 2, 2026Vercel AI Gateway Appears to Block BYOK Requests When Account Balance Reaches $02 points · 1 comment
- Feb 9, 2026AI SDK – Amazon Bedrock Provider2 points
Used with
Projects with it also use next-best-practices, better-auth-best-practices and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillnext-best-practices
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Also in 8 projects that use this
anasahmed07Skillbetter-auth-best-practices
Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.
Also in 5 projects that use this
VercelSkillai-elements
Build AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more. Use when the user wants to build a chatbot, AI assistant UI, or any AI-powered chat interface.
Also in 4 projects that use this
VercelSkillshadcn
Pre-built shadcn/ui components for json-render. Use when working with @json-render/shadcn, adding standard UI components to a catalog, or building web UIs with Radix UI + Tailwind CSS components.
Also in 12 projects that use this
leonaaardobSkillzod
Complete Zod validation library documentation. Use when working with Zod schema validation, TypeScript type inference, form validation, API validation, error handling, or data parsing. Covers schema definition, refinements, transforms, error customization, and ecosystem integrations.
Also in 3 projects that use this
SentrySkillvercel-composition-patterns
Also in 5 projects that use this
Other versions33 projects use a version of this.
Word for word · 2
- vercel/vercel-plugin★ 297100% same
- r2hu1/openbots★ 4100% same
Edited · 28
- vercel-labs/open-agents★ 5.8k19% same
- compozy/compozy★ 2.8k14% same
- pedronauck/skills★ 63398% same
- halo-dev/upage★ 55419% same
- oasm-platform/open-asm★ 20419% same
- vercel-labs/ai-facts★ 16819% same
- ever-works/ever-works★ 15719% same
- wibus-wee/cradle-app★ 7819% same
- vobase/vobase★ 6119% same
- scibly-dev/scibly★ 4298% same
18 more not listed
Wrote their own version · 3
- openai/plugins★ 7.3ksame name
- laguagu/claude-code-nextjs-skills★ 67same name
- soden46/syarif-laravel-ai-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apps/docs/AGENTS.mdAGENTS.md
- packages/ai/AGENTS.mdAGENTS.md
- apps/docs/CLAUDE.mdCLAUDE.md
- island-rescueSkill
- island-rescueSkill
- add-function-examplesSkill
- add-harness-packageSkill
- add-provider-packageSkill
- adr-skillSkill
- capture-api-response-test-fixtureSkill
- develop-ai-functions-exampleSkill
- list-npm-package-contentSkill
- major-version-modeSkill
- migrate-ai-sdk-v6-to-v7Skill
- update-harness-dependenciesSkill
- update-provider-modelsSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
The licence could not be identified — read it at the source. We count its rules but don't quote them. Read them on GitHub.
“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

