New advertisers: 50% off your first month with code FIRSTMONTHSee slots
vercel avatar

Add Provider Package

vercel/aiOfficial

Guide for building first-party AI SDK provider packages that integrate external AI services with current interfaces.

skills.sh installs
1.4K
GitHub stars
28.1K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers API contract discovery, package scaffolding, provider factories, and model class implementation for @ai-sdk/<provider> packages
  • Includes conventions for Zod schemas, workflow serialization, secure URL handling, and error responses drawn from repository contributing docs
  • Enforces prior issue agreement before implementing a new first-party package and requires 2.0.0 as the initial version
  • Designed for contributors adding a new provider to the AI SDK repository who need to follow current internal conventions

Install

$ npx -y skills add vercel/ai --skill add-provider-package -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Add a Provider Package

Add a complete first-party @ai-sdk/<provider> package that follows the current provider interfaces, repository conventions, security requirements, and release process.

Read the Current Sources of Truth

Before implementing anything, read:

Use PR #18595 as a recent end-to-end example, but choose the current provider package whose API shape and model types most closely resemble the new provider as the implementation reference.

Third parties can publish provider packages outside this repository. A new first-party @ai-sdk/<provider> package requires prior discussion in an issue. Confirm that agreement exists before implementing the package.

Details

Repository
github.com/vercel/ai
Categories
AI Agents & LLM Apps, Skill & Plugin Building
First seen
Jun 3, 2026

More from vercel/ai

All 8

Similar to Add Provider Package

More AI Agents & LLM Apps