# @aparte/provider-ai-sdk

> Bridge any Vercel AI SDK model into aparté — bring your own @ai-sdk/* package (Anthropic, Google, OpenAI, 25+ vendors) and aparté renders it.

Latest version **0.19.2** (published 2026-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @aparte/provider-ai-sdk
pnpm add @aparte/provider-ai-sdk
yarn add @aparte/provider-ai-sdk
bun add @aparte/provider-ai-sdk
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.19.2 |
| Published | 2026-10-15 |
| First published | 2026-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 37.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | paulrichez |
| Keywords | ai, provider, vercel-ai-sdk, ai-sdk, anthropic, google, llm, bridge |

## Links

- npm: https://www.npmjs.com/package/@aparte/provider-ai-sdk
- Repository: https://github.com/apartejs/aparte
- Homepage: https://apartejs.dev/providers/ai/ai-sdk/
- Issues: https://github.com/apartejs/aparte/issues
- npm.io page: https://npm.io/package/@aparte/provider-ai-sdk

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.19.2 (latest) — 2026-10-15
- 0.17.0 (alpha) — 2026-09-12
- 0.19.1 — 2026-10-11
- 0.19.0 — 2026-10-11
- 0.18.0 — 2026-10-11
- 0.17.3 — 2026-09-26
- 0.17.2 — 2026-09-26
- 0.17.1 — 2026-09-26
- 0.16.11 — 2026-09-05
- 0.16.10 — 2026-09-05
- 0.16.9 — 2026-09-02
- 0.16.8 — 2026-09-02
- 0.16.7 — 2026-08-31
- 0.16.6 — 2026-08-30
- 0.16.5 — 2026-08-30
- … 24 more at https://npm.io/package/@aparte/provider-ai-sdk/versions

## README

# @aparte/provider-ai-sdk

Bridge **any** [Vercel AI SDK](https://sdk.vercel.ai) model into aparté. aparté's own wire
concern is deliberately tiny — [`@aparte/provider-openai-compat`](../openai-compat) covers the
one de-facto-standard format; everything else (Anthropic, Google, Bedrock, 25+ vendors) rides
the AI SDK ecosystem through this bridge. You bring your `@ai-sdk/*` package, hand its model to
`createAiSdkProvider`, and the bridge maps `streamText`'s `fullStream` to aparté's events.

```bash
npm install @aparte/provider-ai-sdk @aparte/core ai @ai-sdk/anthropic
```

`ai` and your chosen `@ai-sdk/*` vendor package are **peer dependencies** — you pick the
versions, and only the vendors you actually use end up in your bundle. `@aparte/core` is a
peer too.

```ts
import { createAnthropic } from '@ai-sdk/anthropic';
import { createAiSdkProvider } from '@aparte/provider-ai-sdk';
import { aparteGlobalConfig } from '@aparte/core';

aparteGlobalConfig.registerAIProvider(createAiSdkProvider({
    id: 'anthropic',
    name: 'Anthropic',
    models: [{ id: 'claude-sonnet-4-5', name: 'Claude Sonnet 4.5' }],
    languageModel: (modelId, auth) =>
        createAnthropic({ apiKey: typeof auth === 'string' ? auth : auth?.['apiKey'] })(modelId),
}));
```

`ai` is a **peerDependency pinned to the verified major** (`^7`) — this bridge is the only
aparté module touching the SDK's types. `@aparte/core` is a **peer dependency**.

**Works on the server too.** This bridge touches no DOM, and core resolves its DOM-free entry
under Node's export condition — so it runs in a backend, an Electron main process or an SSR
pass as well as in the browser.

> Part of the [aparté](https://github.com/apartejs/aparte) monorepo. ESM-only.
> See the **Providers** guide in the docs for the full usage.

---
_Source: https://npm.io/package/@aparte/provider-ai-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
