# @assistant-ui/ai-sdk

> Vercel AI SDK adapter for assistant-ui

Latest version **0.0.12** (published 2026-10-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @assistant-ui/ai-sdk
pnpm add @assistant-ui/ai-sdk
yarn add @assistant-ui/ai-sdk
bun add @assistant-ui/ai-sdk
```

## Health

**Score 80/100 (A)** — status: active.

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.12 |
| Published | 2026-10-09 |
| First published | 2026-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 12403 |
| Author | AgentbaseAI Inc. |
| Maintainers | yonom, okisdev, agentbase-bot |
| Keywords | ai-sdk, vercel, assistant-ui, react, ai, chat, openai, streaming |

## Links

- npm: https://www.npmjs.com/package/@assistant-ui/ai-sdk
- Repository: https://github.com/assistant-ui/assistant-ui
- Homepage: https://www.assistant-ui.com/
- Issues: https://github.com/assistant-ui/assistant-ui/issues
- npm.io page: https://npm.io/package/@assistant-ui/ai-sdk

## Dependencies (7)

- [@ai-sdk/mcp](https://npm.io/package/@ai-sdk/mcp.md) ^2.0.69
- [@ai-sdk/react](https://npm.io/package/@ai-sdk/react.md) ^4.0.133
- [assistant-cloud](https://npm.io/package/assistant-cloud.md) ^0.2.6
- [assistant-stream](https://npm.io/package/assistant-stream.md) ^0.3.49
- [@assistant-ui/tap](https://npm.io/package/@assistant-ui/tap.md) ^0.9.22
- [@assistant-ui/core](https://npm.io/package/@assistant-ui/core.md) ^0.3.25
- [@assistant-ui/store](https://npm.io/package/@assistant-ui/store.md) ^0.3.18

## 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.0.12 (latest) — 2026-10-09
- 0.0.11 — 2026-10-06
- 0.0.10 — 2026-10-06
- 0.0.9 — 2026-10-02
- 0.0.8 — 2026-09-24
- 0.0.7 — 2026-09-18
- 0.0.6 — 2026-09-15
- 0.0.5 — 2026-09-11
- 0.0.4 — 2026-09-03
- 0.0.3 — 2026-08-27
- 0.0.2 — 2026-08-20
- 0.0.1 — 2026-08-18

## README

# `@assistant-ui/ai-sdk`

[Vercel AI SDK](https://sdk.vercel.ai) integration for `@assistant-ui/react`. Wraps the AI SDK chat in an assistant-ui runtime and forwards system messages and frontend tools through `AssistantChatTransport`. Each release line targets the AI SDK major pinned in its dependencies.

## Installation

```bash
npm install @assistant-ui/react @assistant-ui/ai-sdk ai
```

## Usage

```tsx
"use client";

import { AssistantRuntimeProvider } from "@assistant-ui/react";
import { useChatRuntime } from "@assistant-ui/ai-sdk";
import { Thread } from "@/components/assistant-ui/elements/thread.aui";

export function Chat() {
  const runtime = useChatRuntime();
  return (
    <AssistantRuntimeProvider runtime={runtime}>
      <Thread />
    </AssistantRuntimeProvider>
  );
}
```

`useChatRuntime` defaults to `AssistantChatTransport`, which forwards frontend system messages and tool definitions to your backend. To customize the API URL, the cache, or other transport settings, pass a configured `AssistantChatTransport` to keep that forwarding behavior; pass `DefaultChatTransport` to opt out.

Full reference at [assistant-ui.com/docs/runtimes/ai-sdk](https://www.assistant-ui.com/docs/runtimes/ai-sdk).

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