Give your agent
a canvas
Sketch UI as live previews in your real design system, point at the exact element that's wrong, and let the agent build it into your repo.
Set up Klose: github.com/adityakarki99/OpenKlose
Claude Code, Cursor, Codex, Copilot, Windsurf, or any agent with a shell. Download for Mac ↓ or open the canvas in your browser →
- runs on
- 127.0.0.1, this page, or a link your agent sends
- ships
- no model, no cloud, no API keys
- stores
- .klose/*.json in your repo
- license
- AGPL-3.0
One session, start to file
Run /klose in any agent. It grounds itself in your repo, sketches on the board, takes comments on exact elements, and builds with the components you already have.
you/klose three switcher ideas for the settings page
agentReading tailwind.config.ts, app/globals.css and components/ui. Found 52 tokens and 23 components. Should the switcher persist per user or per device?
youper user. default to system theme
agentSketched Switcher with 3 variants on the board, in your tokens. → 127.0.0.1:4800/canvas/workspace
you[comment on <button> "Week" · variant b]
Make Week the default.
agentUpdated variant b. Comment cleared.
youbuild b
agentFound components/ui/button.tsx (variant · size · asChild) and extended it instead of writing a new one.
✓ wrote src/components/ui/Switcher.tsx
✓ marked the sketch built
Klose vs. a chat artifact
A chat artifact is for generating something to look at. Klose is for deciding what to build, inside the repo you're building it in.
| Chat artifact | Klose | |
|---|---|---|
| Styling | Generic defaults the model invents | Your Tailwind config, tokens, conventions |
| Knows your components | Guesses from the prompt | Searches your real component index first |
| Feedback precision | Describe it in prose | Click the element: tag, classes, DOM path |
| Where it runs | Hosted, in the chat app | Your machine, any IDE, any agent |
Where a chat artifact is genuinely better
- Zero setupThe hosted canvas is one page in Chrome or Edge, but the agent's side still wants Node ≥ 18, an install, and a repo worth grounding in.
- SharingAn artifact is a URL. Klose runs on
localhostby default; a shared canvas (klose share) is a link too, one project at a time, with no multiplayer cursors. - A model is includedKlose does nothing unless an agent is driving it.
- Preview fidelityPreviews are sandboxed snippets that restate your component in your tokens. Your real component tree isn't running in them.
Start on the board
Paste one line into your agent. It reads the setup guide, installs Klose from the OpenKlose repo and opens the board.
Set up Klose: github.com/adityakarki99/OpenKlose
Or skip the install: open the canvas here in Chrome or Edge, pick the repo folder, and it reads and writes .klose/ in it directly. Agent in the cloud? It runs npx klose share and sends you a link to this canvas instead. Read the docs or star it on GitHub.