# @assistant-ui/react-ai-sdk

> Vercel AI SDK adapter for assistant-ui

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

## Install

```sh
npm install @assistant-ui/react-ai-sdk
pnpm add @assistant-ui/react-ai-sdk
yarn add @assistant-ui/react-ai-sdk
bun add @assistant-ui/react-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.

## Facts

| | |
|---|---|
| Version | 1.4.17 |
| Published | 2026-10-09 |
| First published | 2024-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 12431 |
| 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/react-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/react-ai-sdk

## Dependencies (1)

- [@assistant-ui/ai-sdk](https://npm.io/package/@assistant-ui/ai-sdk.md) ^0.0.12

## 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

- 1.4.17 (latest) — 2026-10-09
- 0.11.0-alpha.0-alpha (alpha) — 2025-07-31
- 1.4.16 — 2026-10-06
- 1.4.15 — 2026-10-06
- 1.4.14 — 2026-10-02
- 1.4.13 — 2026-09-24
- 1.4.12 — 2026-09-18
- 1.4.11 — 2026-09-15
- 1.4.10 — 2026-09-11
- 1.4.9 — 2026-09-03
- 1.4.8 — 2026-08-27
- 1.4.7 — 2026-08-20
- 1.4.6 — 2026-08-18
- 1.4.5 — 2026-08-08
- 1.4.4 — 2026-08-03
- … 171 more at https://npm.io/package/@assistant-ui/react-ai-sdk/versions

## README

# `@assistant-ui/react-ai-sdk`

This package re-exports [`@assistant-ui/ai-sdk`](https://www.npmjs.com/package/@assistant-ui/ai-sdk), the framework-neutral home of the assistant-ui integration for the Vercel AI SDK. Existing imports keep working unchanged; new code should depend on `@assistant-ui/ai-sdk` directly.

[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/react-ai-sdk ai
```

## Usage

```tsx
"use client";

import { AssistantRuntimeProvider } from "@assistant-ui/react";
import { useChatRuntime } from "@assistant-ui/react-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/react-ai-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
