add-provider-package

Create @ai-sdk/<provider> packages for AI provider integration.

27|16|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/mandor1428/TEAM-LLM --skill add-provider-package-mandor1428
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-provider-package
Source: https://github.com/mandor1428/TEAM-LLM/tree/main/skills/add-provider-package
Command: npx skills add https://github.com/mandor1428/TEAM-LLM --skill add-provider-package-mandor1428

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps developers integrate a new AI service into the AI SDK by providing a clear, repeatable package structure and implementation workflow.

Core Features & Use Cases

  • Provider packaging: Create a new first-party-style @ai-sdk/<provider> package using the expected folder layout and build/test tooling.
  • Adapter-pattern architecture: Implement provider settings, model factories, and model classes that conform to the SDK’s LanguageModelV4, EmbeddingModelV4, ImageModelV4, and related interfaces.
  • Production readiness checklist: Add tests, fixtures, examples, and provider documentation, then validate via build/type-check and both Node/Edge test runs.

Quick Start

Create packages/<provider> with a valid package.json and implement src/index.ts plus your src/<provider>-provider.ts, then run the package tests to confirm the provider works end-to-end.

Frequently Asked Questions about add-provider-package

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate a new AI provider into the AI SDK?

To integrate a new AI provider into the AI SDK, create a structured @ai-sdk/<provider> package implementing provider settings, model factories, and classes conforming to mandatory SDK interfaces like LanguageModelV4, then configure build and test tooling.

What interfaces must a custom AI provider implement for the AI SDK?

A custom AI provider must implement adapter-pattern architecture conforming to SDK interfaces including LanguageModelV4, EmbeddingModelV4, and ImageModelV4, alongside provider settings, model factories, and schema-validated responses.

How do I set up build and test tooling for an AI SDK provider package?

Set up build and test tooling for an AI SDK provider package by creating a packages/<provider> folder with a valid package.json, adding tests and fixtures, then validating via build, type-check, and both Node and Edge test runs.

Does the AI SDK require schema validation for provider responses?

Yes, the AI SDK requires schema-validated responses for provider integration. Provider implementations must also handle secure API key loading and satisfy workspace dependencies on provider and provider-utils.

Can I develop a third-party AI provider package or only first-party ones?

You can develop both first-party and third-party AI provider packages. The integration process applies to either scenario, covering provider architecture, model implementations, fixtures, examples, and documentation.

What is the best way to structure files when adding a provider to the AI SDK?

The best way to structure files when adding a provider to the AI SDK is creating a packages/<provider> directory with a valid package.json, then implementing src/index.ts and src/<provider>-provider.ts as entry points.