ai-sdk

ai-sdk is a skill for Claude Code, Codex from BidingCC/BuildingAI. It costs 85 tokens per session (584 once invoked), scanned A, a copy of ai-sdk, Apache-2.0.

A guide for the AI SDK, a software library for adding text generation, chat, and agent features to applications. It explains where to find current documentation and source code for the SDK and its provider packages.

In plain words
What is it for?
Use it when building or troubleshooting text generation, streaming, chatbots, agents, tool calls, or integrations with providers such as OpenAI and Anthropic.
Why use it?
It helps developers use the right, current API details instead of relying on outdated examples, especially when working with agents, tools, or different AI providers.

Skill for Claude CodeCodex

About the project

BuildingAI is a visual platform for creating AI applications such as enterprise agents, knowledge-based systems, and customer-service tools without writing everything from code. It is for AI developers, entrepreneurs, and organizations that need configurable applications with features such as agents, MCP, RAG, knowledge bases, and model access. The catalogue skills support workflows around this platform.

BidingCC/BuildingAI · 1,879 stars · on GitHub · buildingai.cc

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/bidingcc/buildingai/ai-sdk
Any agent
npx skills add BidingCC/BuildingAI --skill ai-sdk
Clone the repo
git clone --depth 1 https://github.com/BidingCC/BuildingAI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/bidingcc/buildingai/ai-sdk.svg)](https://agentmods.dev/skills/bidingcc/buildingai/ai-sdk)
Your own site
<a href="https://agentmods.dev/skills/bidingcc/buildingai/ai-sdk"><img src="https://agentmods.dev/badge/skills/bidingcc/buildingai/ai-sdk.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 584 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.00584
Opus 5 $0.00043 $0.00292
Sonnet 5 $0.00017 $0.00117
Haiku 4.5 $0.00009 $0.00058

Measured 5d ago against content hash 1dbae085f2a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

ai-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to ai-sdk — 22 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/ai-sdk/SKILL.md · 62 lines

What it actually says

AI SDK Documentation

When you need up-to-date information about the AI SDK:

If using [email protected] or above

Search the bundled documentation and source code in node_modules/ai/:

  1. Documentation: grep "your query" node_modules/ai/docs/
  2. Source code: grep "your query" node_modules/ai/src/

To find specific files:

  • glob "node_modules/ai/docs/**/*.mdx" for documentation files
  • glob "node_modules/ai/src/**/*.ts" for source files

Provider packages (@ai-sdk/openai, @ai-sdk/anthropic, etc.) also include bundled docs in their respective node_modules/@ai-sdk/<provider>/docs/ directories.

When in doubt, update to the latest version of the AI SDK.

Otherwise

  1. Search the docs: https://ai-sdk.dev/api/search-docs?q=your_query
  2. The response includes matches with links ending in .md
  3. Fetch those .md URLs directly to get plain text content (e.g. https://ai-sdk.dev/docs/agents/building-agents.md)

Use these resources for current API details, examples, and usage patterns.

For common errors and troubleshooting, see Common Errors Reference.

For using Vercel AI Gateway, see AI Gateway Reference.

Provider-Specific Information ([email protected]+)

For questions about specific providers (OpenAI, Anthropic, Google, etc.), search their dedicated packages:

  1. Provider documentation: grep "your query" node_modules/@ai-sdk/<provider>/docs/
  2. Provider source code: grep "your query" node_modules/@ai-sdk/<provider>/src/

To find provider files:

  • glob "node_modules/@ai-sdk/<provider>/docs/**/*.mdx" for provider documentation
  • glob "node_modules/@ai-sdk/<provider>/src/**/*.ts" for provider source files

This is especially important for providerOptions, which are provider-specific settings passed to model calls. Each provider has unique options documented in their package.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 62 lines · 85 tokens per session scan A 1dbae085f2a4

Subscribe to this mod's changes

ai-sdk is a skill published in the GitHub repository BidingCC/BuildingAI (1,879 stars, last pushed 15d ago), licensed Apache-2.0. It adds 85 tokens to every session and 584 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to ai-sdk, differing in 22 lines, and is treated as a copy.