Open Generative UI
An open-source framework for building rich, interactive AI-generated UI with CopilotKit and LangChain Deep Agents.
- Source repo
- CopilotKit/OpenIntelligentUI
- Stars
- ★ 4.3k
- Last updated
- 1mo ago
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- TypeScript
- FA score
- 74/100 · Some gaps
At a glance
- How it runs
- Works with
- Portable with changesClaude APIOpenAI API (Partial support)
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Educators who want to visualize algorithms (e.g., binary search, sorting) directly in a chat interface.
- Not a fit if
- Users on weaker or small local models; output breaks or loses interactivity
- Anyone unwilling to run frontend, agent, and MCP services at once
- Website
- opengenerativeui.copilotkit.ai ↗ set on GitHub
- Maintenance
- Commits in the last 6 monthslast commit 2026-10-13+5.9 ★/day over 7 days
- Source review
- 74/100 · Some gaps
What does this agent do, and when should you use it?
Open Generative UI is an open-source showcase for building rich, interactive AI-generated UI. It leverages CopilotKit and LangChain Deep Agents to render algorithm visualizations, 3D animations, charts, and interactive widgets as live HTML/SVG inside a sandboxed iframe. The repository is a Turborepo monorepo with three packages: a Next.js frontend, a skills-based Deep Agent backend, and a standalone MCP server. The agent uses a skills architecture with SKILL.md files for on-demand loading of instructions, and generates UI via the generateSandboxedUi tool and OpenGenerativeUIMiddleware. The frontend streams updates using CopilotKit v2's openGenerativeUI and renderActivityMessages. It requires a high-capability model (e.g., Claude) and provides a full local development environment with make or pnpm commands.
The agent generates interactive UI components based on user prompts. It receives user requests, processes them via create_deep_agent from LangChain Deep Agents, which uses skills from SKILL.md files to decide the output type. When a visualization is needed, it calls the generateSandboxedUi tool (provided by the CopilotKit runtime), which accepts streaming parameters: initialHeight, placeholderMessages, css, html, jsFunctions, and jsExpressions. The OpenGenerativeUIMiddleware in the runtime translates these into open-generative-ui activity events that the frontend subscribes to. The frontend renders the HTML stream via renderActivityMessages, morphing updates into a preview iframe with Idiomorph, then boots the final websandbox iframe with shared design-system CSS and CDN importmap. Generated UI calls back into the host via Zod-validated sendPrompt and openLink sandbox functions, and auto-sizing is handled by a ResizeObserver.
- Educators who want to visualize algorithms (e.g., binary search, sorting) directly in a chat interface.
- Developers building AI assistants that need interactive data dashboards or charts.
- Product teams integrating 3D animations or complex data visualizations into web applications.
- Users who want to generate UI components in MCP-compatible clients like Claude Desktop or Claude Code.
- AI application developers needing to explore visual representations like flowcharts, diagrams, and network graphs.
- Technical professionals prototyping interactive UI widgets within a CopilotKit project.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Environment variables
LLM_MODELOPENAI_API_KEY- Config files
apps/agent/.env
How do you install or deploy this agent?
- Clone the repository and run
make setupto install dependencies and create a.envtemplate. - Edit
apps/agent/.envwith your Anthropic API key (and optionally setLLM_MODELorOPENAI_API_KEY). - Run
make devto start all services. Ensure Node.js and pnpm are installed.
How do you use this agent?
- After starting the dev servers, open
http://localhost:3000(app) andhttp://localhost:8123(agent API). - In the chat UI, send a request like 'Visualize binary search' or 'Create a pie chart'.
- The agent will generate an interactive HTML/SVG component rendered in a sandboxed iframe.
- To use the MCP server with Claude Desktop or Claude Code, follow the configuration in
apps/mcp/README.md, using stdio or HTTP (runpnpm devfor HTTP).
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- data-flow disclosure
- sensitive-data handling
What are this agent's strengths and limitations?
- Provides a full open-source framework for generating rich interactive UI, not just text responses.
- Modular architecture: frontend, agent, and MCP server are separate, allowing customization and extension.
- Skills-based design enables progressive disclosure, reducing token usage and improving focus.
- Supports a wide range of visualization types, including algorithms, 3D, charts, and interactive simulations.
- Includes automatic theming, responsive sizing, and progressive reveal animations out of the box.
- Well-documented commands and configurations for multiple environments (make, pnpm, Claude Desktop, Cursor).
- Requires high-capability models (like Claude) to reliably generate complex HTML/SVG; weaker models produce broken output.
- Dependence on CopilotKit and LangChain ecosystems, which may introduce learning curves and potential breaking changes.
- Agent is primarily tuned for Claude; switching model providers may require code and configuration changes (e.g., model.py).
- Local development requires running multiple services (frontend, agent, MCP) simultaneously, which may be resource-intensive.
- Generating UI relies on network access for CDN imports, which may not be suitable for constrained environments.
- Documented model names (e.g.,
claude-fable-5) may be fictional or future models; users may need to adjust actual model names.
How does this agent compare with similar options?
This project explicitly differentiates from standard generative UI in CopilotKit, which uses useComponent for simple components, versus this full sandboxed HTML/SVG via generateSandboxedUi. It also contrasts with typical LangGraph agents by using LangChain Deep Agents for deeper planning and skills.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Open Generative UI This agent | 74 · Some gaps | CLIFree + model costs | ★ 4.3k | 1mo ago | TypeScript | Claude API |
| Open Multi-Agent Canvas | 35 · Major gaps | Web appFree + model costs | ★ 566 | 6mo ago | TypeScript | — |
| AI SDK | 54 · Major gaps | Library / SDKFree + model costs | ★ 28k | today | TypeScript | OpenAI API · Claude API |
| AgentInspect Local Trace Toolkit | 79 · Good | CLIFree | ★ 214 | 7d ago | TypeScript | — |
How does FollowAgents rate this agent?
Why each dimension lost points
Least privilege scores 2: the listed tools focus on queries, images, visualization, todos, and forms, but the sample does not show per-tool authorization controls. User confirmation scores 2: visitors enter and test keys before their first request, and agent follow-ups require a click; ordinary generation can still be started directly. Data-flow transparency scores 3: the README explains that keys pass through the application server to their respective providers, are not stored in browser storage or chat state, describes tracing behavior, and advises trusting the deployment operator. Sensitive-data handling scores 3: the docs explicitly warn against exposing keys in generated UI, logs, or screenshots and describe clearing and refresh behavior. Dependency security scores 1: CI pins some GitHub Actions by commit hash, but the packet shows no dependency audit or vulnerability mitigation evidence. External effects scores 2: maps use live USGS tiles and photos, and key tests call providers; agent follow-ups require a user click, while the packet shows no other high-impact external actions. Rollback scores 1: users can clear keys or start a new chat, but no general undo mechanism for generated results is shown. Source attribution scores 2: the docs credit map photos and identify USGS tiles and illustrative data, but the sample does not establish attribution for all generated content.
Self-consistency scores 2: the README, CLAUDE.md, skills, and tests broadly agree on sandbox parameter order, model routing, and capability limits; compatibility examples and the limits of the sample prevent a stronger score. Dependency availability scores 1: setup instructions specify Node, pnpm, Python, and uv, but generation depends on external model and Jev services and network resources, with no offline alternative shown. Failure messages score 2: the docs say provider failures are surfaced, and skill examples call for visible initialization and follow-up errors; evidence for all service failure cases is not provided.
Audience and scenarios scores 3: the product targets understanding, comparison, and interactive-tool scenarios, with concrete examples and multiple output modes. Capability boundaries scores 3: it states that query data is bundled sample data rather than live data, map connections are not navigation, the sandbox cannot access same-origin storage or fetch, and there is no cross-call patch API. Trigger precision scores 2: the docs give rules for choosing text, tables, or custom UI and caution against turning every answer into a dashboard, though the choice still relies on model judgment. Environment fit scores 2: browser-session keys and frontend, agent, and optional MCP deployment modes are documented, but the system requires a specified toolchain and external services.
Information architecture scores 3: the README links to a documentation index and separates architecture, deployment, behavior, telemetry, and MCP guidance. Install notes score 3: prerequisites, installation, configuration, startup, and verification are documented, including the distinction between health checks and real model requests. Naming stability scores 2: CLAUDE.md specifies stable product, runtime API, event, and deployment names, while package.json retains a template name, showing some naming inconsistency. Examples and FAQ score 3: the packet includes several usage scenarios, configuration examples, and a stepwise verification guide; there is no dedicated FAQ, but common setup questions are addressed in docs. Known limitations score 3: sample data, live-data access, model services, sandbox isolation, and MCP rendering boundaries are explicitly disclosed. License scores 3: the complete MIT license text and copyright attribution are present. Versioning and changelog scores 1: the sample shows no changelog or release-version policy. Maintenance responsibility scores 1: contribution guidance and CI are described, but release and long-term maintenance responsibility are not clear in the sample; publisher identity remains unknown as instructed.
Output usability scores 3: the product aims to create interactive explanations, comparisons, and tools, and its skills specify accessible controls, input validation, responsive layouts, error states, and reset behavior. Marginal value scores 3: custom UI, native components, and chat follow-ups can turn answers into usable artifacts alongside text responses. Cost-benefit scores 2: local setup and bring-your-own-key paths are clear, but normal generation requires provider accounts and multiple services, and costs and configuration burden are not quantified.
Claim traceability scores 2: architecture, configuration, and behavior claims are generally tied to code paths or explicit contracts, while some demonstrations remain descriptive or are represented only by snippets. Cross-source corroboration scores 2: skills, prompt-contract tests, README, and configuration code reinforce key sandbox constraints, but the supplied packet is not the complete repository. Fact-inference separation scores 3: the materials distinguish illustrative values, calculations, user inputs, and live evidence, and explain that a health check does not verify model generation.
- Generation depends on external model and Jev providers; personal keys pass through the application server, so use them only on a deployment you trust.
- Sample data, map routes, and demonstration numbers should not be treated as live business or weather data or verified navigation; deployment behavior and complete dependency security cannot be established from this static sample.
FAQ
What credentials are needed to run this project?
apps/agent/.env) as the default model is claude-fable-5. If you set a gpt-* model, you need an OpenAI API key. You can customize models, but it may require code changes in model.py.Can I deploy the generated UI to production?
What happens if I use a weaker model?
Can I use Claude Desktop or Claude Code as a frontend?
assemble_document tool to generate iframe-ready documents.Do I always need to run all services?
make dev). But you can start them individually with make dev-app, make dev-agent, or make dev-mcp if you only need specific parts.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.