What is OpenUI?
OpenUI, from Thesys, is a toolkit for generative UI: instead of a block of text, a model replies with components such as a chart, a table or a form, which your app draws as the reply streams in. At its centre is OpenUI Lang, a compact language the model writes. You define the components it may use with Zod schemas, OpenUI turns that library into a system prompt, and a renderer parses the stream and maps each node to one of your components.
A framework-free core sits under runtimes for React, Vue 3, Svelte 5 and Angular. React also gets two built-in component libraries and ready chat layouts. Further packages cover LangChain and LangGraph agents over AG-UI, assistant-ui, React Email, a script-tag bundle for pages with no build step, and a client for Google's A2UI 1.0 protocol carrying OpenUI Lang payloads. The CLI scaffolds a Next.js agent app with LangGraph, the Vercel AI SDK or Eve.
The monorepo is MIT-licensed TypeScript with about 15,600 GitHub stars, 1,000 forks and 59 contributors since December 2024. Packages are released separately; the latest, @openuidev/channels 0.3.0, came out on 27 November 2026, and the core react-lang and lang-core packages are at 1.2.0. Thesys sells a hosted layer, OpenUI Cloud, with a gateway that repairs malformed output as it streams.
Is OpenUI worth it?
OpenUI solves a narrow problem well. When an assistant needs to answer with a table of orders or a booking form, the usual routes are free-form HTML, which is unsafe and inconsistent, or a JSON tree, which is verbose and only renders once it closes. OpenUI Lang sits between them. The model may only name components you registered, the parser checks each one against its Zod schema, and the renderer can draw a half-finished reply because the language was designed to be read line by line. The docs say the language and renderer depend on no model provider, chat library or hosted service.
The headline claim is efficiency. In the repo's benchmark, seven sample screens took 4,800 tokens in OpenUI Lang against 10,180 in Vercel's json-render and 9,948 in Thesys' own older C1 JSON format, about 52% fewer, and up to 67% fewer on a contact form. The method is published and reproducible, counted with the tiktoken GPT-5 encoder, but Thesys chose the scenarios and wrote the converters. The comparison table goes further and turns token counts into latency, 4.9 seconds against 14.2 at 60 tokens a second, which is arithmetic from the token counts with no timed run behind it. Shorter output does mean lower cost and a faster first paint, so the direction is believable even if the exact margin is the maker's.
The open-source parts are generous, and the commercial pull is easy to spot. The CLI needs no account to scaffold, but its last step asks you to sign in with Thesys and writes an OpenUI Cloud key into .env, and the docs make the hosted gateway the default because it corrects broken output mid-stream and falls back between providers. That gateway is the product behind OpenDashboards, Thesys' dashboard app, which we reviewed separately and found far more tied to the cloud than OpenUI itself. The CLI also sends usage analytics to PostHog by default; DO_NOT_TRACK=1 or --no-telemetry turns that off, though its feedback command still sends what you type.
OpenUI ships a client for A2UI and streams over AG-UI, so a team can use it with either protocol. A2UI is the steadier standard, with Google behind it and native clients for iOS and Android; OpenUI is the quicker route to a working React chat that shows charts. With 218 open issues and pull requests and some 20 separately versioned packages, it moves fast, and most chat-layout packages are still below 1.0, so pin versions.
Where it earns its place
A frontend lead at a 30-person B2B SaaS company
Let the in-app assistant answer usage questions with a chart and a table instead of paragraphs
Register the existing chart and table components with Zod schemas, generate the system prompt with the CLI and render replies with react-lang. Free with your own model key; OpenUI Cloud starts at $49/month for 25K calls if you want the repairing gateway.
A Python team running a LangGraph agent behind a FastAPI service
Stream structured screens to a web client without writing a renderer
The @openuidev/langchain package streams OpenUI Lang over AG-UI to the client, where the prebuilt chat layouts draw it. The cost is your model tokens; there is no OpenUI fee unless you route through the cloud.
An agency developer adding a support widget to a client's static marketing site
Show a generated form or comparison table in a page with no build step
Load the browser bundle from a script tag; it ships the renderer, the UI library, React and styles. Keep the model call on a small server so the API key never reaches the page.
Before you commit
- Setup
- npx @openuidev/cli@latest create scaffolds a Next.js agent app in minutes; press Esc at the sign-in step to skip the Thesys key. For an existing React app, npm install @openuidev/react-lang @openuidev/react-ui.
- Integrations
- React, Vue 3, Svelte 5 and Angular runtimes; LangChain and LangGraph through AG-UI; Vercel AI SDK; assistant-ui; React Email; an A2UI 1.0 client; a CDN browser bundle; an agent skill for Claude Code, Codex and Cursor.
- Data and privacy
- The libraries run in your app and send prompts only to the model you call. OpenUI Cloud routes model calls through Thesys, and its free models may use data for training. The CLI sends PostHog usage analytics unless DO_NOT_TRACK=1 is set; the optional observability SDK logs full events by default, with a minimal mode that strips likely personal data.
- Cost at scale
- Nothing for the libraries. On OpenUI Cloud, Build is $49/month for 25K calls and Grow $499/month for 500K, plus model tokens at provider rates; Scale is priced on request.
- Limits
- The model can only draw what you registered, so new kinds of answer need new components. Malformed output is your problem without the paid gateway. 218 open issues and pull requests; most UI packages are pre-1.0 and change often.
What’s good
- Model can only use components you registered and typed
- Renders partial replies while tokens stream in
- Runtimes for React, Vue, Svelte and Angular
- Published, reproducible token benchmark
What’s not
- Benchmarks and latency figures come from the maker
- CLI and docs steer towards Thesys' paid cloud
- CLI telemetry is on by default
- Many packages still below 1.0
Best for
Product teams building an assistant or copilot in React, Vue, Svelte or Angular that should answer with charts, tables and forms from their own design system.
OpenUI alternatives
Where it fits in the AI stack
OpenUI: common questions
- Is OpenUI worth it?
- OpenUI is the most practical way we have read to let a model draw real components in a chat, provided you treat its token benchmarks as the maker's own and keep Thesys' cloud optional. We rate it 4.0 out of 5.
- How much does OpenUI cost?
- Libraries free under MIT and usable with any model provider. Optional OpenUI Cloud: Free with 3K API calls a month, Build $49/month for 25K, Grow $499/month for 500K, Scale custom; model tokens billed separately.
- What are the downsides of OpenUI?
- Benchmarks and latency figures come from the maker; cLI and docs steer towards Thesys' paid cloud; cLI telemetry is on by default; many packages still below 1.0.
- Who is OpenUI best for?
- Product teams building an assistant or copilot in React, Vue, Svelte or Angular that should answer with charts, tables and forms from their own design system.
- How much does OpenUI cost for a team or in production?
- Nothing for the libraries. On OpenUI Cloud, Build is $49/month for 25K calls and Grow $499/month for 500K, plus model tokens at provider rates; Scale is priced on request.
- Is OpenUI safe for company data?
- The libraries run in your app and send prompts only to the model you call. OpenUI Cloud routes model calls through Thesys, and its free models may use data for training. The CLI sends PostHog usage analytics unless DO_NOT_TRACK=1 is set; the optional observability SDK logs full events by default, with a minimal mode that strips likely personal data.
- What are the best OpenUI alternatives?
- The closest alternatives we have reviewed are A2UI, AG-UI and OpenDashboards.
Answers checked Nov 28, 2026.