ZSeven-W /openpencil
The world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
★ 7,241⑂ 636👁 46⑃ 143● 121▤ 33
+12
Daily
+75
Weekly
7,241
stars
636
forks
46
watchers
143
prs
121
issues
33
releases
README
OpenPencil
The world's first open-source AI-native vector design tool.
Concurrent Agent Teams • Design-as-Code • Built-in MCP Server • Multi-model Intelligence
English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Français · Español · Deutsch · Português · Русский · हिन्दी · Türkçe · ไทย · Tiếng Việt · Bahasa Indonesia
Click the image to watch the demo video
Why OpenPencil
🎨 Prompt → Canvas
Describe any UI in natural language. Watch it appear on the infinite canvas in real-time with streaming animation. Modify existing designs by selecting elements and chatting.
🤖 Concurrent Agent Teams
The orchestrator decomposes complex pages into spatial sub-tasks. Multiple AI agents work on different sections simultaneously — hero, features, footer — all streaming in parallel with per-member canvas indicators.
🧠 Multi-Model Intelligence
Automatically adapts to each model's capabilities. Claude gets full prompts with thinking; GPT-4o/Gemini disable thinking; smaller models (MiniMax, Qwen, Llama) get simplified prompts for reliable output.
🔌 MCP Server
One-click install into Claude Code, Codex, OpenCode, Kiro, or Copilot CLIs. Design from your terminal — read, create, and modify .op files through any MCP-compatible agent.
🎨 Style Guides
Built-in style guide library with tag-based fuzzy matching. Apply visual styles (glassmorphism, brutalist, retro, etc.) to AI-generated designs. MCP tools for external agent access.
📦 Design-as-Code
.op files are JSON — human-readable, Git-friendly, diffable. Design variables generate CSS custom properties. Code export to React + Tailwind or HTML + CSS.
🖥️ Runs Everywhere
Web app + native desktop on macOS, Windows, and Linux — one Rust core, a single self-contained binary, no browser engine. .op file association — double-click to open.
⌨️ CLI — op
Control the design tool from your terminal. op design, op insert — batch design DSL, node manipulation. Pipe in from files or stdin. Works with desktop app or web server.
🎯 Multi-Platform Code Export
Export to React + Tailwind, HTML + CSS, Vue, Svelte, Flutter, SwiftUI, Jetpack Compose, React Native — all from one .op file. Design variables become CSS custom properties.
🧩 Embeddable SDK
op-web-sdk (vanilla) + op-web-sdk-react / op-web-sdk-vue adapters — embed a read-only .op viewer in your own app, powered by the same wasm renderer the editor ships.
🛡️ Design System Kit
Manage reusable UIKits with style switching and component composition. Import/export kits from .pen files. Built-in registry with MCP tools for external access.
👥 Real-Time Collaboration
Design together over authenticated peer-to-peer sessions with a public relay and built-in regional hubs. Join with a short pairing code, see live remote cursors, and resolve conflicts with per-edit detail and replay.
Install
Building from source on Windows: see BUILD_WINDOWS.md
macOS (Homebrew):
basTop issues
#214希望加入svg支持11 comments · 2026-08-14#181Ctrl+V dosen't work10 comments · 2026-07-19#188Translate to Persian6 comments · 2026-07-27#283The CMD+Z, SHIFT+CMD+Z, etc. shortcuts under macOS have trouble working.4 comments · 2026-11-09#62希望可以支持gemini模型,还有stitch的导入4 comments · 2026-03-21#137最近一群来自国内的傻逼在攻击我们2 comments · 2026-06-01#285GUI only Chinese ;-)2 comments · 2026-11-11#274Phone-sized boards always get an injected iOS status bar that cannot be removed2 comments · 2026-11-04
Latest release
OpenPencil v0.8.5 — Design on Desktop, Android, and iOS v0.8.5 Pre-release 2026-10-27v0.8.5 brings the Rust editor to Android and iOS, alongside a redesigned Studio Home and a more complete path from a brief to an editable design and exported code. This release also improves multi-screen generation, reference images, interactive previews, and the tools available to external agents. Highlights - Android and iOS editor shells. Touch editing, native file and account flows, and lifecycle-aware generation use the shared Rust engine. - Studio Home and design workspaces. Start from a prompt or reference, compare design directions, and inspect generation results and quality rep