Who it is forA developer who wants a working generative UI chat app to start from, without wiring streaming and rendering by hand.
The problemWiring model output, streaming, and a UI renderer from scratch takes time before any working prototype exists.
The outcomeA scaffolded app with OpenUI Lang support, library-driven prompts, and streaming UI updates that you can run and then extend.
What you need first
- Node.js with npm and npx, since the README install and scaffold commands use them
- An LLM provider you can call from your backend, because OpenUI sends a generated system prompt to your model
- A component library to use or define; the README provides built-in libraries in @openuidev/react-ui
Steps
- Open a terminal in the folder where you want the project.
- Run
npx @openuidev/cli@latest create --name genui-chat-app - Change into the new genui-chat-app folder and follow the install and start steps the CLI prints.
- Open the app and send a prompt to confirm UI renders as the response streams.
- Open the Playground at https://www.openui.com/playground to compare generated output with your app.
Prompt for your agent
Using the thesysdev/openui repo, scaffold a new app named genui-chat-app in <target folder> by running `npx @openuidev/cli@latest create --name genui-chat-app`. Report the start command the CLI prints and confirm that a test prompt in the running app produces streamed UI rather than plain text.
Caveat. The scaffold needs a model provider set up on your side, and the README does not describe which provider settings the generated app expects.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for thesysdev/openui and "Scaffold a streaming generative UI chat app"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer