add-provider-package
Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk/<provider> package to integrate an AI service into the SDK.
Install
Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.
git clone https://github.com/vercel/ai /tmp/ai && ln -s /tmp/ai/skills/add-provider-package ~/.claude/skills/add-provider-package
From README
Adding a New Provider Package This guide covers the process of creating a new @ai-sdk/ package to integrate an AI service into the AI SDK. First-Party vs Third-Party Providers Third-party packages: Any provider can create a third-party package. We're happy to link to it from our documentation. First-party @ai-sdk/ packages: If you prefer a first-party package, please create an issue first to discuss. Reference Example See https://github.com/vercel/ai/pull/8136/files for a complete example of adding a new provider. Provider Architecture The AI SDK uses a layered provider architecture following the adapter pattern: Specifications (@ai-sdk/provider): Defines interfaces like LanguageModelV4, EmbeddingModelV4, etc.