# Klose > Klose is an open-source (AGPL-3.0), local, no-login design canvas for coding agents. It works in any IDE and with any coding agent that can run shell commands (Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Gemini CLI, Cline, …). It installs into a repo and opens a local canvas where UI ideas appear as live previews that use the repo's real design system. The user can comment on a specific element. The agent then builds the component into the source tree. Source: https://github.com/adityakarki99/OpenKlose Full docs: https://github.com/adityakarki99/OpenKlose#readme ## Set up Klose in this repo If you are a coding agent and the user asked you to "set up klose", follow these steps from the root of the user's repo: 1. Check that Node.js >= 18 is available: `node --version`. 2. Install Klose as a dev dependency. It isn't published on npm yet, so install it from GitHub: `npm install -D github:adityakarki99/OpenKlose` (Once it's on npm, `npm install -D klose` will work too.) 3. Initialise it: `npx klose init` This installs the `/klose`, `/klose-update` and `/klose-cleanup` skills into `.claude/skills/`, creates `.klose/` (seeded with a demo project) and reports the design tokens and components it found. Useful flags: `--no-demo`, `--ignore-projects` (keep sketches out of git), `--wire-claude-md`. 4. Tell the user what `klose init` found. In Claude Code, if `/klose` doesn't show up in the command list, tell them to restart it. Other agents can drive Klose directly through the `npx klose` CLI. 5. Suggest a first run, e.g. "klose three switcher ideas for our settings page" (`/klose …` in Claude Code). The skill starts the canvas itself. To start it by hand, run `npx klose serve --open`. ## The hosted canvas (no install) The canvas also runs as a plain page at `/canvas/`. In Chrome or Edge, open it, click "Choose the repo folder" and pick the repo: the page reads and writes `.klose/` in that folder directly (the same files `npx klose` writes), remembers the folder, and needs no server. The agent still needs the `klose` CLI for the skill, the component index and "Save to repo"; `npx klose status` reports when the hosted canvas has the repo open, and the `/klose` skill then doesn't start a server. Firefox and Safari can't open a folder from a web page: use `npx klose serve --open` there. ## When you run where the user's browser can't reach you (cloud sessions, containers) `npx klose serve` opens nothing the user can see. Share the project instead: `npx klose share ` prints a link (`/canvas/#/s//`); give it to the user in your reply. It opens the canvas in any browser with the sketches rendered live in the repo's tokens, and the comments they leave come back on your next `npx klose feedback`: once shared, `feedback`, `project get|update|add-node|update-node` and `resolve` sync with the link on their own. The project is encrypted with a key only the link carries; this site stores ciphertext. Shares expire a month after the last change. `npx klose help share` has the rest. ## Notes - Everything runs locally. The server listens on 127.0.0.1 only. There is no account, no cloud service and no API key. - Sketches are plain JSON under `.klose/projects/`. - Before sketching, search existing components with `npx klose components ` and reuse them. - `npx klose help` lists all commands.