# WebLLM

> Run large language models in the browser on WebGPU, with an OpenAI-compatible API

Source: https://talira.ai/catalog/webllm-9m3cq1gk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / inference / engines](https://talira.ai/categories/ai/inference/engines)
- Platforms: web[^2]
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- API: yes[^2]
- Backed by: [MLC](https://talira.ai/orgs/mlc-ai.md)

WebLLM is an in-browser inference engine for large language models: the model runs entirely inside the web page, accelerated by WebGPU, with no server. Its MLCEngine follows the OpenAI chat completions API, with streaming, JSON mode and structured generation, logit-level control and seeding, so code written for OpenAI can run open models such as Llama, Phi, Gemma, Mistral and Qwen locally. It runs in web workers, service workers and Chrome extensions, loads custom models compiled in MLC format, and installs from npm as @mlc-ai/web-llm or from a CDN. It is the browser companion of [MLC LLM](https://talira.ai/catalog/mlc-llm-92jjm3wq.md) and is Apache-2.0.

## Links

- Website: https://webllm.mlc.ai/
- GitHub: https://github.com/mlc-ai/web-llm
- Docs: https://webllm.mlc.ai/docs/

## Problems it solves

- run an LLM in the browser so user data never leaves the device
- add a chatbot to my web app without paying for an inference API
- use the OpenAI API shape against a local model in JavaScript
- build a Chrome extension with an on-device language model
- run a small model offline in a web page with WebGPU

## Features

- runs LLMs fully in the browser with WebGPU acceleration and no server
- OpenAI-compatible chat completions API with streaming
- JSON mode and structured generation in WebAssembly
- prebuilt Llama, Phi, Gemma, Mistral and Qwen models, plus custom MLC-format models
- web worker, service worker and Chrome extension support
- install from npm or import from a CDN

## Capabilities

- Has an API: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.67 out of 1.
Signals: maintenance 0.81, adoption 0.86, momentum 0.80, community 0.72, backing 0.30, extensibility 0.20.

- last commit 13 days ago
- 31 commits in the last 90 days
- latest release v0.2.89 13 days ago
- 19.4k GitHub stars
- 63 contributors
- backed by MLC

## Related

- Works with [MLC LLM](https://talira.ai/catalog/mlc-llm-92jjm3wq.md)

## Alternatives

- [KoboldCpp](https://talira.ai/catalog/koboldcpp-a39h31en.md): Run GGUF AI models locally with a KoboldAI UI. One file, zero install.

## Sources

[^1]: https://github.com/mlc-ai/web-llm/blob/main/LICENSE (checked 26 Nov 2026)
[^2]: https://github.com/mlc-ai/web-llm (checked 26 Nov 2026)
