# WebLLM provider for Vercel AI SDK

<div align="center">

![Hero](https://raw.githubusercontent.com/jakobhoeg/browser-ai/main/packages/vercel/web-llm/hero.png)

</div>

<div align="center">

[![NPM Version](https://img.shields.io/npm/v/%40browser-ai%2Fweb-llm)](https://www.npmjs.com/package/@browser-ai/web-llm)
[![NPM Downloads](https://img.shields.io/npm/dm/%40browser-ai%2Fweb-llm)](https://www.npmjs.com/package/@browser-ai/web-llm)
[![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/%40browser-ai%2Fweb-llm)](https://www.jsdelivr.com/package/npm/@browser-ai/web-llm)

</div>

[WebLLM](https://github.com/mlc-ai/web-llm) model provider for [Vercel AI SDK](https://ai-sdk.dev/). This library enables you to easily use the AI SDK with popular open-source models running directly in your web browser.

## Installation

```bash
npm i @browser-ai/web-llm
```

The `@browser-ai/web-llm` package is the AI SDK provider for open-source built-in browser AI models leveraging the [WebLLM](https://github.com/mlc-ai/web-llm) inference engine.

## Documentation

For a complete documentation including examples, refer to [this](https://www.browser-ai.dev/docs/ai-sdk-v6/web-llm) site.

## Author

2025 © Jakob Hoeg Mørk

## Credits

The WebLLM & Vercel teams
