Skip to content

Build AI-powered desktop workflows with React. Local-first, extensible, open core.

License

Notifications You must be signed in to change notification settings

contextui-desktop/contextui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

exported_video3_gh.mp4

🎬 Watch with sound on YouTube

ContextUI

Local-first visual AI workflow builder

Build, run, and share AI-powered workflows β€” entirely on your machine.

Download Β Β·Β  Workflow Exchange Β Β·Β  YouTube Β Β·Β  Website

Features β€’ Quick Start β€’ Examples β€’ Build a Workflow β€’ Contributing


Don't want to build from source? Download ContextUI for macOS, Windows, and Linux β€” free, no account required.

New to ContextUI? Check out our YouTube channel for tutorials, demos, and workflow showcases.

Want ready-made workflows? Browse the ContextUI Exchange β€” install community workflows with one click.


Built for Humans and AI Agents

ContextUI is designed to be used by both humans and AI agents β€” and they can work together.

As a human, you get a visual desktop app with a workflow browser, drag-and-drop tabs, and a built-in Python environment. Open a workflow, click through the UI, and get things done.

As an AI agent, you get full programmatic control via MCP. List workflows, launch them, read their source, automate their UI, manage Python servers β€” all through tool calls. Agents can build, test, and ship workflows without a human touching the keyboard.

Together, a human can use a workflow visually while an agent manages the backend, or an agent can build a workflow and hand it to a human to use. The same app, the same workflows, two ways in.

Features

  • Visual workflow builder β€” Create AI workflows with React TSX components
  • 25+ built-in workflows β€” TTS, image generation, RAG, video editing, 3D, music gen, and more
  • Python backend support β€” Automatic venv management and server lifecycle
  • MCP integration β€” Full agent access via Model Context Protocol (27 tools)
  • Local-first β€” Your data never leaves your machine
  • Workflow Exchange β€” Share and discover community workflows
  • Extensible β€” Build anything with React + Python + AI

ContextUI Workflow Browser

Quick Start

Prerequisites

  • Node.js 18+
  • npm (comes with Node.js)
  • Git

Install & Run

git clone https://github.com/contextui-desktop/contextui.git
cd contextui
npm install
npm run electron:dev

That's it. ContextUI will open and you can start building workflows.

Build for Distribution

npm run electron:build

See docs/INSTALLATION.md for platform-specific instructions.

SolarSystem Workflow Running

Example Workflows

ContextUI ships with 20+ example workflows to get you started:

Workflow Description
KokoroTTS Text-to-speech with Kokoro voices
SDXLGenerator Stable Diffusion XL image generation
RAG Retrieval-augmented generation
MusicGen AI music generation
VideoEditor Video editing and processing
SolarSystem Interactive 3D solar system
WordProcessor Rich text document editor
Spreadsheet Full spreadsheet application
Terminal Integrated terminal emulator
STLViewer 3D model viewer
PDFEditor PDF viewing and editing
VoiceAgent Voice-powered AI assistant
Localchat2 Local LLM chat interface
Presentation Slide deck builder
ImageToText Image captioning / OCR
STT Speech-to-text transcription
Teleprompter Scrolling teleprompter
PeriodicTable Interactive periodic table
AnimatedCharacter Animated character chat
ScreenGridHarness AI-driven native OS screen automation
ClaudeLauncher Launch Claude from ContextUI

Plus developer templates and examples: CowsayDemo, ExampleToolServer, ToolExampleWorkflow, WorkflowLauncher, and themed/multi-file templates.

Browse all examples in the example_modules/ directory.

Python Manager

Building a Workflow

Each workflow is a folder containing:

MyWorkflow/
  MyWorkflow.tsx          # React component (your UI)
  MyWorkflow.meta.json    # Icon, color, metadata
  description.txt         # Short description

The TSX component has access to React globals β€” no imports needed:

const MyWorkflow: React.FC = () => {
  const [count, setCount] = useState(0);

  return (
    <div style={{ padding: 20 }}>
      <h1>Hello ContextUI!</h1>
      <button onClick={() => setCount(c => c + 1)}>
        Clicked {count} times
      </button>
    </div>
  );
};

For the full guide, see docs/BUILDING_WORKFLOWS.md.

Tool Manager

Architecture

contextui/
β”œβ”€β”€ electron/               # Electron main process
β”‚   β”œβ”€β”€ main.cjs            # App lifecycle, window management, IPC
β”‚   β”œβ”€β”€ preload.cjs         # Context bridge for renderer
β”‚   β”œβ”€β”€ python-manager.cjs  # Python venv management
β”‚   β”œβ”€β”€ module-bundler.cjs  # TSX β†’ component bundling (esbuild)
β”‚   β”œβ”€β”€ mcp-server-standalone.cjs  # MCP server (stdio transport)
β”‚   └── tool-registry-server.cjs   # Tool registry (port 8800)
β”œβ”€β”€ src/                    # React renderer (Vite + TypeScript)
β”‚   β”œβ”€β”€ components/         # Shared UI components
β”‚   β”œβ”€β”€ modules/            # Core app modules
β”‚   β”œβ”€β”€ managers/           # State & lifecycle managers
β”‚   └── utils/              # Helpers
β”œβ”€β”€ example_modules/        # Built-in workflow examples
β”œβ”€β”€ docs/                   # Documentation
β”œβ”€β”€ scripts/                # Build & publish scripts
└── package.json

For a deeper dive, see docs/ARCHITECTURE.md.

Security

ContextUI runs with nodeIntegration enabled and contextIsolation disabled. This is a deliberate architectural choice β€” workflows need direct access to Node.js and Electron APIs to provide features like file system access, Python server management, and MCP tool integration.

What this means:

  • Workflows execute with full Node.js privileges (file system, network, child processes)
  • This is equivalent to running any local application or script on your machine
  • ContextUI is designed for local use with trusted workflows only

Recommendations:

  • Only install workflows from sources you trust (the built-in examples, the official Workflow Exchange, or code you've reviewed yourself)
  • Do not load untrusted remote content or paste workflow code from unknown sources without reviewing it first
  • Python backend servers bind to 127.0.0.1 (localhost only) and are not accessible from the network

If you discover a security issue, please report it to services@isd.ai rather than opening a public issue.

Open Core

ContextUI's core is free and open source under the Apache 2.0 license. Build and run workflows locally without restrictions.

Premium features (via contextui.ai):

  • Workflow Exchange β€” Publish and monetize your workflows
  • Cloud hosting β€” Run workflows without managing infrastructure
  • Cloud hosted LLMs β€” Work with agents to build workflows

Documentation

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

License

Apache License 2.0 β€” see LICENSE for details.

Copyright 2025 Intelligent System Design Pty Ltd

Links

Website contextui.ai
Download contextui.ai/download
Workflow Exchange https://contextui.ai/exchange
YouTube youtube.com/@contextui

Built by ISD
ContextUI is backed by Intelligent System Design β€” an AI-first company building tools for the future of work.

About

Build AI-powered desktop workflows with React. Local-first, extensible, open core.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published