--- url: https://claudecodeui.cuonghuunguyen.app/guide/tour.md --- # A quick tour The screen has four parts. Each links to its own page. ![The main screen: sidebar, tabs, session and side panel](/screenshots/workspace-light.png) | Part | Where | What it is | | --- | --- | --- | | **Sidebar** | Left | Your [projects](../features/projects) and their [sessions](../features/sessions). Search, Focus and Settings live here too. | | **Tab bar** | Top | Open sessions as [tabs](../features/sessions#tabs), grouped by project. | | **Session** | Middle | The chat with Claude: the [timeline](../features/timeline) and the [prompt box](../features/prompt-box) at the bottom. | | **Side panel** | Right | [Files](../features/files), [Changes](../features/changes), [Graph](../features/git-graph) and the [terminal](../features/terminal). | ## Words you will see * **Daemon:** the small server claude-code-ui runs on your computer. It owns all sessions. * **Project:** a folder you opened with **Open project**. * **Session:** one conversation with Claude in one folder. * **Turn:** one prompt and everything Claude does for it. * **Tool card:** one thing Claude did, like running a command or editing a file. * **Permission request:** Claude asks before it runs a tool. See [Permissions & modes](../features/permissions). ## Top-right buttons | Button | Does | | --- | --- | | Usage ring | Your plan usage. Click for details. See [Usage & context](../features/usage). | | Search | Opens the [command palette](../features/palette). | | Theme | Cycles System → Light → Dark. | | Panel | Shows or hides the side panel. | ## Good to know * Press Ctrl+/ to see every [keyboard shortcut](../reference/shortcuts). * Restart the guided tour any time: **Settings › Help & diagnostics › Guide**, or "Show guide" in the command palette. * On a phone the layout changes: the sidebar becomes a drawer and you see one pane at a time. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/addon-parts.md --- # Addon parts {#addon-parts} A theme addon styles claude-ui with CSS. To find the element to style, select a **part**: an element that carries `data-part=""`. A part name is stable. The class names and the `data-testid` values of the app are not: they may change in any release and break your theme. ```css :root[data-theme="addon:my-addon:night"] [data-part="user-message"] { border-left: 3px solid var(--primary); } :root[data-theme="addon:my-addon:night"] [data-part="tab"][data-state="running"] { outline: 1px solid var(--ring); } ``` ## Rules {#rules} * Select `[data-part="..."]`, never `[data-testid="..."]`. `data-testid` is a test hook. * State is an attribute on the part itself. The table lists the attributes a part has. Other attributes are not part of the contract. * A part is removed only after one minor release in which it is marked **deprecated** in the table. A new part gets a `since` version. * The list is also in `packages/protocol/src/addon-parts.ts` (`PARTS`, `PART_NAMES`, `PartName`, `PARTS_VERSION`). ## Browser support {#browser} Theme CSS (`themes[].css`) needs CSS nesting: Chrome 120, Safari 17.2 (iOS 17.2) or Firefox 117, or newer. The palette and `vars` of a theme work in older browsers too, but the rules of its CSS file are dropped there, so the theme shows its colours only. ## Cascade {#cascade} The CSS file of an addon (`css` in `addon.json`) is loaded in its own cascade layer, `addon.`, after the styles of the app itself. Order: `theme, base, components, utilities, host, addon`. * Your rules win over the app's rules without `!important` and without a long selector. Do not add `!important` to win over the app. * Exception, libraries: the styles of CodeMirror (`.cm-*`, the file editor), the terminal (`.xterm*`), KaTeX (`.katex*`) and the code highlighter are not in a layer, so they beat your rules whatever the selector. Add `!important` to override them. * Exception: a declaration with `!important` inside the app's built-in Neon theme (including its editor, terminal and code-highlighter declarations) beats yours, and only while Neon is the picked theme. * An inline `style` attribute of an element still wins over a layer. Add `!important` in your rule to override it. A few app elements use Tailwind `!important` utilities (for example `px-0!`); they beat your `!important` too. * Your own layers inside the file work as usual, for example `@layer base, effects;`; they sit inside `addon.`. ## Lifecycle {#lifecycle} Attributes that say what the open session is doing, so a theme can react. The app sets them from the session state, for every engine (Claude Code and OpenCode). | Attribute | On | Value | |---|---|---| | `data-phase` | `session-area` and ``, for the open session | `thinking` (a turn runs, an OpenCode retry too), `waiting` (a permission or a question needs you), `idle`. On the Focus page and a new tab: `idle`. | | `data-just-finished` | `session-area` | Present for 1200 ms after the open session went from `thinking` to `idle`. Gone when a new turn starts. Not set after `waiting`, and not when you switch to another session. | | `data-focus-opened` | `focus-page` | Present for 1200 ms after the Focus page opens. | | `data-motion` | `` | `on` or `off`. `off` while the system asks for reduced motion (live). | | `data-page-hidden` | `` | Present while the browser tab is hidden. The app pauses every CSS animation then, yours included (`animation-play-state: paused !important` in the `host` layer, which beats your `!important`). | ```css [data-part="session-area"][data-just-finished] { animation: flash 1.2s ease-out; } :root[data-motion="off"] * { animation: none !important; } ``` The 1200 ms hold is on purpose: a CSS animation stops when its selector stops matching, so one frame is too short. Performance budget for animations: * Animate `transform` and `opacity` only. Do not animate `filter`, `box-shadow` or `backdrop-filter` on large surfaces. * Few infinite animations (3 or less at the same time). Prefer one on the whole page to one per row. * Respect `data-motion="off"`: a theme with motion needs a still version. ## Parts {#parts} | Part | Element | State attributes | Since | |---|---|---|---| | `titlebar` | Top bar with the tab strip | | 1.5 | | `sidebar` | Session list column | | 1.5 | | `session-item` | One session button in the sidebar | `data-state`: `running`, `needs_input`, `idle`, `error`, `closed` | 1.5 | | `session-search` | Search box of the session list | | 1.5 | | `group-toggle` | Project group header in the session list | | 1.5 | | `day-header` | Day heading in the session list | | 1.5 | | `work-area` | Column that holds the session area and the bottom panel | | 1.5 | | `session-area` | The open session: header, timeline, prompt box | `data-phase`: `thinking`, `waiting`, `idle`; `data-just-finished` (see [Lifecycle](#lifecycle)) | 1.5 | | `session-header` | Header of the open session | | 1.5 | | `tab` | One tab in the tab strip | `data-state`: `new`, `running`, `needs_input`, `unread`, `idle`; `data-active` on the open tab | 1.5 | | `focus-tab` | The Focus tab | | 1.5 | | `terminal-tab` | One terminal tab | | 1.5 | | `side-panel` | Panel next to the chat (files, changes, graph) | | 1.5 | | `files-panel` | Files pane | | 1.5 | | `file-tree` | File tree inside the files pane | | 1.5 | | `graph-panel` | Git graph pane | | 1.5 | | `terminal` | Terminal panel | | 1.5 | | `user-message` | A message you sent | | 1.5 | | `assistant-text` | A text reply of Claude | | 1.5 | | `thinking` | The thinking row | | 1.5 | | `tool-card` | A tool call | `data-status`: `pending`, `running`, `done`, `error`, `denied`, `stopped` | 1.5 | | `permission-panel` | Permission question above the prompt box | | 1.5 | | `question-panel` | Question from Claude above the prompt box | | 1.5 | | `plan-window` | One usage window row of the plan meter | `data-level`: `ok`, `warning`, `limit` | 1.5 | | `prompt-box` | The prompt box | | 1.5 | | `prompt-toolbar` | Toolbar row of the prompt box | | 1.5 | | `markdown-toolbar` | Markdown formatting toolbar | | 1.5 | | `send` | Send button (not the stop button) | `data-state`: `idle`, `running`, `needs_input`, `disconnected` | 1.5 | | `context-meter` | Context usage meter | | 1.5 | | `context-bar` | Bar inside the context usage popup | | 1.5 | | `status-bar` | Status line under the prompt box | | 1.5 | | `focus-page` | The Focus page | `data-focus-opened` (see [Lifecycle](#lifecycle)) | 1.5 | | `focus-row` | One row of the Focus list | | 1.5 | | `focus-queue` | Queue column of the Focus page | | 1.5 | | `toast-region` | Area that holds the toasts | | 1.5 | | `scroll-to-bottom` | Button that jumps to the newest message | | 1.5 | | `palette` | Command palette | | 1.5 | | `commit-message` | Commit message field | | 1.5 | | `changed-file` | One file row in the changes list | | 1.5 | | `file-diff` | Diff of one file | | 1.5 | | `loader` | The loading mark: the spinner of a running tool call, a running session row and a running tab. Holds the theme's [`loader` slot](addons#slots) image when it has one; `` has `data-slot-loader` then | | 1.5 | | `done-icon` | The done mark (check) of a finished tool call. Holds the theme's [`done-icon` slot](addons#slots) image when it has one; `` has `data-slot-done-icon` then | | 1.5 | | `backdrop` | Full-window background image of a theme with a [`background`](addons#background). Only in the page while the image file exists; fixed behind the app | | 1.5 | ## Checks {#checks} The Addons dialog lists **Checks** under each addon: warnings from the addon lint. A warning never blocks an install or an enable. Each shows the file and, where it has one, the line. | Check | Meaning | Fix | |---|---|---| | `selects-testid` | A selector uses `[data-testid]`. It is a test hook and changes without notice. | Select `[data-part="..."]`. | | `unknown-part` | `[data-part="x"]` names a part that is not in the table, or `^=`, `$=`, `*=`, `|=` has a value that no part name can match. It matches nothing. A near name is offered ("Did you mean"). | Fix the name (see the table). | | `deprecated-part` | The selector uses a part that is on its way out. | Move to the replacement before the named release. | | `unprefixed-name` | An `@keyframes`, `@font-face` family or `@property` name has no addon prefix. These names are global and can replace a name of the app. The daemon renames the `@keyframes`, `@counter-style` and `@font-palette-values` of a `themes[].css` itself (the top-level `css` is not renamed); `@font-face` and `@property` stay global. | Name it `-name` (`---name` for `@property`). | | `top-level-css` | `css` in `addon.json` applies to every theme, and the addon has themes. | Move it to `themes[].css`. | | `css-broken` | The CSS does not parse: an unclosed block, comment or `url(`, a stray `}`, or groups nested over 32 deep. A theme CSS is then served empty: the theme keeps its palette and loses its rules. | Fix it. | | `css-too-large` | The file is larger than 512 KB. A theme CSS is then served empty: the theme keeps its palette and loses its rules. | Split or shrink it. | | `css-large` | The file is larger than 256 KB (the limit is 512 KB). | Shrink it before it reaches the limit. | | `asset-missing` | An `assets` file is not in the addon folder yet (background or slot image). The theme shows no background, or the built-in mark. | Add the file. | | `asset-large` | An image is over 2 MB. | Shrink it. | | `extends-missing` | A theme's `extends` cannot be used: no such theme, its addon is not enabled, a loop, or more than 3 links. The theme works without it. | Fix the value or enable the addon. | | `low-contrast` | A text colour of a palette has less than 4.5:1 contrast on its background: `fg` and `muted` on `bg`, `fg` on `card`, `pfg` on `primary`, `err`, `ok` and `warn` on `bg`. It names the pair, the ratio and the mode. `border` is not checked. | Change the colour. | `@keyframes`, `@counter-style` and `@font-palette-values` names in a `themes[].css` are renamed by the app, so they are not checked there (they are in the top-level `css`). ## Changelog {#changelog} * Parts version 1: the parts above. * Lifecycle attributes `data-phase`, `data-just-finished`, `data-focus-opened`, `data-motion`, `data-page-hidden` (not a part change). --- --- url: https://claudecodeui.cuonghuunguyen.app/features/addons.md --- # Addons {#addons} An addon changes how claude-ui looks and what it offers in the browser: colour themes, panes next to the chat, a band above the prompt box, slash commands and drawings for code blocks or tool results. You install one from a git repository or a local folder. It is not a [plugin](config-dialogs#how-to-open-them): plugins change Claude Code, addons change this web app. ## Install an addon {#install} 1. Type `/addons` in the prompt box, or choose **Manage addons** in the [palette](palette). 2. Choose **Git repository** and enter the URL and, if you want one, a branch, tag or SHA. Or choose **Local folder** and enter an absolute path on the machine that runs claude-ui. 3. **Install.** claude-ui clones the repository (git runs without any prompt: it uses your credential helper, ssh-agent and ssh keys, and stores nothing), pins the commit and shows the **approval card**. The `addon.json` of a repository may sit in a subfolder, and one repository may hold several addons (like `npx skills add`). claude-ui looks for `addon.json` files up to three folders deep. One addon found: it installs at once. Several found: a list appears, you check the addons to install and choose **Install selected**. A broken `addon.json` is listed but cannot be checked. Each addon gets its own checkout, approval and updates. A local folder is not searched: its path must be the addon folder. Addons live on the Hub (the machine that runs claude-ui) and are active in every browser that connects to it. An addon in a project folder is never run: only addons you install here are. ## Approve what it can do {#approval} The card lists what the addon asks for, one plain line each, and the themes, views, commands and renderers it adds. An addon with effects has a line **Draws on** with the parts of the app it draws on (or **the whole window**). **Approve and enable** turns it on. Nothing runs before that. An addon can do only what you approve, and it can never send a prompt by itself. ## Update, turn off, remove {#update} * **Check for updates** (git addons) shows the new commit and the capabilities that were added or removed. **Update** applies exactly that version. * A version that asks for a capability you have not approved stays off until you approve it. A local folder is read again whenever you open the dialog: an edit that adds a capability needs approval too. * The switch turns an addon off without removing it: its themes, panes, band, commands and renderers disappear at once. **Uninstall** removes it, and its checkout for a git addon. * In the dialog, each row has a labelled **Enabled** switch and a labelled **Dev mode** switch. A long description shows two lines; **Show more** and **Show less** toggle the rest. * A row in **Error** shows why the addon does not load (a folder that is gone, a broken manifest). * Repository URLs are shown without a user name or password. ## What an addon can do {#capabilities} | Capability | What it allows | | --- | --- | | `session.read` | Read the messages and tool results of the session it is shown in | | `prompt.insert` | Put text in the prompt box (it never sends it) | | `ui.status` | Show a text in the status bar | | `ui.toast` | Show short messages | | `ui.pane` | Show panes next to the conversation | | `ui.band` | Show a band above the prompt box | | `ui.command` | Add slash commands `/:` | | `ui.effect` | Draw animated [canvas effects](#effects) over parts of the app or the window (it sees their size and state, never their content) | | `render.fence:` | Draw code blocks of that language | | `render.tool:` | Draw the results of that tool | | `net:` | Connect to that origin (for example `https://api.github.com`) | ## How an addon is kept apart {#security} * Each view runs in an iframe with `sandbox="allow-scripts"`: no cookies, no storage, no access to the app. It never gets the daemon token. * The daemon serves its files at `/addon///…`, only while the addon is enabled. The content security policy allows scripts, styles, images and fonts from the addon's own folder, and `fetch`/XHR only to the `net:` origins you approved. This limit is not complete: browsers do not apply the policy to WebRTC, so treat an addon that can read your session (`session.read`) as trusted code. An API that an addon calls must allow the request origin `null` (CORS). * Every request from a frame goes through the capability gate. Anything not in the table above (sending a prompt, files, shell, git, permission answers) is refused whatever you approved. A refused call shows a toast once per addon and is listed under the addon's row in the dialog (this browser, in memory). * An addon's stylesheet cannot load images or other styles from outside: the app's own policy blocks them. ## The manifest {#manifest} `addon.json` at the root of the repository or folder. No build: files are used as committed. | Field | Meaning | | --- | --- | | `name` | Lowercase letters, digits and `-`, up to 64. The namespace of commands and pane ids. Never changes between versions | | `version`, `description` | Shown in the dialog | | `capabilities` | The list above; every entry that needs one must be covered | | `assets` | `{: {path, label?}}`: image files the addon names by id, see [assets and background](#background). `path` may point to a file that does not exist yet | | `claudeUi` | Version range of Claude UI the addon works with, see [compatibility](#compat). Absent: any version | | `themes` | `[{id, name, light?, dark?, vars?, background?, options?, slots?, extends?, css?}]`, see [themes](#themes), [slots](#slots) and [extends](#extends). `css`: a `.css` file that applies only while this theme is picked, in the [`addon` cascade layer](addon-parts#cascade) | | `css` | Legacy. A `.css` file applied while the addon is enabled, whichever theme is picked, in the [`addon` cascade layer](addon-parts#cascade). Its `:root` and `.dark` rules also reach the built-in themes: use `themes[].css` for a theme | | `views` | `[{id, title, entry, kind: "pane" \| "band", phone?}]`. `phone: false` hides the view below 640 px | | `commands` | `[{name, description, argumentHint?}]` | | `commandsEntry` | The `.html` that handles commands; the first view's entry when absent | | `renderers` | `[{fence \| tool, entry}]` | Paths are relative, without `..`, and must exist (an `assets` path is the exception: see [assets and background](#background)). A view needs `ui.pane` or `ui.band`, a command needs `ui.command`, a renderer needs its `render.fence:` or `render.tool:` capability; the install says which is missing. ## Talking to claude-ui from a view {#bridge} A view is an HTML file that loads its own script (inline scripts are blocked). It sends `{v: 1, id, type, ...}` to `parent` with `postMessage` and gets `{v: 1, id, ok, result}` or `{v: 1, id, ok: false, error: {code, message}}` back. | Request | Needs | Effect | | --- | --- | --- | | `ui.ready {height}` | nothing | Height of a band or a drawing (24-480 px, a band at most 160) | | `session.read` | `session.read` | `{parts}` of the session; later `session.parts` events carry new or changed parts | | `prompt.insert {text}` | `prompt.insert` | Text up to 32 KiB into the prompt box (or the draft) | | `ui.status {text}` | `ui.status` | A status bar entry up to 80 characters; `null` clears it | | `ui.toast {text}` | `ui.toast` | A toast up to 200 characters | Events from claude-ui: `init {addon, view, role, session, theme, mode}`, `theme.changed {theme, mode}`, `command.run {name, args}`, `render {fence: {lang, source}}` or `render {tool: {name, input, result}}`, `session.parts`. **Act only on messages whose `event.source` is `parent`:** every other frame of the page (another addon, an Artifact preview) can post to your frame too. The SDK below drops such messages. ## The SDK {#sdk} `packages/addon-sdk/` in the repository has two files: `claude-ui-addon.js` (plain JavaScript, no build) and `claude-ui-addon.d.ts` (its types). Copy both into your addon folder and import the first from your view's script: ```js // @ts-check import { watchSession, setStatus, autoHeight } from "./claude-ui-addon.js"; autoHeight(); // a band or renderer: tell claude-ui the height of the content watchSession((parts) => setStatus(`${parts.filter((p) => p.type === "turn_result").length} turns`)); ``` | Export | Does | | --- | --- | | `call(type, payload)`, `on(type, fn)` | Any request; any event (`on` returns a function that removes the handler) | | `readSession()`, `insertPrompt(text)`, `setStatus(text)`, `toast(text)`, `log(text, level)`, `ready(height)` | One request each | | `watchSession(fn)` | Reads the session after `init`, then calls `fn` with all parts on every change | | `autoHeight()` | Sends the content height now and whenever it changes | | `AddonError` | What a refused request rejects with; `code` is `refused`, `bad_request` or `unknown` | The SDK also sets the page's `color-scheme` to the app's light or dark mode. With `// @ts-check` at the top of a script, VS Code and `tsc --checkJs` report an unknown request, a wrong payload or a field a part does not have. The types change with claude-ui: copy the files again after an update. To have Claude write an addon for you, install the `addons` plugin from this repository's marketplace (`/plugin marketplace add cuonghuunguyen/claude-code-ui`, then `/plugin install addons@claude-ui`) and ask for one: its `write-addon` skill scaffolds the folder, copies the SDK and checks the types. ## Themes {#themes} A theme has a `light` and a `dark` palette; you may leave a mode out (like Dracula, which has no light), but a mode you give must be complete: installing an addon with an incomplete or non-`#rrggbb` palette fails and names the missing key. A palette has all of these keys, each a `#rrggbb` colour: `bg`, `card`, `side`, `fg`, `muted`, `border`, `primary`, `pfg`, `kw`, `str`, `fn`, `type`, `num`, `cmt`, `varc`, `err`, `warn`, `ok`, `info`. The theme appears in **Settings › Appearance** after the built-in ones, only while its addon is enabled. If you turn the addon off while its theme is picked, the default look shows until you pick another. Diffs and the terminal keep the default colours for an addon theme. To style the app beyond colours with `css`, select the stable [parts](addon-parts) (`[data-part="tab"]`), not class names or `data-testid`. A palette may also have a `graph` key: a list of exactly 8 `#rrggbb` colours for the lanes of the Git graph (`--graph-1` to `--graph-8`). The first 6 also colour the context meter (`--context-1` to `--context-6`) unless `vars` sets them. Without `graph`, the default colours stay. Give each colour at least 3:1 contrast on `card`. `vars` adds your own CSS custom properties, per mode: `"vars": {"light": {"--glow": "none"}, "dark": {"--glow": "0 0 12px #00e5ff"}}`. Use them in your `css` with `var(--glow)`. A var applies only while the theme is picked, in a mode that has a palette. Rules: at most 64 per mode; a name matches `--[a-z][a-z0-9-]*` (up to 41 characters after the dashes); the name may not be one the palette sets (`--background`, `--primary`, `--syntax-*`, `--graph-*` and so on: use the palette keys for those; `--context-*` are allowed); a value has 1 to 200 characters, no `;` `{` `}` `<` `>` `\` `@` or newline, no `/*`, balanced brackets and quotes, and no function that loads an image (`url()`, `image-set()` ...: images come with a later `background` field). Installing an addon that breaks a rule fails and names the var. A theme may have its own `css` file. It applies only while that theme is picked, so it cannot change another theme, a built-in one included. Write plain selectors: `:root`, `html` and `.dark` still mean the page root, other selectors match inside it. `@font-face` and `@property` stay global (they belong to no theme and join the addon layer, so give them names with your addon name as prefix: an `@font-face` family the app also uses would be replaced under every theme). The names of your `@keyframes`, `@counter-style` and `@font-palette-values` are renamed for you per theme (`spin` becomes `---spin`, and `animation`, `list-style` and `font-palette` follow), so they cannot replace the app's own. A selector that starts with `*` (`*`, `* > .a`) also matches the page root. `::-webkit-scrollbar` and other selectors that name no element match inside the root only: start them with `:root`. `@import` is dropped. The file is rewritten when the app loads it (CSS nesting; needs Chrome 120, Safari 17.2 or Firefox 117, older browsers show the palette only). A file with a syntax error (unclosed `{` or comment) or over 512 KB is served empty: the theme keeps its palette and loses its rules, and the Addons dialog shows a check. Moving an old addon: a top-level `css` applies under every theme and overrides the other themes too. Move its rules into `themes[].css` of the theme that should have them (the Addons dialog warns `top-level-css`). A theme may declare up to 8 `options`: a control each in **Settings › Appearance** while the theme is picked. `id` is lowercase words joined by `-` (up to 24 characters), `label` 1 to 40 characters. `type` is one of: | `type` | Fields | Control | `--opt-` | `data-opt-` | | --- | --- | --- | --- | --- | | `boolean` (or absent) | `default?` (`true` when absent) | switch | `1` or `0` | `on` or `off` | | `select` | `choices: [{value, label}]` (2 to 12; `value` `[a-z0-9-]+`), `default?` (one of the values, else the first) | select | the value | the value | | `range` | `min`, `max`, `step`, `default` (numbers, at most 3 decimals, `min` < `max`, `step` > 0, `default` inside) | slider with its value | the number | none | | `color` | `default` (`#rrggbb`) | colour input | the hex | none | While the theme is picked, `` has these custom properties (and attributes); those of other themes' options are removed. Use them in your `css`: `:root[data-opt-rain="off"] .rain { display: none }`, `opacity: calc(var(--opt-density) * 0.4)`. The choice is kept in this browser; a stored value that does not fit the option (an old value, a removed choice, a number outside `min` to `max`) is replaced by the default. ## Assets and background {#background} `assets` names image files by id: `"assets": {"bg-dark": {"path": "art/dark.jpg", "label": "Dark background"}}`. The id is lowercase words joined by `-` (up to 24 characters), at most 16 assets. The path is relative and ends in `.png`, `.jpg`, `.jpeg`, `.webp`, `.avif`, `.gif` or `.svg`. **The file may be missing**: the user adds it later, so an addon repository does not have to ship art it has no right to share. The Addons dialog warns `asset-missing` until the file is there and `asset-large` over 2 MB. A file that exists must be inside the addon folder (a link out of it makes the manifest invalid). A theme `background` puts one of these images behind the app: ```json "background": { "light": { "image": "bg-light" }, "dark": { "image": "bg-dark", "mobile": "bg-phone" }, "veil": 0.4, "panelAlpha": 0.8 } ``` * `light`, `dark`: the `image` shown in that mode, and optionally a `mobile` image used below 768 px. Both are ids from `assets`; an unknown id makes the manifest invalid. * `veil` (0 to 1): how strongly the page background colour covers the image, so text stays readable. Default 0. * `panelAlpha` (0 to 1): how opaque the main panels (sidebar, title bar, session panel, prompt box, side panel) are over the image. Default 1, fully opaque. Your CSS can change `--panel-alpha`. The background shows only while the theme is picked and the image file of the current mode exists. Without the file the theme works as if it had no `background`, and the panels stay opaque. The image is part `backdrop` (`
`, fixed behind the app) and `` has `data-backdrop` while it shows, so your CSS can adapt. ## Slots: your own loader, done icon, send icon and Thinking text {#slots} A theme may replace four small things of the app. `slots` goes in the theme: ```json "assets": { "ring": { "path": "art/ring.svg" }, "tick": { "path": "art/tick.svg" } }, "themes": [{ "id": "void", "name": "Void", "dark": { "...": "..." }, "slots": { "loader": "ring", "done-icon": "tick", "send-icon": "ring", "thinking-phrases": { "en": ["Casting", "Expanding"], "vi": ["Đang niệm chú"] } } }] ``` | Slot | Value | Shown instead of | | --- | --- | --- | | `loader` | An asset id | The spinner of a running tool call, a running session in the sidebar and a running tab. The part is [`loader`](addon-parts) | | `done-icon` | An asset id | The check of a finished tool call. The part is [`done-icon`](addon-parts) | | `send-icon` | An asset id | The arrow of the send button. The Stop, Queue and offline icons stay. The button keeps its name for screen readers | | `thinking-phrases` | `{: [phrases]}` | The "Thinking" text of the working row | * An image slot names an id of [`assets`](#background); an unknown id makes the manifest invalid. The file may be missing: the app then keeps its own mark and the Addons dialog warns `asset-missing`. Use `.svg`, `.png`, `.webp`, `.avif` or `.gif`. * The image is decorative (empty `alt`, hidden from screen readers) and sized like the mark it replaces (16 px). It does not spin by itself: animate it in your `css` (`[data-part="loader"] img { animation: ... }`, with `@media (prefers-reduced-motion: reduce)` or `:root[data-motion="off"]`), or use an SVG that animates itself. * Phrases: 1 to 4 languages, a language is `en`, `vi` or any `xx` / `xx-XX` (the app's languages are `en` and `vi`), 1 to 12 phrases each, each 1 to 60 characters of plain text (no `<`, `>` or line break). The list of the UI language is used (`pt-BR` before `pt`); a language without a list keeps "Thinking". One phrase is picked per turn from the list, the same phrase until the turn ends, so nothing flickers and nothing moves. * `` has `data-slot-loader`, `data-slot-done-icon`, `data-slot-send-icon` and `data-slot-thinking-phrases` while that slot is in effect (the file exists; for phrases, a list exists for the UI language). Your CSS can adapt, for example hide a ring the image replaces. ## Extend another theme {#extends} `extends` lets a theme build on another one, so a variant needs only what differs: `"extends": "void"` (a theme of the same addon) or `"extends": "pack:void"` (a theme of the enabled addon `pack`). The theme starts from the base and adds its own on top; the theme's own wins: * `css`, `vars`, `background`, `slots` and `options` of the base apply under the theme's own. A base `css` is loaded under the extending theme, so its rules reach it. The renamed `@keyframes`, `@counter-style` and `@font-palette-values` of a base `css` can be used by the theme's own `css` under their plain name (`animation: spin 1s`). * The palette is not inherited: a mode the theme gives is its own. A mode it does not give uses the palette of the base. * A base may extend another base, at most 3 links in all. When the base cannot be used (no such theme, its addon is not installed or not enabled, a loop, more than 3 links) the theme works without it and the Addons dialog warns `extends-missing`. A malformed value, a theme that extends itself and a loop between themes of the same addon make the manifest invalid. ## Compatibility with Claude UI {#compat} `claudeUi` says which versions of Claude UI the addon works with: `"claudeUi": ">=1.6"`. Forms: `*` (any), `1.6.0` (exactly), `>=1.6` or `>=1.6.2` (this or newer), `^1.6` (same major version, 1.6 or newer), `~1.6` (same minor version). Leave it out and any version is accepted. Outside the range the addon shows the state **Error** with `needs Claude UI >=1.6 (this is 1.5.0)`, it is not enabled and none of its files are served, but it stays in the dialog (a git addon can still check for an update). A source checkout of the app (version `dev`) accepts every range. ## Panes, band and commands {#views} * A `pane` view is a pane like Files or Plan: it starts in the side panel, moves to the bottom panel or the main area from its tab menu, and has one tab per session in the main area. The narrow pane switcher lists it. * A `band` view sits above the prompt box of every session. * A command `/example:cmd` is listed in the `/` picker, runs in the browser and is never sent. A command never hides a built-in command or a skill: its row is left out when the name is taken. ## Drawing code blocks and tool results {#renderers} A `fence` renderer draws the code blocks of one language in assistant answers and in your own messages, before the built-in renderers (also the Mermaid diagram). A `tool` renderer draws the result of one tool. Each drawing has a **Show raw** button for the built-in view. The frame is created only when the block is near the screen. If two addons draw the same thing, the Addons dialog has a picker; until you pick, the first by name wins. ## Canvas effects on parts of the app {#effects} Capability `ui.effect`. An effect is an HTML page of the addon that draws on its own canvas. The app places it over a part of the app (`target`: a part name) or over the whole window (`target: "window"`), sends it only the size, state flags and public `data-*` attribute values of that part, short pulses and the theme colours, never text or session data. The frame gets no pointer or keyboard events: clicks, scroll and typing go to the app below it. ```json "capabilities": ["ui.effect"], "effects": [{ "id": "aura", "target": "prompt-box", "entry": "effects/aura.html", "bleed": 24, "when": { "focus-within": true } }] ``` * `target`: `window` or a part that does not scroll: `titlebar`, `sidebar`, `work-area`, `session-area`, `session-header`, `side-panel`, `files-panel`, `graph-panel`, `terminal`, `permission-panel`, `question-panel`, `prompt-box`, `prompt-toolbar`, `send`, `context-meter`, `status-bar`, `focus-page`, `scroll-to-bottom`. Any other name never shows (the Checks list says so). * `layer`: `above` (default) or `below`, only for `window`: drawn behind the app, visible where the panels let it through (the theme sets `--panel-alpha` in its `vars`, as with a background image). * `bleed`: pixels beyond the part on each side, 0 to 64. * `when`: shown while every key matches: `focus-within`, `hover` (booleans), `attr:` (`true` present, `false` absent, or a value). Only the [public state attributes](./addon-parts.md) of the target are read: `data-state`, `data-phase`, `data-just-finished`, `data-focus-opened`, `data-active`, `data-status`, `data-level` where the part has them; for `window` the `data-phase` of the page. * `watch`: more of those attributes to receive in `effect.state`. `option`: a boolean theme option of the addon that turns the effect on and off. * Limits: one frame per part and addon, three per addon; the canvas at most 1.2 megapixels (pixel ratio at most 2); paused while the part is off screen or the tab hidden; one static frame under reduced motion. An effect that takes more than 8 ms per frame for 10 s is stopped with a toast until the page reloads. * The SDK runs it: `defineEffect({ frame(ctx, fx) { … }, pulse(name, fx) { … } })` sizes the canvas, runs the animation loop, pauses, fades out and reports the frame cost. ## Write and check an addon {#authoring} Run `claude-ui addon dev ` once: it installs the folder in Dev mode (the daemon watches it) and enables it when it declares no capabilities. It prints the lint warning count and a line `preview: http://127.0.0.1:/#/addon-preview`. Every edit of a file in the folder reloads the manifest, the lint and the CSS without a page reload. Open the **preview page** (that URL, or **Open preview** on the addon's row in Settings › General › Addons). It shows every [part](addon-parts) in every state with the app's own components and sample data: a session that runs, waits for a permission or a question, just finished, is idle or in error; a tool card in each of its six statuses; the tab, sidebar row and send button states; the three plan usage levels; the Focus page; the toast and the command palette. Pick your theme and **Light**, **Dark** or **System** at the top of the page, edit your CSS and watch the page change. **Replay animations** restarts the 1.2 second `data-just-finished` and `data-focus-opened` states. The graph, changes, commit message and terminal need a daemon: the page shows static stand-ins with the same part names and attributes. Lint warnings of the addon are under **Checks** in Settings › General › Addons. ## The example addon {#example} `examples/addons/example/` in the repository uses the SDK and shows every feature: a theme, `theme.css`, a pane that counts the parts of the session and has a button for each bridge call, a band with the number of turns and the last tool, `/example:cmd`, and a renderer for ` ```example ` blocks. Install it as a local folder. ## Claude Code mods {#claude-code-mods} A Claude Code *mod* is a plugin with a hooks module that hooks engine events and can draw panes, a band, a status entry and toasts in Claude Code's own windows. It is not an addon. What claude-ui does with one (checked on Claude Code 2.1.285, the version bundled with claude-ui, with a throwaway mod): * Its hooks module loads only when claude-ui is started with `CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1` in the environment; without it the mod does nothing in a claude-ui session. * With it, the engine hooks run in claude-ui sessions (tool calls, prompts, session start). A command the mod registers works when you type it, but is not listed in the `/` picker. * Its panes, status entries and toasts reach claude-ui as small system messages, and claude-ui draws none of them: the timeline shows a gray line such as `system/ui_status`. A mod's pane has no content here. To change claude-ui itself, write an addon. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/aside.md --- # Ask an aside Ask a side question about a session without touching it. An **aside** is a copy of the session that knows everything up to now. It answers in a floating popup while the session stays usable behind it. ## How to use 1. In a session, type `/btw` and your question in the prompt box, then press Enter. Or run **Ask aside** in the [command palette](palette). While a permission or question panel replaces the prompt box, **Ask aside** shows a one-line input. 2. The popup opens at once and starts to answer. It has its own timeline, a prompt box for follow-ups, and its own permission and question panels. 3. Drag the popup by its header, resize it by its corner, or click **Minimize aside** to fold it into a chip at the bottom right. 4. **Close aside** deletes the aside. 5. **Keep as session** turns it into a normal session: it gets a title in the sidebar and opens as a tab, and the popup closes. ## Good to know * It works while Claude runs a turn. The turn goes on undisturbed. The aside sees the session up to the last complete reply, not what Claude is writing now. A session with no reply yet cannot be asked. * An aside is read-only: Edit, Write and NotebookEdit are off, and it starts no workers. Other tools run in the default [mode](permissions), so Bash and others ask. Changing its permission mode lifts the read-only limit. * Its requests show in its popup only, never in the session's panels. [Focus](focus) lists them as "Aside: *title*"; **Open** brings the popup forward. * Several popups can be open. A popup shows only while its session's tab shows. Open popups are not restored after a page reload. * On a phone the popup fills the screen. * `/btw` and `/clear` do not work inside an aside. Images in the question are not sent. * An aside that is not kept is not listed and is deleted when it is not needed any more, also after a browser close or a restart, so it does not show in `claude --resume`. * To talk about parts of one reply in several asides and send the decisions back, use [Discussion mode](discussion). --- --- url: https://claudecodeui.cuonghuunguyen.app/features/background-shells.md --- # Background shells A shell command can run in the background: the turn goes on, the command keeps running, and its end is reported to Claude. ## Move a command to the background * On the card of a running Bash command, click **Run in background**, or press Ctrl+Shift+B (⌘ Shift B on a Mac) while the session runs one. The card becomes a background shell card. Cards of Bash commands that a subagent runs have the button too. * A `!` command of [bash mode](prompt-box#bash-mode) has the same button. * While Claude works, a `!` command you type waits in the queue like a message and runs when the session is idle. ## The shells list 1. Click **N shells** (or **N tasks**) in the status bar under the prompt box, run **Background tasks** in the [command palette](palette), or type `/tasks` (or `/bashes`) in the prompt box. 2. The list shows every shell of the session, running ones first, with command, description, status (running, completed, failed or killed) and run time. 3. Open a shell to read its output. It updates live while the shell runs. A shell started before `/clear` still shows its output. 4. **Kill** stops a running shell after you confirm. 5. Background [inline tasks](inline-tasks) are listed below the shells under **Inline tasks**, with status, model, turns and tokens. Click one to jump to its card in the conversation. **Stop** ends a running one after you confirm; Claude learns of it with your next message. ## Good to know * **Stop** or Esc stops the turn, not the background shells. * A running shell counts as work: the session shows as working, and is not closed as idle. * Claude learns of a shell you killed with your next message. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/changes.md --- # Changes & diffs The **Changes** pane shows what changed, as diffs, file by file. ![The Changes panel with a diff](/screenshots/changes.png) ## How to use 1. Open the side panel and pick **changes** (or press Ctrl+Shift+G). 2. Choose a **diff mode**: | Mode | Shows | | --- | --- | | **Session changes** | What Claude changed in this session | | **Uncommitted** | Your uncommitted git changes | | **Against branch** | Everything that differs from a branch you pick | 3. Click a file in the list, or use ← / → for the previous or next file. The tab opens in **Uncommitted** unless you saved another default in [Settings › Layout › Changes](../reference/settings#changes). ## Repositories A project folder can hold several repositories: nested ones, or submodules. In the git modes, the **repository selector** in the toolbar shows the selected one (name and branch). It opens a tree: the project's own repository, its submodules, then the nested repositories. Pick one to see its changes. The choice is kept per project in this browser and is shared with the [Git graph](git-graph). * A project folder that is not a repository itself but holds some still gets the git modes. * A submodule with other commits than recorded shows a **submodule** badge instead of a text diff. One with uncommitted changes shows "modified content (N files)". An embedded repository folder shows a **repository** row. **Show changes in** *path* on these rows switches the selector. * Which repositories are found follows the settings in [Settings › Files & Git](../reference/settings#git-repositories). ## Tell Claude about a change * **Add to prompt:** right-click a row (long press, Shift+F10) and pick **Add to prompt**. It inserts the file as an `@` mention. Not for a deleted file. It is also in the menu in **Session changes** mode. * **Selection menu:** in the diff of a text file, select lines on the line numbers (click, Shift+click or drag). A small menu appears next to the selection: **Add to chat** or **Quote**. Alt+K (⌥ K on Mac) does the same as **Add to chat**. With **Add to chat** the prompt box gets the file name, the line numbers and the selected lines, removed lines marked `-` and added lines `+`. **Quote** adds the selected lines as a quote block. You edit it and send it. The same menu appears when you select text in a file editor. * Both are also in the [command palette](palette) (**Add file to prompt**, **Add selection to chat**), without a default key. ## Status badges Each row has a letter badge: **M** modified, **A** added, **D** deleted, **R** renamed. A new file that git does not track yet shows a red **U** (untracked) instead of **A**. A file you added to the index with `git add` stays **A**. ## Commit, roll back, resolve In **Uncommitted** mode a commit box sits above the list: check files, write or generate a message, **Commit** or **Commit and Push**, **Amend**, **Rollback**. A banner shows an unfinished merge or rebase with **Continue**, **Abort** and **Resolve with Claude**. See [Git operations](git). ## Good to know * **Uncommitted** and **Against branch** need a git repository. * **Files shown: Project / All:** only the session's folder, or the whole repository. * Switch between **Split diff** and **Unified diff**. Narrow screens always use unified. * Drag the edge of the file list to resize it, or focus it and press ← / →. Double click the edge to restore the width. It is kept per browser. * **Filter files** narrows the list by name. * A folder with a single child folder shows as one row (`src/components`). **View as list** shows the files flat, each by its path; **View as tree** goes back. The choice is kept per browser. * Pick the mode the pane opens in at [Settings › Layout › Changes](../reference/settings#changes). * The status bar under the prompt box shows the branch and a `+added −removed` count. --- --- url: https://claudecodeui.cuonghuunguyen.app/demo.md description: >- A 40-second video of claude-code-ui. It shows the install, sessions, the git graph, the command palette, workers and phone notifications. --- # claude-code-ui in 40 seconds A 40-second video of claude-code-ui. It shows the install, sessions, the git graph, the command palette, workers and phone notifications. ## What the video shows 1. **Install:** `npm install -g claude-code-ui`, then `claude-ui` prints a link and a QR code. See [Install & first run](./guide/install). 2. **Sessions:** many Claude Code sessions in tabs, grouped by project. See [Sessions & tabs](./features/sessions). 3. **Git graph:** branches and commits next to the chat. See [Git graph](./features/git-graph). 4. **Command palette:** every action from the keyboard. See [Command palette](./features/palette). 5. **Workers:** one session starts and drives others. See [Orchestration](./features/orchestration). 6. **Phone notifications:** a push when a session needs you. See [Notifications](./features/notifications). Next: [A quick tour](./guide/tour) of the screen, or [install it in 30 seconds](./guide/install). --- --- url: https://claudecodeui.cuonghuunguyen.app/features/clean-up.md --- # Clean up Close or remove many tabs, worktrees and workers at once, with a safety check for each. ![The Clean up dialog](/screenshots/clean-up.png) ## Clean up worktrees and workers 1. Open the [command palette](palette) and run **Clean up worktrees and workers…**. Or open a project's menu and pick **Clean up…**, or a coordinator's menu and pick **Clean up workers…** (see [Context menus](context-menus)). 2. Read the badge of each row: **Safe**, **Has work** (uncommitted files or unpushed commits, with counts) or **Blocked** (with the reason). 3. Tick the rows to remove. Safe worktrees and closed workers are ticked for you. Use **Older than** and **Only safe** to narrow the list. 4. Click **Remove N**. A summary lists what was removed and what was skipped, and why. ## Clean up tabs 1. Open the tab menu and pick **Clean up tabs…**, or run it from the palette. 2. Pick a rule: idle tabs, finished tabs, tabs of archived or deleted sessions, worker tabs, or tabs not used for 1 hour, 1 day or 7 days. Each rule shows how many tabs it closes. 3. A **Closed N tabs** toast appears. Click **Undo** to bring them back. To close the idle tabs of one group, right-click its group chip and pick **Clean up group** (see [Context menus](context-menus#group-chips)). On a phone, long press the close button. ## Good to know * Active, pinned, running and unread tabs, and tabs with an unsent draft, are always kept. Closing a tab does not stop its session. * Removing a worktree with work needs an extra tick: **Discard uncommitted files and unpushed commits**. A merged branch can be deleted with it (**Also delete branch**, off by default). * The scan is fast, and it does not slow the status bar. A branch that was squash-merged counts as merged, so its worktree is **Safe**. The status of a worktree is cached for display; removing always checks again. * Removing a worktree runs in the background: every queued row shows **Removing…**. * Any linked worktree inside your roots can be removed, also one made by hand or by another tool. A locked or symlinked one is **Blocked**. * **Clean up…** of a merged repository group (one repository on several Sides) lists the worktrees and workers of every Side. The main row of each Side has its own **Clean up…**. See [Merged repository group](projects#merged-repository-group). * A worktree tagged **External** is not in `.claude/worktrees` and is not ticked for you. --- --- url: https://claudecodeui.cuonghuunguyen.app/reference/cli.md --- # CLI flags ```sh claude-ui [options] claude-ui update # install the latest version; the next start runs it claude-ui # ask the running daemon (below) ``` Example: ```sh claude-ui --port 5000 --roots ~/projects:~/oss ``` ## Commands They talk to the daemon running on this computer. They never start it and never create the token file. | Command | Does | | --- | --- | | `status` | Daemon up, version, port, sessions by state | | `open [sessionId\|path] [--print]` | Open claude-ui in the installed app, else in your browser. `--print` prints the link instead. Without an argument the link holds the pairing token. A session id gives a plain link for a browser that is already paired. An existing file opens in the running UI as a file tab; a file outside `--roots` asks in the browser to open it read-only. An existing folder asks the UI to add it as a project (a folder that is already a project opens it); a folder outside `--roots` is refused. An argument that looks like a path (absolute, contains `/`, starts with `.` or `~`) and does not exist exits 2; any other argument is a session id | | `sessions` (`ls`) | List sessions. `--project `, `--state `, `--archived` (also show archived ones) | | `projects` | List projects | | `workers` | List orchestration workers by coordinator | | `addon dev ` | Install a local folder as an addon in Dev mode (the daemon watches it and reloads CSS and frames on every edit). An addon without capabilities is enabled at once; one with capabilities waits for your approval in Settings › General › Addons. Run again on the same folder to reuse the install. It prints the preview page URL (`preview: http://127.0.0.1:/#/addon-preview`, no token). `--json` prints name, state, preview and lint | Options of every command: `--json` (machine-readable; fields may be added), `--port ` (default: the port of the running daemon from `daemon.json`, else `PORT`, else `4280`), `--token-file ` (default: `CLAUDE_UI_TOKEN_FILE`, else `token` in the config folder). Exit codes: `0` ok, `1` the daemon refused (for example an unknown session id), `2` wrong usage, `3` daemon not running or token missing or rejected. Only `open --print` writes the token to the terminal. After `claude-ui update` the global `claude-ui` command stays the old one: run `npm i -g claude-code-ui` to get the new launcher. An old launcher treats a command that fails within 10 seconds (for example `status` with no daemon running) as a broken new version. Not yet: `new`, `send`, `tail`, `interrupt`, `doctor`, `logs`, `stop` (names reserved). A daemon on Windows cannot be reached from WSL; run `claude-ui` in PowerShell. ## Flags | Flag | Environment variable | Default | Does | | --- | --- | --- | --- | | `--port ` | `PORT` | `4280` | Port to listen on | | `--roots ` | `CLAUDE_UI_ROOTS` | your home folder | Folders that sessions, files and terminals may use. Separate them like `PATH`: `:` (Windows: `;`) | | `--tailscale` | `CLAUDE_UI_TAILSCALE=1` | off | Serve on your tailnet with `tailscale serve` and print the HTTPS link. See [Phone & remote access](../features/remote-access) | | `--hostname ` | `CLAUDE_UI_HOSTNAME` | | HTTPS name of your own proxy in front of the daemon. Cannot be used with `--tailscale` | | `--lan` | `CLAUDE_UI_LAN=1` | off | Also listen on the local network, plain HTTP | | `--allow-bypass` | `CLAUDE_UI_ALLOW_BYPASS=1` | off | Offer the "Bypass permissions" mode | | `--no-update-check` | `CLAUDE_UI_UPDATE_CHECK=0` | check on | Do not check npm for a new version | | `--no-os-notify` | `CLAUDE_UI_OS_NOTIFY=0` | on | No desktop notifications on this computer | | `--no-open` | `CLAUDE_UI_OPEN=0` | open | Do not open the web UI in this computer's browser at start. It never opens after an update restart, over SSH, or on Linux without a display | | `-v`, `--version` | | | Print the version | | `-h`, `--help` | | | Print the help | A flag wins over its environment variable. Both win over the options saved in Settings › Launcher (port, roots, Tailscale, LAN, bypass, update check, desktop notification, open browser), which apply from the next start. Settings › Launcher also adds a launcher shortcut to Applications (macOS), the app menu (Linux) or the Start menu (Windows): a click opens claude-ui in the installed app (or the browser) when it runs, else starts it in a terminal. ## Environment variables Only as environment variables: | Variable | Default | Does | | --- | --- | --- | | `CLAUDE_UI_IDLE_CLOSE_MINUTES` | `10` | Close the Claude process of an idle session that no tab shows after this many minutes. `0` = never. The next prompt resumes it. | | `CLAUDE_UI_UPDATE_REGISTRY` | npm | An npm registry mirror for updates. Must be `https://` (plain `http://` only on localhost). | | `CLAUDE_UI_CLAUDE_BIN` | the bundled one | Path to a different Claude Code binary. | ## Files The **config folder** holds the daemon's own data: | OS | Config folder | | --- | --- | | Linux, macOS | `$XDG_CONFIG_HOME/claude-ui`, else `~/.config/claude-ui` | | Windows | `%APPDATA%\claude-ui` (or `~/.config/claude-ui` if that folder already exists or `XDG_CONFIG_HOME` is set) | | File | Holds | | --- | --- | | `daemon.json` | Port, pid, version and start time of the running daemon (no token). Removed when it exits | | `token` | The pairing token. Delete it and restart to unpair every browser. | | `projects.json` | Your project list | | `sessions.json` | Each session's model, mode, effort and worker links | | `settings.json` | App-wide settings (see [Settings](settings)) | | `vapid.json`, `push-subscriptions.json` | Push notification keys and subscribed browsers | | `sides.json`, `side-pack/` | WSL and Docker sides | | `versions/` | Installed updates | Session history itself is not here. It stays in Claude Code's own transcripts in `~/.claude/projects/`. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/palette.md --- # Command palette One search box for commands, sessions, files and message text. ![The command palette](/screenshots/palette.png) ## How to use 1. Press Ctrl+K (⌘ K on Mac), or Ctrl+Shift+P, or click the search icon at the top right. 2. Type a few letters. 3. Pick a row with the arrows and press Enter. ## What it finds | Group | Examples | | --- | --- | | **Commands** | New session, New worktree…, Toggle terminal, Show git graph, Toggle signal only, Open settings, Show guide, Open Focus, Stop, Change model, Change thinking effort, Change permission mode, Rewind, Switch Claude account…, Open in file manager, Add file to prompt, Add selection to chat, Open file by path… | | **Git** | Git: Commit, Git: Push, Git: Rollback…, Git: New branch…, Git: Checkout…, Git: Smart checkout…, Git: Stash…, Git: Annotate (Blame), Git: Merge…, Git: Rebase… | | **Customize** | MCP servers, Slash commands, Manage plugins | | **Sessions** | Your sessions, newest first | | **Files** | Files of the current project | | **Messages** | Text inside your sessions, newest first | ## Good to know * Only commands that make sense right now are listed. For example, Rewind is hidden while Claude works. * The git commands show in a git repository. Rollback, Checkout, Merge and Rebase open the matching dialog or the branch list in the Git graph, so you pick the branch there. **Add selection to chat** shows while diff lines are selected in Changes, and **Switch Claude account…** with two or more accounts. * The Rollback, New branch, Checkout, Smart checkout, Stash, Annotate, Merge, Rebase, Open in file manager, Add to prompt, Add selection to chat, Open file by path… and Switch account commands have no default key. Bind one in **Keyboard shortcuts**. * Each command shows its keyboard shortcut. All of them are on the [Keyboard shortcuts](../reference/shortcuts) page. * To open a file directly, Ctrl+P (**Open file**) is faster. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/context-menus.md --- # Context menus Right-click (or long press, or Shift+F10 on the focused row) a project, worktree, worker, session or tab for its actions. ![The context menu of a project row](/screenshots/context-menu.png) ## Sidebar | Row | Items | | --- | --- | | Project | New session, New worktree (at once, generated name), Create worktree…, Needs attention only, Archive idle sessions older than 1, 7 or 30 days, Clean up…, Remove from list (files stay) | | Worktree | New session, Needs attention only, the same archive items, Delete worktree… | | Session | Rename, Archive, Copy session ID, Close tab, Delete… | | Worker | Close worker, Remove worker… (with an option to remove its worktree too) | | Coordinator, or its "N workers" row | Close finished workers, Remove closed workers…, Clean up workers… | **Needs attention only** lists sessions that run, need input, are unread (finished or failed since you last looked) or are open. Every project stays listed. A chip under the search field says how many sessions are hidden, with **Show all**. On a narrow screen, the **⋯** button of a project or worktree row lists the same items. ## Tabs Right-click a session tab: * **Close tab**, **Close others**, **Close to the right** and **Close all** show a **Closed N tabs** toast with **Undo**. Pinned tabs stay. * **Pin tab** keeps the tab first in its group, as an icon without a close button. * **Copy session ID** and **Reveal in sidebar**, which shows and focuses the session's row. * **Split right** and **Split down**, see [Split view](split-view). The close and pin commands are also in the [command palette](palette) and can be bound in [Keyboard shortcuts](../reference/shortcuts). More ways to close many tabs: [Clean up](clean-up). ## Group chips Right-click a group chip (the project name in front of its tabs): * **Move group left** and **Move group right**. * **Clean up group** closes the idle tabs of that group. * **Close other groups** and **Close group**. ![The right-click menu of a group chip](/screenshots/group-menu.png) With **Compact tabs** on ([Settings › Layout › Tabs](../reference/settings#tabs)), hovering or clicking the chip opens a menu that lists only the group's tabs. The group actions above stay in the chip's right-click menu. ## Files The file tree has its own menu, see [Files](files#file-tree-menu). ## Good to know * Archiving idle sessions asks first and names the count. A coordinator is archived only when it and all its workers are idle. * **Close finished workers** does not ask. **Remove closed workers…** and **Remove worker…** do. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/discussion.md --- # Discussion mode Talk about parts of one reply in side chats, then send the decisions back to the session as one turn. The session keeps working meanwhile. ![A reply with two Points: one with its outcome, one still open](/screenshots/discussion.png) ## How to use 1. Click **Discuss** on a reply (the chip in the reply action row), or select text in a reply and click **Discuss**. The chip opens a **Point** on the whole reply. The selection opens a Point on the selected text. 2. A Point is an [aside](aside) forked at the latest message of the session. Type your question in its popup. The first message creates the Point. 3. Add more Points on other parts of the same reply. A Discussion panel under the reply lists them, one row per Point, with status and outcome. 4. Press **Done** in a Point popup. The Point writes its **outcome**: at most 3 short lines. Click **Edit outcome** to change the text, then **Save**. 5. Press **End discussion** in the banner above the prompt box. The outcomes of all Points go to the session as one folded turn. The agent answers it. ## Good to know * After the outcome is written, **Done** only closes the popup. After more chat in the Point it reads **Regenerate** and writes a new outcome. A panel row of a Point you have not opened since the page loaded also offers **Regenerate**. * A selection Point is highlighted in the reply. Hover or tap the highlight to see its outcome. A whole-reply Point is a chip at the top of its panel. * **End discussion** first writes the outcomes of open Points, then sends. While the agent runs a turn, the send waits in the queue ("Discussion: N points"). **Cancel send** in the banner takes it back. * A normal message in the session also ends the discussion. The outcomes and your message go in the same turn. * **Cancel discussion** deletes all Points and their chats. Nothing is sent. * **Skip** leaves a Point out of the send. **Include** puts it back. **Delete point** removes it and its chat. Deleting the last Point removes the Discussion. * A failed outcome shows **Retry**. **End discussion** also tries failed outcomes again. * A Point is read-only like an aside, and it is told to discuss only that part, run no state-changing command and answer short. * A session has one open Discussion. Starting one on another reply asks "End the discussion on the other reply first?". **End and start** ends the first one and starts the new one. * After the send the panel folds to its header. **Show points** unfolds it. * Change an outcome after the send: the Point shows **Edited since sent**. **Send update** sends one more turn with the changed Points. * [Focus](focus) lists open Discussions as "Discussions · N", with **End discussion** (while no outcome is being written) and, for edited sent ones, **Send update**. **Open** scrolls to its panel. * Discussions are stored by the daemon. They survive a page reload and a restart. A restart during the send turns the Discussion back to open: press **End discussion** again. A message you typed is kept. * Not available on a Side, or for an Engine that cannot fork (same limit as an aside). * Points are not listed as sessions and have no **Keep as session**. --- --- url: https://claudecodeui.cuonghuunguyen.app/guide/faq.md description: >- Short answers about claude-code-ui, the open-source web UI for Claude Code. What it is, what it needs, phone use, parallel sessions, cost, privacy and how it differs from similarly named projects. --- # FAQ Short answers to the questions people ask most about claude-code-ui. For error messages, see [Troubleshooting](../reference/troubleshooting). ## About it ### Is there a web UI or GUI for Claude Code? Yes. claude-code-ui is a free, open-source (MIT) web UI for Claude Code. Run `npm install -g claude-code-ui`, start `claude-ui`, open the link it prints, and you use Claude Code in your browser: sessions in tabs, permission prompts as buttons, file tree, diffs, a git graph and a terminal next to the chat. It runs on your own machine. It is unofficial and not affiliated with Anthropic. ### What exactly is claude-code-ui? A small local server (the daemon) plus a web app. The daemon runs Claude Code sessions with the Claude Agent SDK on your computer. The web app, opened in any browser, shows and steers them. The npm package is `claude-code-ui` and the command is `claude-ui`. ### Is it the same project as CloudCLI ("Claude Code UI") or claudecodeui? No. Those are separate projects with similar names. This one is [cuonghuunguyen/claude-code-ui](https://github.com/cuonghuunguyen/claude-code-ui), published on npm as `claude-code-ui`, with the command `claude-ui`. See [How it compares](compare). ### Is it free? Yes. claude-code-ui is MIT licensed and has no paid tier. Claude itself is used through your own Claude subscription, as with the `claude` CLI. ## Setup ### What do I need to run it? Node.js 22 or newer and Claude Code logged in (`claude login`). On Linux and WSL also a C++ toolchain for the terminal panel (`sudo apt install build-essential python3`). Then run `npm install -g claude-code-ui` and `claude-ui`. See [Install & first run](install). ### Does it need an Anthropic API key? No. It uses your Claude subscription login from `claude login`, not an API key. ### Which operating systems does it support? Windows, macOS and Linux. On Windows, one install can also run sessions inside WSL distros, and on any system inside running Docker containers and on machines you reach over SSH. See [WSL, Docker & SSH](../features/wsl-docker). ### Does it work with sessions I started in the `claude` CLI or VS Code? Yes. Both read and write the same history in `~/.claude`. A session started in the CLI or the VS Code extension shows up in claude-code-ui, and the other way round. ## Using it ### Can I use Claude Code from my phone? Yes. Start the daemon with `claude-ui --tailscale` and scan the QR code it prints with your phone. You get an HTTPS link that only your own devices can reach, the app installs on the Home Screen, and push notifications tell you when a session needs you. See [Phone & remote access](../features/remote-access). ### Can I run many Claude Code sessions in parallel? Yes. Each session is a tab, grouped by project, and they all run at the same time in the daemon. Give each its own git worktree so they do not touch the same checkout. The [Focus page](../features/focus) lists every session that waits for an answer, across all projects. See [Projects & worktrees](../features/projects). ### Do sessions keep running when I close the browser? Yes. Sessions run in the daemon, not in the page. Close the tab, reopen it later and catch up. Stopping the daemon stops the running turn; the session and its history stay. ### Can one Claude Code session start and steer others? Yes, with orchestration turned on. A coordinator session starts worker sessions, each in its own worktree if you ask, and their questions and permission requests come to you. See [Orchestration](../features/orchestration). ### Does it support permission prompts, slash commands, skills and MCP servers? Yes. It behaves like Claude Code: the same permission prompts and modes, models, slash commands, skills, plugins, MCP servers and `/rewind`. See [Permissions & modes](../features/permissions) and [MCP, skills & plugins](../features/config-dialogs). ## Privacy and security ### Does my code go through a third-party server? No. There is no claude-code-ui server, account or telemetry. Your prompts go to Anthropic, the same as with the `claude` CLI. The only other call is a version check to npm, which you can turn off with `--no-update-check`. See [Privacy](../reference/privacy). ### Is it safe to expose it on the network? Treat access to the daemon like shell access to your computer. By default it listens on `127.0.0.1` only, every browser needs the pairing token, sessions stay inside `--roots`, and permission prompts are on. For a phone, use `--tailscale` rather than opening a port to the internet. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/files.md --- # Files The **Files** pane: a file tree and a simple editor for the session's folder. It lives in the side panel by default; it can also be a tab in the main area (see [Panes & layout](panes)). ![The file tree with cart.ts open in the editor](/screenshots/files.png) ## How to use 1. Open the side panel and pick **files** (or press Ctrl+Shift+E). 2. Click a file in the tree to open it in an editor tab. 3. Edit it and press Ctrl+S (⌘ S on Mac) to save. 4. To find a file by name, press Ctrl+P (**Open file**). ## File view * The tree shows a file-type icon and a git status mark (modified, added, untracked…) for each file. A file inside a nested repository or a submodule gets the mark of its own repository. A repository folder shows a repository icon and a submodule an archive icon; neither gets a single `U` from the parent. Right-click one for **Show changes** or **Show graph**: they switch the [repository selector](changes#repositories) of Changes and Git graph. * Open tabs and unsaved edits come back after a page reload. * A single click opens a **preview tab** (its title is in italics); the next single click replaces it. Double click the tab or the tree row, or edit the file, to keep it open. * A breadcrumb path and an unsaved marker (●) sit above the editor. Markdown files can show a rendered preview. An `.html` or `.htm` file has a **Source** and **Preview** toggle (see [HTML preview](#html-preview)). * Markdown preview shows tables at full height; the preview scrolls. A `
` section shows as a collapsible card with a chevron; it is closed unless it has `open`. * Binary and very large files show a clear message instead of opening. * **Filter files** and `@` in the prompt box also find files inside nested repositories and submodules. * With no file open, the tree fills the tab. From 672px of panel width the tree sits beside the editor; below that it is a drawer (the **Files** button or Ctrl+\\). ## File dialog Click **Pop out** in the Files tab to open the tree, tabs and editor in a large dialog. It is the same state: open tabs, unsaved edits, cursor and undo history carry over, and back (**Open in editor**). A **Read** card in the timeline, a file path in Claude's answer (`src/cart.js:12`) and **Open in file dialog** in the tree menu open the file there, at its line. A bare file name in Claude's answer (`cart.js`) opens the matching file of the project. The match ignores case. When several files match, a file picker opens filtered by the name. With no match, a **File not found** message shows. ## File tree menu Right-click (long press, or Shift+F10) a file or folder: | Item | Does | | --- | --- | | **New file…**, **New folder…** | Creates it in that folder. The same items are in the menu of empty tree space. | | **Rename** (F2), **Duplicate** | Renames or copies the file. | | **Delete** (Delete) | Deletes it after you confirm. | | **Cut**, **Copy**, **Paste** | Moves or copies files and folders. See [Copy, cut, paste and drag](#copy-cut-paste-and-drag). | | **Copy path**, **Copy relative path** | Copies the path. | | **Reveal in Finder** (**Reveal in File Explorer** on Windows, **Open Containing Folder** on Linux) | Shows the file or folder in the file manager of the computer that runs claude-code-ui. | | **Open in** *editor* | Opens the file or folder in VS Code, Cursor or IntelliJ IDEA, when it is installed on that computer. | | **Open with Default App** | Opens a file with the app your system picked for its type. Not for folders. | | **Open in tab** | Moves the file into its own tab next to its session (also middle click on the row). See [Panes & layout](panes#one-file-or-one-artifact-as-a-tab). | | **Add to prompt** | Inserts the file into the prompt box as an @mention. | | **Download** | Saves the file in your browser's downloads. Only for a file of an SSH or container [side](wsl-docker). A file of this computer or a WSL distro is already on this computer. Limit: 512 MiB; the browser reads it 1 MiB at a time. | ### Open in the file manager, an editor or the default app The three **Reveal**, **Open in** and **Open with Default App** items start a program on the computer that runs claude-code-ui, not on the computer of your browser. They show in every browser you paired (a phone, a Tailscale or LAN address too) for a file on that computer or in a WSL [side](wsl-docker). If nobody looks at that computer's screen, you see nothing happen. A Docker or an SSH side does not get them. A browser that is not on that computer shows **Open Containing Folder** instead of the name of the file manager. On Linux, **Open Containing Folder** opens the folder without selecting the file. The same items are in the menus of Changes rows. The command palette has **Open in file manager** (no default key) for the open file, the selected Changes row or the session folder. **Settings › Files & Git › Open in app** can add your own editor command. ## HTML preview An `.html` or `.htm` file tab has two buttons above the editor: **Source** (default) and **Preview**. The choice is per tab and comes back after a reload. * The preview shows the saved file: save to see your edits. It runs in the same sandbox as an artifact page: inline scripts run, network requests, remote scripts and links are blocked. * Images, styles and scripts next to the page load when the page is inside the project folder. A page outside it shows alone. * It works for files of a WSL, Docker or SSH [side](wsl-docker) too. * A jump to a line (a search hit) switches the tab back to **Source**. A file over 16 MiB has no preview. ## Open a file by path **Open file by path…** (command palette, no default key, and a button on the New session tab) asks for an absolute path and opens it as a file tab of no session. It works for a file inside a project and for any file outside. * The tab has no session actions: no **Add to prompt**, **Quote** or Alt+K. The breadcrumb shows as text. * A file outside the allowed folders ([`--roots`](../reference/cli)) asks first: "Open a file outside the allowed folders?". **Open read-only** opens it with a **Read-only** badge and no **Save**. The permission lasts until claude-ui restarts. Then the tab asks again. * Only a browser on the computer that runs claude-ui can open a file outside the allowed folders. A phone or a remote browser gets an error. * A folder is refused. The preview of images, media and HTML does not work for a file outside the allowed folders. UNC and device paths are refused. * From a terminal, `claude-ui open ` does the same (see [CLI flags](../reference/cli)). ## Copy, cut, paste and drag * **Copy** or **Cut** a row (menu, Ctrl+C or Ctrl+X; ⌘ on Mac), then **Paste** into a folder (menu on a folder or on empty tree space, Ctrl+V). A cut row is dimmed until you paste it. * Drag a row onto a folder to move it. It always asks first ("Move … into …?"). Hold Alt (Option on Mac) to copy. * It works across [sides](wsl-docker): copy a file on your computer and paste it into a WSL distro, a container or an SSH host. The bytes go through the browser, 1 MiB at a time. The dialog then says "Copy … into … on *side*?". * Files and folders dragged from your system into the tree are uploaded. Files pasted from your system clipboard are uploaded too. A folder pasted from the system clipboard is refused; drag it instead. * A name that exists in the target asks: **Replace**, **Skip** or **Keep both** ("name copy.ext"), with **Apply to all** when more clashes wait. **Replace** saves the replaced file in [Local history](timeline#local-history-file-timeline). * A progress line "Copying 12 of 340 files" with **Cancel** shows for a long copy. Cancel leaves nothing behind. Limits: 10,000 entries and 512 MiB per paste. Links are not copied between machines. ## Find in files Ctrl+Shift+F (⌘ Shift F on Mac, or **Find in files** in the command palette) searches the text of the project's files with `git grep`, so git must be installed. Text selected in the editor or a text field becomes the query. * Results are grouped by file, with two lines of context and the hits marked. Enter or a click opens the match at its line. * The regex button switches to a regular expression (Perl-compatible, as `git grep -P`: `\d`, `\w` and `\b` work; a git built without PCRE says so). **Files to include** takes patterns such as `*.ts, *.tsx`. * Ignored files are skipped in a git project; the eye button includes them. A folder that is not a git project searches everything, ignored files included, and the button hides them. * ↑ and ↓ in the boxes recall earlier searches; in the result list (Tab) they move between matches. * A search stops after 5 s, 200 files or 2000 matches, and says so. Binary files are skipped. ### Replace in files The arrow left of the query box (**Toggle replace**) shows a **Replace** box. Type the new text; each hit shows old and new. * With regex on, `$1`, `$`, `$&` and `$$` work in the replacement. With regex off the text is literal. An invalid pattern or replacement shows an error and writes nothing. * Uncheck single hits, or whole files, to leave them out. **Replace all** writes every checked hit; **Replace in this file** (Ctrl+Enter in the list) writes one file. The search then runs again. * A file is skipped, and listed with the reason, when it changed on disk after the search, has unsaved changes in an editor tab, is not UTF-8 text or is over 8 MiB. Line endings, a BOM and the final newline stay as they were. * **Undo** under the summary restores the files in one step while they are unchanged since. Each file's old content is also in its [Local history](timeline#local-history-file-timeline). ## Keys | Key | Where | Does | | --- | --- | --- | | Ctrl+P | Anywhere | Open a file by name. Ctrl+Enter in the list inserts `@path` into the prompt instead. | | Ctrl+Shift+F | Anywhere | Find in files | | Ctrl+S | Editor | Save | | Alt+K | Editor | Insert the file and the selected lines into the prompt box (⌥ K on Mac) | | Ctrl+\ | Anywhere | Show or hide the file tree | ## Good to know * Images and videos open as a preview. SVG files can switch between preview and text (**Show preview**). * If the file changed on disk while you edited it, you choose: reload it or overwrite it. * The browser warns you before you leave the page with unsaved changes. * The tree and the editor open only files inside the allowed roots. See [`--roots`](../reference/cli). **Open file by path…** can read one file outside them, read-only. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/focus.md --- # Focus page One page that shows, per session, what needs you, what is working and what finished while you were away. Requests are answered right there. ![The Focus page with two sessions waiting, one working and two finished](/screenshots/focus.png) ## How to use 1. Open **Focus**: the row at the top of the sidebar, or the pinned **Focus** tab. The number shows how many sessions wait for an answer. 2. **Needs you** lists the requests, then sessions that need a look. Pick a row (click or arrow keys). 3. Answer a request in place, the same way as in the session: **Allow once**, **Allow always**, **Deny**, or answer the question. 4. Press **Next waiting** (or Ctrl+Alt+↓ from anywhere) to jump to the next request. 5. **Working** shows what each running session does now and, with a task list, its progress ("2 of 5"). Click a row to open the session. 6. **Finished while you were away** lists sessions that ended a turn since you last looked, with the last line of the answer and the task summary. 7. Error, quiet, finished and usage-limit rows have a button beside them: **Open session**, or **Cancel continue** on a usage-limit row to stop the scheduled continue. ## Good to know * Rows come in a fixed order: escalated, permission, question, error, usage limit, quiet. The header says how many need you, how many to review and how many work. * **Quiet** is information, not an alarm: a running session with no event for 5 minutes and no running tool. Check it, it may be fine. * Each list shows 5 rows and **+N more**. * Error and finished rows go away when you open the session. Finished rows also go after 24 hours. * The number on the tab and the title counts only sessions that wait for you (escalated, permission, question). * The usage-limit row shows also while auto-continue is off. Then it has no **Cancel continue**. * A [worker](orchestration) row is nested under its coordinator. * Error rows and unread finished rows are still there after a page reload or a daemon restart. * The detail of a request shows the tool and its command once, in the request card. * Answered requests shrink to one line until you leave the page. * Each request gets a **tier**. **Low** is a plain read (or, in some repos, an edit) inside the session's folder. Everything else is **high**. A high one shows **High tier · always asks** and has no **Allow always** here. Only you can answer it (see [Orchestration](orchestration)). * **Escalated** marks a worker's permission request or question. It goes to you directly; its coordinator does not see it. * **Come back to** lists the replies you marked with [I'll be back](timeline#ill-be-back), with the note and the reminder time. A reminder that is due shows here too. * You can also open it with the link `#focus`. * Focus opens also while the bottom panel is maximized. The side and bottom panels stay while Focus shows, so the prompt box does not jump when you switch between Focus and a session. * With **Next for you** on (see [Settings › Sessions › Features](../reference/settings#features)), a finished row has a chip with the predicted next prompt. Click it to put the text in that session's prompt box. * While Focus is open, [in-app notifications](notifications) for requests are hidden: you already see them here. * **Discussions · N** lists open [Discussions](discussion) with the number of Points. **End discussion** sends one that is open and has no outcome being written; **Send update** sends the changes of a sent one; **Open** scrolls to its panel. * **Recent context · signal only** in the detail of the selected row shows what the session did lately: * A summary line for the last turn: "Last turn · 4 tool calls · 1 edit (glossary.md) · 1 question". * Each group of tool calls shows the last two call descriptions (the call's description, else the file name) and "+N more". With no description it shows the usual count. * An assistant text shows its last paragraph, which is its latest status. * The question that waits for you is never part of it: the request card already shows it. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/fork-subagents.md --- # Fork subagents A fork is a subagent that starts with a copy of your whole conversation. It runs in its own context and returns only its result. The searches, file reads and logs it goes through never enter your session's context, so a long session stays small. A fork is not a new session and not an [aside](aside). It appears as a **Fork** card in the transcript, under the agent's call. Forks work in Claude Code sessions and in OpenCode sessions (OpenCode 1 and 2). In Claude Code a fork runs in the background. In OpenCode the agent calls the `fork` tool and its step waits until the fork ends. OpenCode's own subagents (`task`) still start fresh, with a brief written by the agent. ## When to fork The agent reads these rules (the same text is its guidance): > Fork when the work: > > * needs many reads, searches or logs and only the conclusion matters; > * is independent of your next step and can run in parallel; > * needs this conversation's decisions or file knowledge, so a fresh agent would need a long brief; > * would take more than ~5 file reads or return large output. > > Do not fork when the task: > > * is one small step (one read, one edit); > * feeds a next step that needs the raw output; > * edits files the main thread also edits; > * needs an unbiased view (review): a fork inherits your assumptions; > * needs a specialized agent type or a worktree; > * needs little of a large conversation (a fork copies all of it); > * fits a short, self-contained brief: use a fresh subagent and set `model` explicitly (cheaper). The agent decides when to fork. There is no automatic fork when the context grows past a limit. ## The card The card shows **Fork**, the task, the status and how long the run took. While it runs, **Stop** cancels it. * **Steps** (the fork's tool calls) are collapsed behind a count. Open them to follow the work. * The **result** is the fork's final answer. It is shown once the run has ended. * **Open** shows the fork in the subagent view, like any other subagent. After a daemon restart or a reload, the card is restored with its steps and result. ## What a fork uses * The model, permission mode and rules of the session. A fork on a large model costs that model's tokens. It shares the prompt cache of the session. * It runs in the background. The agent gets its result in a notification when it ends. * It does not start other agents. ## Settings In **Settings › Sessions › Features**: | Setting | Default | Meaning | | --- | --- | --- | | Let the agent fork itself | On | Off: turns that start later cannot fork, and the agent gets no fork guidance | The setting applies to turns that start after the change. It also turns the OpenCode `fork` tool on or off. ## Good to know * A fork inherits the conversation up to its start. Work you add later is not seen by it. * Two forks that edit the same files can conflict. The guidance tells the agent not to fork a task that edits files the main thread also edits. * When a short, self-contained brief is enough, a normal subagent is cheaper: the agent can pick a smaller model for it. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/git-graph.md --- # Git graph The **Graph** pane shows the project's commit history as a graph, like `git log --graph`. It reads the history and runs git actions from its menus: **Fetch**, Push, Pull, Merge, Rebase, Checkout, New branch, commit actions and stashes. It lives in the side panel by default and can be a tab in the main area, where it takes the whole area (see [Panes & layout](panes)). ![The git graph with branches, tags and commits](/screenshots/git-graph.png) ## How to use 1. Open the side panel and pick **graph** (or press Ctrl+Shift+H). 2. In a folder with several repositories, pick the repository first (see [Changes](changes#repositories)). The choice is shared with Changes. 3. Pick which branch to show: **HEAD** (the default) or **All branches**, or one branch. 4. Search with **Text or hash**, or filter by **Author**. 5. Click a commit to see its details and the diff of each file. ## Good to know * Labels are colored by kind: HEAD, local branches, remote branches and tags. * It loads 200 commits at a time. Older ones load as you scroll down. * **Refresh** reloads the graph. * **Fetch** and the branch menu act on the selected repository. Fetching a submodule fetches only its own remotes. * A commit that moved a submodule shows "Submodule *path* → *commit*" instead of a diff, with **Show graph of** *path*. ## Branch menu Click **›** on a branch in the branch popup, or right-click a branch label, to open the actions of that branch. What can never work is absent (the current branch has no Checkout, Merge or Rebase). A temporary block is disabled and says why. Each action asks in a dialog that shows the exact git command; Cancel runs nothing. * **Checkout**, or **Checkout as new local branch** for a remote branch. With local changes in the way, **Smart checkout** offers to carry them. * **Push**, **Force push…** (red, names the commits it replaces) and **Pull** (fast-forward only). * **Merge into** *current*… and **Rebase** *current* **onto** *branch*…. * **New branch from** *branch*…. Merge, rebase, new branch, checkout and Smart checkout are described on [Git operations](git). ## Commit menu Right-click a commit (long press, Shift+F10) for the commit actions: | Item | Does | | --- | --- | | **Copy Revision Number** | Copies the full hash. | | **Cherry-Pick** | Applies the commit to the current branch. | | **Reset Current Branch to Here…** | Moves the branch to this commit: **Soft** (keeps changes staged), **Mixed** (default, keeps them unstaged) or **Hard** (discards changes of tracked files; lists the files it overwrites, and the confirm button is **Reset hard**). | | **Revert Commit** | Adds a commit that undoes this one. | | **Undo Commit** | Only on HEAD's commit, and not once it is pushed: removes the commit and keeps its changes staged. | | **New Branch…** | Creates a branch at this commit. | Cherry-Pick, Revert and Undo run at once. If a cherry-pick or revert stops on conflicts, the banner of [Changes](git#conflicts) takes over. Reset hard keeps the replaced file texts in [Local history](timeline#local-history-file-timeline). ## Stashes The **Stashes** toggle opens a strip with the stash list: **Stash changes…**, and **Apply**, **Pop** and **Drop** per entry. See [Git operations](git#stashes). --- --- url: https://claudecodeui.cuonghuunguyen.app/features/git.md --- # Git operations Commit, roll back, branch, stash and resolve conflicts without leaving claude-code-ui. The writes sit in two places: the commit box of [Changes](changes) and the branch and commit menus of the [Git graph](git-graph). They act on the selected repository (see [Repositories](changes#repositories)). ![The commit box of the Changes pane, two files checked and a message typed](/screenshots/git.png) ## Commit In [Changes](changes), mode **Uncommitted**, a commit box sits above the file list. 1. Check the files to commit: the box in front of a row, of a folder, or **Select all files**. The counter shows "2 of 5". 2. Type the message, or click the sparkle button (**Generate commit message**): Claude writes one for the checked files. **Stop generating** cancels it. 3. Click **Commit** (Ctrl+Enter, ⌘ ↩ on Mac), or **Commit and Push**. * Exactly the checked files are committed, with their working-tree content, whatever is staged. Other staged files stay as they are. * **Amend** (Alt+M) puts HEAD's message in the box and replaces the last commit. It is off before the first commit. Unchecking it brings your own text back. * **Commit and Push** pushes the branch after the commit. On a detached HEAD there is no branch to push: the commit is made and the result says why it was not pushed. * The result shows as "Committed *hash*". ### Commit message instruction **Generate commit message** asks Claude with a built-in instruction. Change it in **Settings › Files & Git › Commit message › Commit message instruction**. The same group has **Commit message instruction for** *project*, which wins for that project. Empty: the built-in text. See [Settings › Files & Git](../reference/settings#commit-message). ### Commit message engine **Settings › Files & Git › Commit message** picks the engine that writes the message: Claude (default, model `haiku`) or OpenCode (needs an OpenCode model). A Project can override the engine and both models in its Project settings; this works on Sides and worktrees too. OpenCode writes in a temporary session without tools; the session is deleted afterwards. If Claude is not logged in and an OpenCode model is set, OpenCode writes the message once and the box shows "Generated with OpenCode". With the engine OpenCode and no model, the commit box shows a hint with a link to the setting. ## Roll back changes **Rollback** puts files back to the last commit. * Check the files and click **Rollback**, or right-click a row (long press, Shift+F10) and pick **Rollback…**. * The dialog **Rollback changes** lists the files. **Delete local copies of added files** also removes files that are new (off by default). Confirm with **Rollback**. * **Rollback** on a single change: in the diff of a modified or renamed text file, a **Rollback** button follows each changed block ("Roll back this change, lines 12–18"). It acts at once, with no question. * Every replaced file is saved first in [Local history](timeline#local-history-file-timeline), so **Restore** brings it back. The result reads "Rolled back 2 files". ## Conflicts While a merge, rebase, cherry-pick, revert or patch apply (`am`) stops on conflicts, or files are unmerged, a banner at the top of Changes names it ("Merge in progress") and lists the conflicted files. Click a file to open it. | Button | Does | | --- | --- | | **Resolve with Claude** | Puts a prompt in the prompt box that names the repository and the conflicted files, and tells Claude to edit them and not to run `git add`, `git commit` or `--continue`. You review it and send it. | | **Continue** | Continues the operation. For unmerged files the button is **Mark resolved**. | | **Abort** | Drops the operation and every resolution so far, after you confirm. The changed files are saved in Local history first. | If the next step stops again, the banner stays and says "Stopped on conflicts". ## Merge and rebase Open the branch menu of the Git graph (the branch popup, or a right click on a branch label): **Merge into** *current*… and **Rebase** *current* **onto** *branch*…. A dialog shows what will happen. Cancel runs nothing. A conflict stops the operation: resolve it in Changes (see above). A rebase rewrites the commits of the current branch. The current branch has no Checkout, Merge or Rebase item. A temporary block (for example an unfinished merge) disables the item and says why. ## New branch **New Branch…** (the branch menu, the commit menu, or **Git: New branch…** in the [command palette](palette)) asks for a **Branch name**. **Check out** (on by default) switches to it after it is created. A branch made at a commit uses that commit as its start. ## Checkout and Smart checkout **Checkout** in the branch menu switches at once. A remote branch offers **Checkout as new local branch**. When local changes would be overwritten, git refuses and a dialog offers **Smart checkout**: it stashes your changes, checks out the branch and applies them again. The staged state is not kept. Untracked files in the way are only refused. If applying them stops on conflicts, the branch is still checked out and the conflicts show in Changes. **Git: Smart checkout…** in the command palette does the same from the start. ## Stashes In the Git graph, the **Stashes** toggle opens a strip with the stash list (`stash@{0}` and so on). * **Stash changes…** asks for an optional message and **Include untracked files**. * Each row has **Apply**, **Pop** and **Drop**. **Drop** asks first and saves the file texts of the dropped entry in Local history. * A stash made in a terminal shows after **Refresh**. ## Annotate (blame) In the Files editor of a file inside a repository, the **Annotate** toggle shows the commit of each line next to the line numbers: short hash, date and author, once per run of lines. Lines edited or added since HEAD show "not committed". A marker is a button: it opens the [Git graph](git-graph) on that commit. With unsaved edits it says "Save the file to annotate it." It is off by default and kept across tabs. ## Commands in the palette The [command palette](palette) lists **Git: Rollback…**, **Git: New branch…**, **Git: Checkout…**, **Git: Smart checkout…**, **Git: Stash…**, **Git: Annotate (Blame)**, **Git: Merge…** and **Git: Rebase…** in a git repository. They have no default key. Bind one in [Keyboard shortcuts](../reference/shortcuts). ## Good to know * Git write actions run `git` on the daemon's computer (or on the [side](wsl-docker)) with your hooks, like a terminal would. * Reset hard, Smart checkout, stash drop, Abort and Rollback keep the replaced text of each file in the file Timeline, with the reason "Before reset", "Before checkout", "Before stash drop", "Before abort" or "Before rollback". Turn it off in **Settings › Files & Git › Local history**. * Push, Pull, Fetch and the commit actions Undo, Revert, Cherry-Pick and Reset are on the [Git graph](git-graph) page. --- --- url: https://claudecodeui.cuonghuunguyen.app/guide/compare.md description: >- How claude-code-ui compares with the Claude Code CLI, Anthropic's own apps and other community UIs for Claude Code (CloudCLI / claudecodeui, opcode, claude-code-webui), and when to pick which. --- # How it compares claude-code-ui is one of several ways to use Claude Code outside a plain terminal. This page says what sets it apart, so you can pick the right one. Details of other projects are taken from their own pages; check them for the current state. ## In one sentence claude-code-ui is a **local daemon plus a web app**: Claude Code runs on your own computer, and you watch and steer many sessions from any browser, including your phone, with no cloud service in between. ## Compared with the Claude Code CLI The CLI and claude-code-ui run the same Claude Code and share the same history in `~/.claude`, so you can switch between them per session. | | `claude` CLI | claude-code-ui | | --- | --- | --- | | Where you use it | One terminal per session | Any browser, many sessions in tabs | | From a phone | Needs SSH and a terminal app | Built in (`--tailscale`), installs as an app, push notifications | | Sessions after you close the window | End with the terminal | Keep running in the daemon | | Waiting requests across sessions | Check each terminal | One [Focus page](../features/focus) | | Files, diffs, git graph | Separate tools | Panels next to the chat | | Install | `npm i -g @anthropic-ai/claude-code` | `npm install -g claude-code-ui` (uses your logged-in Claude Code) | ## Compared with Anthropic's own apps Anthropic ships Claude Code as a CLI, IDE extensions, a desktop app and Claude Code on the web. Claude Code on the web runs sessions in Anthropic's cloud. claude-code-ui instead runs every session on your own machine, against your local files, tools and credentials, and only you can reach it. It is an unofficial community project. ## Compared with other community UIs | Project | What it is | License | Package / command | | --- | --- | --- | --- | | **claude-code-ui** (this one) | Local daemon + web app; many sessions, phone, worktrees, orchestration, WSL and Docker sides | MIT | npm `claude-code-ui`, command `claude-ui` | | [CloudCLI](https://github.com/siteboon/claudecodeui) (also called "Claude Code UI", repo `claudecodeui`) | Web and mobile UI for Claude Code and other coding CLIs (OpenCode, Cursor CLI, Codex) | AGPL-3.0 | see its README | | [opcode](https://github.com/winfunc/opcode) (formerly Claudia) | Desktop GUI app and toolkit for Claude Code | AGPL-3.0 | desktop app | | [claude-code-webui](https://github.com/sugyan/claude-code-webui) | Web chat interface for the Claude CLI | MIT | see its README | The names are close. If you read about "Claude Code UI" elsewhere, check the repository: this project is [cuonghuunguyen/claude-code-ui](https://github.com/cuonghuunguyen/claude-code-ui). ## Pick claude-code-ui when * You run **several Claude Code sessions at once** and want one place that shows which one needs you. * You want to **answer Claude from your phone** while the work runs on your computer. * Your code and credentials must **stay on your machine**: no account, no relay, no telemetry. * You work on **Windows with WSL** or in **Docker containers** and want one UI for all of them. * You want **Claude Code's own behavior** (permission prompts, modes, slash commands, skills, `/rewind`) rather than a different agent. Ready? [Install & first run](install) takes a minute. More answers: [FAQ](faq). --- --- url: https://claudecodeui.cuonghuunguyen.app/features/inline-tasks.md --- # Inline tasks An inline task is a mid-size job that Claude runs inside one tool call. A small model with a minimized context does the work with the tools it is granted and returns only the result. Your session's context grows by the result, not by every intermediate output. An inline task is not a session: it has no entry in the session list and no transcript of its own. It appears as a card under the `inline_task` tool call. ## When to use it In a Claude Code session the tool is always loaded (OpenCode sessions do not do this): its description is in the first prompt of every turn, so the agent sees it without a tool search. The agent reads these rules (the same text is its guidance): > Prefer inline_task over Agent (haiku, Explore, general-purpose) when the task: > > * is mechanical: search, read logs, run tests, extract, summarize, classify, format, small edit; > * needs no judgment or design, and no parent conversation context beyond what fits in prompt + files; > * needs only the result, not the raw output. > > Use a subagent instead when the task needs judgment or design, long exploration, parallel runs, or parent context. > Do it directly when 1-2 tool calls suffice, or when the next step needs the raw output. > > Grant the least: tools default to Read, Grep, Glob; add Bash, Write, Edit or an MCP server only when needed. > > Set run_in_background for runs of minutes (tests, build, e2e) when you have other work: the result arrives as a notice, do not poll. inline_task_output reads progress, inline_task_stop stops it. ## Scenarios | Scenario | The inline task does | Returns | | --- | --- | --- | | Environment setup | Several Bash calls: install dependencies, create config, start a service, check the port | Done or failed, with the output of the failing step | | Drive Playwright (MCP or CLI) | Opens a page, clicks through steps, takes screenshots | Pass or fail per step, screenshot paths | | Log extraction | Greps and reads large logs, correlates timestamps | The lines or values asked for | | CI failure triage | Fetches a CI log (Jenkins, GitHub Actions), finds the first error | Failing test, error message, file:line | | Test run | Runs the test suite, parses the output | Only the failures, with message | | Pre-push scan | Reads `git diff origin/...HEAD`, checks added lines for hostnames, names, tokens, home paths | Findings with file:line, or clean | | Git chores | Rewrites commit times, cherry-picks, writes a commit message from the diff | Result and new SHAs | | Tracker fetch | `gh issue view` with comments and linked PRs | Short summary of the ticket state | | Docs lookup | Context7 or web docs query | The exact API signature or config snippet | | Code location | Grep and Glob over the repo for call sites of a symbol | List of file:line | | Mechanical edit | Renames in a few files, updates imports, applies lint autofix, updates snapshots | Files changed and check result | | License check | Reads a dependency's package metadata and LICENSE | License and compliance note | | Data conversion | Parses JSON, YAML or CSV output into the shape the caller needs | Converted data | | Worker status | Reads an [orchestration](orchestration) worker transcript | Status and open question | ## The card The card sits under the tool call. It shows the status, the task, and `model · turns · tokens`. While it runs, **Stop** cancels the task; the result then comes back as stopped, with what was done so far. * **Steps** (tools the task called) are collapsed. Open them to follow the work. * The **result** is shown as text, with the list of changed files. * A permission request of the task shows in the session like any other, and the card opens on it. See [Permissions & modes](permissions). ## Background runs The agent can start an inline task in the background (`run_in_background`), for example a full test suite or a build. The call returns at once and the agent ends its turn or goes on with other work. * The card shows **Background** and **Running** while the task runs. Its steps and permission requests show as for any inline task; a request while the session is idle sets the session to needs input. * When the task ends, the card shows the result and the agent gets it as a notice, which starts a new turn. * **Stop** on the card asks first. A stopped task starts no turn: the agent is told with your next message. * Stopping the session's turn (Esc or Stop) does not stop a background task. Closing or deleting the session, `/clear` and a daemon restart do. After a restart the card shows Stopped with the note "The daemon stopped while this ran." (after a close or `/clear`: "The session was closed while this ran." or "The conversation was cleared while this ran."), and the agent is told with your next message. * The agent can read a running task's progress (`inline_task_output`) and stop it (`inline_task_stop`); it does not need to poll, the result arrives as a notice. * Rewinding the session is refused while a background task runs: stop the task first. * In a Claude session, a running foreground task can be moved to the background: the **Run in background** button on its card, or Ctrl+Shift+B. The call returns at once and the task goes on as a background task. A foreground task that reaches 10 minutes moves the same way instead of stopping; its total limit is then 30 minutes. * Time limit: 30 minutes. The session counts as working while the task runs, so it is not closed when idle and an update waits for it. * OpenCode sessions (OpenCode 1 and 2) support background runs the same way. Differences: the result notice reaches the model as a hidden message; after a close or `/clear`, a later restore says "The daemon stopped while this ran." instead of the cause. ## What the task can use * Tools: `Read`, `Grep` and `Glob` by default. `Bash`, `Write`, `Edit` and MCP servers of the session (for example Playwright) only when the agent grants them. * Permissions: the mode and rules of the session apply to every tool call. The task never gets more than the session has. * No CLAUDE.md, no memory, no skills. The PreToolUse hooks of the session (for example a hook that denies Bash) also run inside an inline task; its other hooks and plugin hooks do not. The task never starts other agents, and never gets the claude-ui or orchestration tools. * Account: the same as the session (subscription or API key). No separate key. ## Limits | Limit | Value | | --- | --- | | Turns | No limit, unless the call sets `maxTurns` (at most 30) | | Output tokens | 16,000 | | Time | 10 minutes, then it moves to the background (background: 30 minutes in all) | | Running at once | 3 per session, background runs included | | Prompt | 20,000 characters | | Files given to the task | 20 files, about 250,000 bytes in total in the prompt | A file that does not fit in the prompt is not rejected: the prompt names its path and size, and the task reads it with `Read` and `Grep` (both are added to its tools when the agent did not grant them). Files are added in the order given. At a limit the task stops and returns the partial result with the reason (turns, tokens or time). ## Settings In **Settings › Sessions › Features**: | Setting | Default | Meaning | | --- | --- | --- | | Let the agent run inline tasks | On | Off: turns that start later have no `inline_task` tool | | Claude model | `haiku` | Model for Claude Code sessions | | OpenCode model | empty | `provider/model` for OpenCode sessions. Empty: OpenCode's `small_model`, else the session's model | ## Good to know * In a Claude Code session the steps are stored with the session, like the steps of a subagent run, so after a daemon restart or a reload the card still shows them. They do not appear in `claude --resume`. A run from before this was stored, and a run in an OpenCode session, shows the result, model, turns, tokens and files with the note "The steps of this run were not kept." * Rewinding the code of a session does not undo files an inline task changed. * The list of changed files comes from the Edit and Write steps and from `git status`. A file that was already modified before the task and changed again only by a Bash command is not listed. Outside a git repository only Edit and Write steps count. ## OpenCode sessions Inline tasks work in OpenCode sessions with these gaps: * OpenCode keeps its base prompt and `AGENTS.md`, so the context is smaller by tools and history only, not by instructions. * The turn limit is enforced after the turn by stopping the task, not by the model. * If the call cannot be matched to the running call, the task still runs and returns its result, but the card has no steps. * In **Ask before edits**, an inline task of an OpenCode 1 session asks before a `Bash` or edit step the agent granted, as the session itself would. The request shows in the session like any other. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/visualize.md --- # Inline visualizations Claude can draw a chart, a diagram or a small interactive widget right in its reply. ## How to use 1. Ask for a picture: "visualize monthly sales as a bar chart". 2. Claude writes the drawing to a file in the session's uploads folder and shows it in the chat. While it is written you see "Drawing visualization…"; the drawing appears when the block is complete. Deleting the session deletes the file: its old replies then show the file as unavailable. 3. **Show code** above the drawing swaps it for its source. Switch it off in [Settings › Sessions › Features](../reference/settings#features). It applies to sessions started or resumed after the change. Off: the drawings show as code. ## Good to know * The drawing runs in a sandboxed frame. It cannot read the app, your files, cookies or storage, and cannot make network requests. Scripts load only inline or from `cdn.jsdelivr.net`, `cdnjs.cloudflare.com` and `unpkg.com`. * A script in the drawing could still put data into the address of a CDN script. Claude can already write files, so this adds little, but know it. * It follows the light/dark theme and the colour theme: colours, series palette and font come from the app, and switch live. * In a question from Claude, drawings can show in the question and next to each option, side by side for comparison. An interactive drawing there (a slider, a ranking) can fill in **Type your own answer**; you still press Submit. * It works on Docker, WSL and SSH sides (after the side updates to this build) and with the OpenCode engine. OpenCode gets the guidance with each prompt, so a change of the setting applies from the next prompt. * Built-in components: Claude can use ready-made cards, callouts, badges, checklists, tables, option matrices, stat tiles, progress bars, steps, bar, line and donut charts and code diffs. Charts show a tooltip on hover, tap and keyboard focus, and follow the theme. A downloaded page keeps them. A component with invalid JSON shows an error box with the reason. --- --- url: https://claudecodeui.cuonghuunguyen.app/guide/install.md --- # Install & first run claude-code-ui runs a small local server (the **daemon**) on your computer. You open its web page in a browser. ## What you need * **Node.js 22** or newer. * **Claude Code, logged in.** Run `claude login` once. claude-code-ui uses your Claude subscription. It does not use an API key. * **Linux and WSL only:** a C++ toolchain, so the terminal panel can build. On Debian or Ubuntu: `sudo apt install build-essential python3`. Windows and macOS need nothing extra. ## How to start 1. Install it once and start it. The command is `claude-ui`: ```sh npm install -g claude-code-ui claude-ui ``` Just trying it? `npx claude-code-ui` runs it without installing. 2. The terminal prints a **pairing link** (`http://127.0.0.1:4280/#token=…`) and a QR code. 3. Open the link in your browser. The token in the link pairs this browser with the daemon. 4. Click **Open project** and pick a folder. To start from nothing, use **New project…** or **Clone repository…** in the project chip of the New session tab (see [Projects](../features/projects#new-project-and-clone)). 5. Type a prompt and press Enter. Then add the launcher: **Settings › Launcher › Launcher shortcut** puts Claude UI in the Start menu (Windows), Applications (macOS) or the app menu (Linux). A click opens claude-ui in the browser when it runs, else starts it in a terminal window. See [Settings › Launcher](../reference/settings#launcher). A short **guided tour** shows you around the first time. Skip it, or restart it later in **Settings › Help & diagnostics › Guide**. ## Good to know * Keep the terminal open. Closing it stops the daemon. Your sessions stay saved and come back on the next start. * Sessions keep running when you close the browser tab. * By default the daemon only listens on `127.0.0.1` (this computer). To use it from your phone, see [Phone & remote access](../features/remote-access). * Sessions can only use folders inside your home folder. Change that with [`--roots`](../reference/cli). * Sessions you start in the `claude` CLI or the VS Code extension show up here too, and the other way round. * Lost the pairing link? It is printed again at every start. * Something broke? See [Troubleshooting](../reference/troubleshooting). --- --- url: https://claudecodeui.cuonghuunguyen.app/public/install.md --- # Install claude-code-ui You are an AI assistant with a shell on the user's computer. Install claude-code-ui (a local web UI for Claude Code) and start it. Run each step, check its result, and stop and tell the user if a check fails. ## 1. Check the requirements * Node.js 22 or newer: `node --version`. If it is missing or older, tell the user to install Node.js 22+ from https://nodejs.org and stop. * Claude Code installed: `claude --version`. If `claude` is missing, tell the user to install it (https://docs.claude.com/en/docs/claude-code/setup) and stop. * Claude Code logged in: if the user has not run `claude login` yet, ask them to run it themselves; do not log in for them. claude-code-ui uses their Claude subscription, not an API key. * Linux and WSL only: a C++ toolchain, so the terminal panel can build. On Debian or Ubuntu: `sudo apt install build-essential python3` (ask the user before running sudo). Windows and macOS need nothing extra. ## 2. Install ```sh npm install -g claude-code-ui ``` The command is now `claude-ui`. Check: `claude-ui --version` prints a version. On `EACCES` (Linux, macOS): do not use sudo. Tell the user that their npm global folder is not writable and point them to https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally. ## 3. Start it `claude-ui` is a long-running server (the daemon). Start it so it keeps running after your command ends, for example in a new terminal window or as a background process: * Windows (PowerShell): `Start-Process claude-ui` * macOS: `open -a Terminal "$(command -v claude-ui)"` * Linux: `nohup claude-ui > ~/claude-ui.log 2>&1 &` Wait a few seconds, then check: `claude-ui status` reports the daemon up, with its version and port. ## 4. Open it Run `claude-ui open`. It opens the web UI in the user's browser and pairs that browser. If no browser opens, run `claude-ui open --print` and give the user the printed link. The link holds a pairing token: show it only to the user, never put it anywhere else. ## 5. Tell the user * Open a project with **Open project**, then type a prompt. * Add the launcher: **Settings › Launcher › Launcher shortcut** puts Claude UI in the Start menu (Windows), Applications (macOS) or the app menu (Linux). A click opens it in the browser when it runs, else starts it. No terminal needed after that. * Phone access: start it with `claude-ui --tailscale`. * Docs: https://claudecodeui.cuonghuunguyen.app/ · Troubleshooting: https://claudecodeui.cuonghuunguyen.app/reference/troubleshooting --- --- url: https://claudecodeui.cuonghuunguyen.app/features/keep-awake.md --- # Keep screen awake Stops the screen from turning off while claude-ui is open, so you can watch a long session run. ![The coffee button in the titlebar](/screenshots/keep-awake.png) ## How to use 1. Click the coffee button in the titlebar. It stays pressed while it is on. 2. Or switch on **Keep screen awake** in [Settings › General › Screen](../reference/settings#screen), or run **Toggle keep screen awake** in the [command palette](palette). 3. To hold the screen only while Claude works, also switch on **Only while a session is running**. ## Good to know * It is kept per browser. The button, the switch and the palette command change the same setting. * It needs HTTPS or localhost. Where the browser does not support it, the button is disabled and its tooltip says why. * The browser lets go of the screen when the page is hidden and takes it again when you return. * A session that waits for a permission answer counts as running. * A browser can refuse, for example in battery saver. The tooltip then names the reason, and the page tries again when you come back. --- --- url: https://claudecodeui.cuonghuunguyen.app/reference/shortcuts.md --- # Keyboard shortcuts Shortcuts work anywhere in the app, including the prompt box, except as noted under Good to know. ![The Keyboard shortcuts dialog](/screenshots/shortcuts.png) ## How to use 1. Press Ctrl+/ (⌘ / on a Mac) to open the **Keyboard shortcuts** dialog. 2. Type in **Filter by name or key** to find one. 3. Click **Edit** next to it and press the new keys. Esc cancels, Backspace removes the shortcut. 4. The reset button next to a changed shortcut brings back the default. **Reset all** resets every one. 5. Your changes are kept in this browser only. ## General | Action | Windows / Linux | macOS | | --- | --- | --- | | Command palette | Ctrl+K | ⌘ K | | Command palette (second key) | Ctrl+Shift+P | ⌘ ⇧ P | | Open file | Ctrl+P | ⌘ P | | Find in files | Ctrl+Shift+F | ⌘ ⇧ F | | Open settings | Ctrl+, | ⌘ , | | Keyboard shortcuts | Ctrl+/ | ⌘ / | | Go to notifications | Ctrl+Alt+N | ⌘ ⌥ N | ## Tabs | Action | Windows / Linux | macOS | | --- | --- | --- | | New session | Ctrl+Shift+S | ⌘ ⇧ S | | Previous tab | Ctrl+Alt+← | ⌘ ⌥ ← | | Next tab | Ctrl+Alt+→ | ⌘ ⌥ → | | Close tab | Ctrl+Alt+W | ⌘ ⌥ W | | Close tab group | Ctrl+Alt+Shift+W | ⌘ ⌥ ⇧ W | | Reopen closed tab | Alt+Shift+T | ⌃ ⇧ T | | Go to tab 1 to 8 | Alt+1 … Alt+8 | ⌃ 1 … ⌃ 8 | | Go to last tab | Alt+9 | ⌃ 9 | ## Panels | Action | Windows / Linux | macOS | | --- | --- | --- | | Focus next split | Ctrl+Alt+↑ | ⌘ ⌥ ↑ | | Toggle sidebar | Ctrl+B | ⌘ B | | Toggle side panel | Ctrl+Shift+R | ⌘ ⇧ R | | Toggle file tree | Ctrl+\ | ⌘ \ | | Show files | Ctrl+Shift+E | ⌘ ⇧ E | | Show changes | Ctrl+Shift+G | ⌘ ⇧ G | | Show git graph | Ctrl+Shift+H | ⌘ ⇧ H | | Commit | Alt+K | ⌃ K | | Push | Alt+Shift+K | ⌃ ⇧ K | | Toggle signal only | Ctrl+Alt+S | ⌘ ⌥ S | | Toggle terminal | Ctrl+\` | ⌃ \` | | New terminal | Ctrl+Shift+\` | ⌃ ⇧ \` | ## Session | Action | Windows / Linux | macOS | | --- | --- | --- | | Next waiting request | Ctrl+Alt+↓ | ⌘ ⌥ ↓ | | Focus prompt | Ctrl+L | ⌃ L | | Change model | Ctrl+' | ⌘ ' | | Run in background | Ctrl+Shift+B | ⌘ ⇧ B | ## Commands without a default key These commands are in the [command palette](../features/palette) and show as **Not set** in the **Keyboard shortcuts** dialog. Click **Edit** next to one to give it a key. * Open file by path… * Replace in files * Open Focus * Toggle keep screen awake * Show guide * MCP servers * Slash commands * Background tasks * Manage plugins * Manage addons * Close other tabs * Close tabs to the right * Close all tabs * Pin or unpin tab * Clean up tabs… * Close idle tabs * Close finished tabs * Close tabs of archived or deleted sessions * Close tabs not used for 1 hour * Close tabs not used for 1 day * Close tabs not used for 7 days * Close worker tabs * Split right * Split down * Focus previous split * Join splits * Show plan * Rollback * New branch * Checkout * Smart checkout * Stash * Annotate (Blame) * Merge * Rebase * Open in file manager * Add to prompt * Add selection to chat * Switch Claude account ## Prefix key Press Alt+A (like tmux), let go, then press one more key within 1.5 seconds: | Then press | Does | | --- | --- | | c | New session | | n | Next tab | | p | Previous tab | | 1 … 9 | Tab 1 to 9 (9 = last tab) | | x | Close tab | | % | Split right | | " | Split down | | o | Next split | | t | Terminal | | f | Files | | g | Changes | | s | Sidebar | | z | Focus prompt | | , | Settings | | ? | Shortcuts | | : | Command palette | ## In the prompt box These are fixed (not in the registry). | Key | Does | | --- | --- | | Enter | Send (while Claude works: steer, see [The prompt box](../features/prompt-box)) | | Shift+Enter | New line | | Shift+Tab | Next permission mode | | Esc | Stop the running turn | | ! at the start | Bash mode: the line runs as a shell command | | Ctrl+B / I / E | Bold / italic / inline code (⌘ on a Mac) | ## Good to know * On Windows and Linux some keys use Alt because the browser keeps Ctrl+T, Ctrl+W, Ctrl+Tab and Ctrl+1…9 for itself. * The recorder refuses keys that would break typing: a key without Ctrl, Cmd or Alt, AltGr characters, macOS Option characters, and the prompt box's editing keys (copy, paste, undo, word jumps). * Ctrl+B toggles the sidebar, except in the prompt box, where it makes text bold. * In the terminal panel, plain Ctrl+letter keys go to the shell. Shortcuts with Alt, the tab keys, the palette, the shortcuts dialog and the terminal keys still reach the app. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/config-dialogs.md --- # MCP, skills & plugins Three dialogs manage Claude Code's MCP servers, skills and plugins, the same way the VS Code extension does. Changes are saved to Claude Code's own config files, so the `claude` CLI sees them too. Addons, which change claude-ui itself, have their own dialog: see [Addons](addons). ## How to open them | Dialog | Type in the prompt box | Or in the [palette](palette) | | --- | --- | --- | | **MCP servers** | `/mcp` | MCP servers | | **Slash commands** (skills) | `/skills` or `/help` | Slash commands | | **Manage Plugins** | `/plugins`, `/plugin` or `/marketplace` | Manage plugins | ## MCP servers * See each server and its status. Open one to see its tools. * Turn a server on or off, reconnect it, sign in to it, or remove it. * **Add MCP server:** give a name, pick the **Transport** (stdio, SSE or HTTP) and the **Scope**, then **Add server**. * OpenCode sessions: the dialog also offers the **User** scope, the global OpenCode config. See [OpenCode engine](opencode). * If a server needs a browser sign-in, finish it and paste the **Callback URL** back into the dialog when asked. ## Slash commands Lists every command and skill. Each skill has a **state**: | State | Claude sees it | You can run it | | --- | --- | --- | | On | Name and description | Yes | | Name only | Name only | Yes | | User only | No | Yes | | Off | No | No | ## Plugins * **Plugins** tab: installed and available plugins. Install, turn on or off, **Update plugin**, **Uninstall**. * **Marketplaces** tab: add or remove plugin catalogs, or refresh one. ## Scopes Where a setting is saved: | Scope | Applies to | Saved in | | --- | --- | --- | | **Local** | This project, only you | `~/.claude.json` | | **User** | All your projects | Your user settings | | **Project** | Everyone who uses the repo | `.mcp.json` / `.claude/settings.json` in the repo | --- --- url: https://claudecodeui.cuonghuunguyen.app/features/notifications.md --- # Notifications claude-code-ui tells you when a session needs input or finishes. There are three kinds. | Kind | Where it shows | Needs | | --- | --- | --- | | **In-app** | A card in the corner of the open page | Nothing. On by default. | | **Push** | Your phone or desktop, even with the page closed | HTTPS (or `localhost`) | | **Desktop** | A system notification on the daemon's computer | Nothing. Used when no browser has push on. | ## How to turn on push 1. Open the app over HTTPS, for example with [`--tailscale`](remote-access), or on `localhost`. 2. On iPhone or iPad (iOS 16.4+): first add the app to the Home Screen and open it from there. 3. Open **Settings › General › Notifications** and turn on **Push notifications**. 4. Allow notifications when the browser asks. ## In-app cards * A card shows when a session you are not looking at needs input, finishes or fails. * For a simple read request, answer right on the card: **Allow once** or **Deny**. * Anything else: click **Open in Focus** to answer on the [Focus page](focus). * Ctrl+Alt+N moves the keyboard focus to the newest card. ## Good to know * Push is not sent while this page is in front and shows in-app cards. * Clicking a push notification opens that session. * Push messages are end-to-end encrypted. They pass the browser vendor's push service (Google, Apple, Mozilla), which cannot read them. * Desktop notifications use `notify-send` on Linux (package `libnotify-bin`), the notification center on macOS, and a toast on Windows. Turn them off in **Settings › General › Notifications**, or start with `--no-os-notify`. * All of these are per browser except the desktop switch, which is for the whole daemon. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/opencode.md --- # OpenCode engine A session can run on [OpenCode](https://opencode.ai) instead of Claude. The prompt box, timeline, permissions, Rewind and the rest of the app work the same way. ![The new-session tab with the OpenCode engine and its model picker open](/screenshots/opencode.png) ## How to use 1. Install OpenCode (version 1.18.0 or newer; OpenCode 1 and OpenCode 2 both work, claude-ui picks the adapter by the binary's version) so that `opencode` is on the PATH of the daemon's computer. Otherwise set the path in [Settings › Engines › OpenCode](../reference/settings#opencode). 2. In the new-session tab, pick **OpenCode** in the **Engine** chip, the first chip of the row. The engine cannot change afterwards. Sidebar rows and the session header show an OpenCode tag. 3. Connect a provider: Settings › Engines › OpenCode › **Providers** › **Connect**, then an API key, or the login page of the provider in your browser. OpenCode's free models work without a provider. 4. Pick a model in the model picker. It lists every model OpenCode can run, grouped by provider. From 8 models it has a search field (name, id, provider). If the list fails, the footer says so and offers **Retry**. **Connect a provider…** in the footer opens Settings. 5. Pick an **agent** (Build, Plan or a custom agent of your OpenCode config) in the chooser next to the permission chooser. Shift+Tab cycles the agents. 6. Pick a permission mode. **Use OpenCode config** is the default: the OpenCode defaults, the `permission` section of `opencode.json` and the agent decide, and claude-ui adds no rules. **Ask before edits**, **Edit automatically** and, when enabled, **Bypass** add claude-ui's rules on top. A custom agent's own denials always win. ## Good to know * Works as for Claude: prompts, steering a running turn, questions, permission requests, [Rewind](timeline#rewind), [Aside](aside), slash commands (`/compact`, `/undo`, `/redo`, `/clear` and the commands of your OpenCode config), [inline visualizations](visualize) and [orchestration](orchestration). A coordinator and each of its workers pick their own engine. * Not available: the plan usage ring and the account switcher (they belong to Claude), Reload plugins. A control that an OpenCode session cannot use is hidden or disabled with the tooltip "Not supported by this session's engine". * Rewind restores the files and the conversation together; OpenCode has no variant for only one of them. A file change by OpenCode shows in [Local history](timeline#local-history-file-timeline) with the content before the edit. * The MCP servers, Skills and Plugins dialogs edit the `opencode.json` of the project, and Shells lists the background commands. The MCP dialog also has the **User** scope (`~/.config/opencode/opencode.json`): add and remove servers there; the Plugins dialog uninstalls a plugin of the user config, after a confirm. After such a change OpenCode 1 restarts its server when no turn, provider sign-in or session create runs. An OpenCode agent can start a [Fork](fork-subagents) and an [inline task](inline-tasks). * `/clear`, `/new` and `/reset` start a new OpenCode session in the same tab with the model, agent, permission mode and effort of the old one. The old session stays in the list. It is refused while a turn runs. * An OpenCode agent can run a subagent in the background: its card keeps running after the agent's turn ended, the session shows as running until the subagent ends, and its result starts a new turn. A permission ask of a background subagent names it and alerts you like any ask. Stop on a running turn also stops its background subagents; with only a subagent running, use Stop agent on its card. OpenCode 1 allows this through an experimental OpenCode option that claude-ui turns on; set the environment variable `OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=false` for the claude-ui daemon to turn it off. * A subagent card shows the steps of the subagent (OpenCode 2) and its permission asks; **Stop agent** interrupts it. Its background commands show in Shells (OpenCode 2). Steps of an inline task stay after a reload. * With OpenCode 2, the todo list shows in the todo dock. A question form from OpenCode 2 has typed fields (date, date and time, email, URL, number, range) and **Submit** stays blocked until the values are valid. * Type `@` in the prompt box to list the subagents (for example `explore`) above the files. A mentioned subagent gets the task; the agent of the session does not change. * While OpenCode retries a busy or rate-limited model, the end of the turn shows the reason and "Retrying in 12s · attempt 2" in place of Thinking. When OpenCode 1 gives a link with the reason, the line shows it. * After a provider usage or rate limit stop, the session continues when the limit resets, at most 3 tries. A message of yours resets the count. * A turn that OpenCode ends on its own shows a warning with the reason. * OpenCode keeps the history and the provider logins of its sessions; claude-ui keeps neither. The daemon starts one `opencode serve` on the first OpenCode session. It listens on `127.0.0.1` only, behind a random password. * A [side](wsl-docker) runs its own OpenCode (its PATH, or its own path setting). Settings › Engines › OpenCode edits the local daemon only. * Settings › Engines › OpenCode › **Restart OpenCode** is refused while an OpenCode session runs. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/orchestration.md --- # Orchestration (workers) One session (the **coordinator**) can start and steer other sessions (the **workers**). Off by default. ## How to use 1. Open **Settings › Orchestration** and turn on **Enable orchestration**. 2. Start a new session (or send the next prompt in an existing one; the setting applies at a session's next start). 3. Ask it to use workers, for example: "Split this into two tasks and start a worker for each in its own worktree." 4. Workers show in the sidebar under their coordinator, as normal sessions you can open. A worker's own workers show under the same coordinator, named `parent › child`. 5. A worker's permission requests and questions come to you directly, never through the coordinator. They show up like any other request, and on the [Focus page](focus). The coordinator can see that a worker waits for you with `worker_list`, but cannot answer. 6. A question of the coordinator itself does not block its turn. The tool call is answered at once with "Not answered yet". The coordinator continues work that does not depend on it, or ends its turn. The session does not turn to needs-input, and the question card stays open. When you answer, the coordinator gets your answer as a new prompt (`[claude-ui question answer] …`). A dismissed question sends the prompt too. Stop does not close the card. An open question survives a restart. ## Settings | Setting | Does | | --- | --- | | **Enable orchestration** | Every session, workers too, gets the worker tools. | | **Maximum workers per tree** | How many workers one coordinator you start may run at once, counting its workers' workers (1 to 20, default 4). Each coordinator has its own count. | | **Close finished workers** | A worker that ends its turn with nothing pending closes its Claude process and stops counting toward the limit (default on). Not while you have it open in a tab. The coordinator can keep a worker open. | | **Worker mode** | The [permission mode](permissions) of a new worker when the coordinator does not pick one. Default: the coordinator's own mode (bypass becomes auto). | | **Notifications from workers** | Turn it off and a worker that finishes or fails sends no push, desktop or in-app notification. Its coordinator still hears. A worker's permission request or question always notifies you. | Fixed limits (no setting): * A coordinator (you or a worker) runs at most 4 workers at once. * Workers nest two levels deep: you start workers, a worker may start its own (for example a tester and a reviewer). * A running worker that sends nothing for 55 minutes raises a stall alert to its coordinator. * While a coordinator (a session that has started workers; never a plain session) waits on running workers, subagents or background commands, it gets a one-line keep-warm message 55 minutes after its last turn, so its prompt cache stays warm instead of being rewritten at full price when the next worker event arrives. The message shows as a small notice row. * The daemon has no limit on the total number of workers across coordinators. ## Worker trees and the orchestration plugin A worker can start workers of its own (two levels deep at most). Its `worker_start` card for a higher mode names the chain, for example `started by worker implementer`. Each coordinator hears only its own workers. The `orchestration` plugin of this repository adds four agent types a worker can run as (`worker_start` with `agent`): `orchestration:planner`, `orchestration:implementer`, `orchestration:ui-tester` and `orchestration:reviewer`, and the `orchestrate-tickets` skill that runs a ticket through them. Install it once: ``` claude plugin marketplace add cuonghuunguyen/claude-code-ui claude plugin install orchestration@claude-ui ``` Or use the Plugins dialog. The reviewer needs the `pr-review` skill; acceptance uses `playwright-cli`. ## The worker tools | Tool | Does | | --- | --- | | `worker_start` | Start a worker in a folder or in a new git worktree, with a first prompt, optionally as an agent type | | `worker_send` | Send a message to a worker (steers a running turn) | | `worker_wait` | Wait for a worker event: denied, turn end, error, stalled | | `worker_read` | Read a worker's recent timeline (a path such as `implementer/reviewer` reads a worker below you). `part` and `offset` read one long reply whole, page by page | | `worker_list` | List workers and their state, with what a worker waits for you to answer (`tree` lists every worker below you) | | `worker_stop` | Interrupt a worker's running turn | | `worker_close` | Close a worker's Claude process (the session stays) | | `worker_keep_open` | Keep a worker's Claude process after its turns | | `worker_remove` | Delete a finished worker's session for good | ## Good to know * A worker is a normal session. You can open it, type in it and answer its requests yourself. The first answer wins. * A worker in a more permissive mode than its coordinator needs your OK on the `worker_start` card. * A turn end event holds the first 4000 characters of the worker's reply. For a longer reply the coordinator reads the rest with `worker_read` (`part`, `offset`). * A **stalled** event tells the coordinator that a worker needs a look. Reasons: the Claude process ended in the middle of a turn, a new turn never started, or the worker sent nothing for 55 minutes. The worker is not stopped, and the coordinator decides. The worker's `stalled` field in `worker_list` clears with its next message. * A finished worker resumes on its next message (about 4 s plus MCP start). * `worker_close` refuses a worker that has running workers of its own; `worker_remove` refuses a worker that has any worker below it (remove those first). * A `worker_start` over a limit asks you nothing: the worker gets the error at once. * High-tier requests are always yours. The coordinator can still stop or close the worker. * Workers count toward your plan usage like any session. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/panes.md --- # Panes & layout Changes, Files, Git graph, Terminal, Plan and Artifacts are **panes**. Each one is a tab of the side panel, of the bottom panel or (except Changes) of the main area, and you choose where it lives. ![The workspace with the terminal docked at the bottom](/screenshots/panes.png) ## How to use 1. Right-click a pane tab (Shift+F10 on the keyboard, long press on touch) and pick **Move to bottom panel** or **Move to side panel**. 2. Or open the panel's **⋯** menu (**Side panel actions** or **Bottom panel actions**) and pick **Move … to bottom panel** or **Move … to side panel**. 3. Or drag a pane tab onto another tab or onto a panel. A dashed **Side panel** or **Bottom panel** strip shows where an empty panel is. Esc cancels the drag. 4. To dock the side panel on the other side, use **Move side panel to left** (or **right**) in its **⋯** menu. 5. To undo all of it, pick **Reset layout** in a pane tab's menu, a panel's **⋯** menu or the [command palette](palette). ## The main area Plan, Files, Git graph and Terminal can also be tabs next to your sessions. Right-click the pane tab and pick **Move to main area**, or drag the tab onto the tab strip or the session area. The pane then opens as a tab in the project's group of the tab strip ("Plan · *session*", "Terminal · *project*"), and keeps showing that project or session while you work in another one. **Move to side panel** or **Move to bottom panel** brings it back, and the tab closes (a toast offers **Undo**). The tab's own menu has the same items. Git graph always takes the whole area. Drag a pane tab onto the side panel or the bottom panel to move it there. ## The panes | Pane | Shows | | --- | --- | | [Changes](changes), [Files](files), [Git graph](git-graph), [Terminal](terminal) | See their pages. | | **Plan** | The newest plan of the session, with the same text as the plan card. It is listed only while the session has a plan. While a plan waits for your answer it says so, with **Go to request**. **Open in tab** on a plan card or on the plan approval shows the pane wherever it lives. | | **Artifacts** | The artifacts the session published (Claude's Artifact tool). Pick one to preview it, or click **Open in tab**. Listed only while the session has published one. Works for sessions on WSL, Docker and SSH [sides](wsl-docker) too. | ## One file or one artifact as a tab * **Open in tab** on a file (a tree row, a Files editor tab, the file dialog, or Alt+Enter in **Open file**) moves that file into its own tab next to its session. It is the same editor. **Move to Files** puts it back. A file is open in one place only. * **Open in tab** on a published Artifact card shows the page in its own tab at full height. **Move to Artifacts** puts it back. The preview in the card stays. * Put either one beside the session with **Split right** or **Split down** (see [Split view](split-view)). ## A session in the side or bottom panel Right-click a session tab and pick **Move to side panel** or **Move to bottom panel** (wide screens). That session, with its timeline, prompt box and requests, stays there while you work in other sessions, for example to watch a worker. It has the same features as a tab: file links, **Quote**, **Open in tab**, image attachments. **Move to main area** in the dock tab's menu brings it back. Opening it from the sidebar, [Focus](focus) or a notification selects its dock tab. It is a normal tab again on a window narrower than 1024px. ## The terminal The [terminal](terminal) is in the bottom panel by default, under the session and the side panel. The bottom panel resizes (drag the handle above it), maximizes (**Maximize panel** / **Restore panel**) and hides (**Hide bottom panel**). Press Ctrl+\` or use the terminal button in the titlebar to show or hide it. To keep the terminal in the side panel or the main area, move its tab with the tab menu, like the Files or Git graph tab. ## Good to know * A moved pane keeps its state: open files, running terminals, the loaded graph. Its tab keeps the keyboard focus. The terminal never takes the keyboard until you click into it. * A panel with no pane is hidden. Git graph, Plan and Artifacts only show when there is something to show. Git graph needs a git folder. * The layout is kept per browser. The side panel and the bottom panel reopen on the tab you selected last, also after a reload. * **Reset layout** restores the default layout and forgets the remembered tabs. It does not change sizes. * On a phone there is no docking: the pane switcher opens on the pane you used last. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/permissions.md --- # Permissions & modes Before Claude runs a tool (a command, a file edit), it may ask you. This works exactly like Claude Code, with the same rules. ## How to answer a permission request A card appears above the prompt box. It shows the tool and what it wants to do (the command, or a diff for an edit). | Button | Does | | --- | --- | | **Allow once** | Runs it this time. | | **Allow always** | Runs it and saves a rule so Claude does not ask again for the same thing. The card shows the rule first. | | **Deny** | Blocks it. Type in **No, and tell Claude what to do differently** to tell Claude why. | * For a file edit, **Edit content** lets you change the text before you allow it. * A request waiting for you is also listed on the [Focus page](focus) and can send a [notification](notifications). ## Questions Claude may ask a multiple-choice question: pick an option (or type your own) and click **Submit**; several questions page with **Back** and **Next**. **Dismiss** skips it and stops the turn, like Esc in Claude Code. ## Permission modes The mode decides what happens before a tool runs. Change it with the picker under the prompt box, or press Shift+Tab to cycle. | Mode | What happens | | --- | --- | | **Ask before edits** | Asks before edits and commands (the default). | | **Edit automatically** | File edits run without asking. Commands still ask. | | **Plan mode** | Claude only reads and plans. It shows the plan and asks before it starts. | | **Auto mode** | A classifier decides what is safe to run. | | **Don't ask** | Denies anything not already allowed by a saved rule. | | **Bypass permissions** | Runs everything without asking. Hidden unless you start with `--allow-bypass`. | ## Plan mode When Claude finishes a plan, the card shows it with three buttons: * **Yes, manually approve edits:** start, and ask before edits. * **Yes, and auto-accept edits:** start, and edit without asking. * **No, keep planning:** stay in plan mode. Type what to change. ## Good to know * Rules you save with **Allow always** are Claude Code's own rules. The `claude` CLI uses them too. * The models and modes on offer depend on your Claude account. * In an OpenCode session the permission card, the Stop label and the working placeholder name OpenCode. An inline task of an OpenCode 1 session also asks in **Ask before edits** (see [Inline tasks](inline-tasks#opencode-sessions)). --- --- url: https://claudecodeui.cuonghuunguyen.app/features/remote-access.md --- # Phone & remote access By default only your own computer can open claude-code-ui. To use it from your phone or another computer, pick one way: | Way | Works from | HTTPS (push, install as app) | Setup | | --- | --- | --- | --- | | **Tailscale** (recommended) | Anywhere, only your devices | Yes | `--tailscale` | | **Your own HTTPS proxy** | Wherever the proxy is reachable | Yes | `--hostname` | | **LAN** | Your local network | No | `--lan` | ## Tailscale 1. Install [Tailscale](https://tailscale.com) on the computer and the phone, and log in on both. 2. In the Tailscale admin console (DNS page), turn on **MagicDNS** and **HTTPS certificates**. 3. Start with: ```sh claude-ui --tailscale ``` 4. It prints an `https://..ts.net/#token=…` link and a QR code. Scan it with the phone. claude-ui tells you what is missing and exits if Tailscale is not ready. ## Install as an app Needs HTTPS (Tailscale or your own proxy). * **Android Chrome:** menu › **Install app**. * **iPhone/iPad (iOS 16.4+), Safari:** **Share** › **Add to Home Screen**. Open the new app, paste the pairing link the terminal printed into **Pairing link or token**, and tap **Pair**. * **Desktop Chrome:** the install icon in the address bar. On the computer that runs claude-ui, `claude-ui open` and the launcher then open the installed app (Chrome, Edge, Brave or Chromium) instead of a browser tab. Only the app of `http://127.0.0.1:/` counts. Without it, or when the launch fails, the browser opens. ## LAN ```sh claude-ui --lan ``` It prints a pairing link for each local address, like `http://192.168.1.20:4280/#token=…`. ::: warning Plain HTTP Anyone on the network can read the token. Use `--lan` only on a network you trust. Push notifications, Copy buttons and installing the app do not work over plain HTTP. ::: ## Your own HTTPS proxy Put a reverse proxy that keeps the `Host` header in front of `127.0.0.1:4280`, then start with its name: ```sh claude-ui --hostname my-machine.local ``` For example with [Caddy](https://caddyserver.com): `caddy reverse-proxy --from my-machine.local --to 127.0.0.1:4280` (trust Caddy's local certificate on the phone). ## Good to know * Tailscale's public **Funnel** is never used. claude-ui refuses to start if Funnel is on for that port. * `tailscale serve` runs only while claude-ui runs. It also ends when claude-ui is killed. Nothing stays configured after it exits. If you already set up `tailscale serve --bg 4280`, claude-ui reuses it. * WSL2 is not reachable from the LAN by default. Run claude-ui on Windows, or turn on WSL mirrored networking. * The page reconnects by itself when the phone wakes up or the network comes back. * Treat the pairing link like a password: it gives full access. See [Privacy](../reference/privacy). --- --- url: https://claudecodeui.cuonghuunguyen.app/reference/privacy.md --- # Privacy **Short version:** everything stays on your machine. There is no claude-code-ui server, no account and no telemetry. ## What stays local * **The daemon and the web app** run on your computer. Nothing is hosted elsewhere. * **Session history** is Claude Code's own transcript files in `~/.claude/projects/`. claude-code-ui keeps no database of its own. * **Its own data** (pairing token, project list, settings) is in the [config folder](cli#files). * **Your Claude login** stays in the daemon. It is never sent to the browser. ## What leaves your machine | What | Where to | Why | | --- | --- | --- | | Your prompts and code context | Anthropic | That is how Claude works, same as the `claude` CLI | | "What is the latest version?" | npm (`registry.npmjs.org`) | The [update check](../features/updates). Nothing about you is sent. Off with `--no-update-check`. | | Push notifications | Your browser's push service (Google, Apple, Mozilla) | Only if you turn push on. End-to-end encrypted: the push service cannot read them. | ## Remote access * By default the daemon listens on `127.0.0.1` only: nobody else can reach it. * For your phone, use Tailscale: private to your own devices, with HTTPS. The public Tailscale Funnel is never used. * `--lan` is plain HTTP. Use it only on a network you trust. ## Access control * Every connection needs the pairing token. Keep the pairing link private: it gives full access. * **The daemon can run any command on your computer.** Treat access to it like shell access. * Sessions, files and terminals stay inside the allowed roots (`--roots`). * Permission prompts are on by default. "Bypass permissions" is hidden unless you start with `--allow-bypass`. * To unpair every browser, delete the `token` file in the config folder and restart. ## Login claude-code-ui uses your Claude subscription login (`claude login`), not an API key. It is a personal tool: one user, on their own machine, with their own subscription. Design decisions: [docs/adr](https://github.com/cuonghuunguyen/claude-code-ui/tree/main/docs/adr). --- --- url: https://claudecodeui.cuonghuunguyen.app/features/projects.md --- # Projects & worktrees A **project** is a folder you work in. New sessions start in a project. ![The Open project dialog with recent projects](/screenshots/open-project.png) ## How to open a project 1. Click **Open project** (the folder icon next to **Projects** in the sidebar). 2. Pick a recent project, browse to a folder, or type a path. 3. The project shows in the sidebar. Start a session in it. ## New project and Clone repository {#new-project-and-clone} The project chip of a new session lists **Open project…**, **New project…** and **Clone repository…** below the projects. The [command palette](palette) has **New project…** and **Clone repository…**. Both use the Open project dialog with a form instead of **Open**. 1. Pick the parent folder in the folder browser (a click goes into a folder; nothing opens) and the Side where it is made. 2. **New project:** type a **Name**. **Initialize git repository** is on by default. The folder is made and `git init` runs. 3. **Clone repository:** type the repository URL (https, http, ssh, git or scp-like). The name fills in from the URL; edit it if you want. The line under the form shows the progress of `git clone`. **Cancel** stops it and leaves the partial folder. 4. The new project opens with a new session. Notes: * The work runs on the chosen Side, with its own git setup. A Side on an older claude-ui says to update it. * A clone belongs to the daemon: closing the browser does not stop it, and the project is added when it ends. The dialog ignores Esc and outside clicks while a clone runs. * git cannot ask for a password or a host key. A clone that needs one fails with a hint: use a credential helper, ssh-agent or `known_hosts`. * A local path or `file://` URL works only inside the allowed roots. ## How to remove a project * Open the project's menu in the sidebar and choose **Remove from list (files stay)**. * This only hides it. Files and session history stay. ## Custom names and icons A project can have your own name and icon. 1. Open the project's menu in the sidebar and choose **Change name and icon…**. 2. Type a name (up to 60 characters), and pick an emoji or an image. An image is cropped to a square: drag it to move it. 3. Save. **Reset** removes both. The name replaces the folder name everywhere the project is named: sidebar, tab group chip, command palette, Focus page and dialogs. The icon replaces the letter of the project avatar and shows on the tab group chip. The folder name still finds the project in the sidebar filter and still heads the folder browser of Open project. Worktree rows keep their branch or folder name. A machine (this computer, a WSL distro, a container or an SSH host) can have a name and icon too: **Settings › Sides**, pencil button of its row. The name shows in the Side badge, in the tab place text and in the lists of Open project. They are saved in the daemon and apply to every browser. ## Worktrees A **worktree** is an extra git checkout of the same repository, on its own branch. Use one to let Claude work on a branch without touching your main checkout. ### Create a worktree 1. Hover the project row and click the branch-plus button **Create worktree** (or run "New worktree…" in the [command palette](palette), or pick **Create worktree…** in the project menu). 2. Pick where its branch comes from: * **Ticket**: pick a Jira ticket (your open tickets show first; type a key, words of the summary, or paste the ticket link or a pull request link whose branch names the ticket). The branch name comes from the ticket, e.g. `bugfix/PRJ-123-login-fails`; you can edit it. If a branch with the key exists already, **Check out** it instead. Set up Jira in [Settings › Jira](../reference/settings#jira). * **Branch**: check out an existing local or remote branch. A remote-only branch gets a local branch of the same name that tracks it. A branch that is checked out in another worktree cannot be picked. Paste a pull request link (GitHub, GitLab, Bitbucket Server) to list the branch it was opened from, or a ticket link or key to list the branches named after the ticket. * **Name**: type any name. `Fix Login Ü` becomes the branch `fix-login-u`; `feat/x` stays `feat/x`. 3. For a new branch, **Base** picks the start point (default: the remote default branch, e.g. `origin/main`). 4. The modal shows the branch and its folder (`.claude/worktrees/`). Click **Create**. A new session tab opens in the worktree. A new worktree also gets the gitignored files that the `.worktreeinclude` file at the root of the main checkout lists (`.gitignore` syntax), for example `.env`. A file is copied only when a pattern matches it and git ignores it. Copying stops at 2 GiB or 50,000 files per worktree, with a warning in the daemon log. Links are never copied. A long ticket summary is shortened, so a generated name is always valid. An error shows only for a name you typed or edited. A folder name is at most 64 characters, also when you check out an existing branch with the **Branch** tab. **Shift+click** the button, or pick **New worktree** in the project menu, to create one at once with a generated name. ### Merged repository group A repository that is open on several Sides shows as one group in the sidebar. A row shows the branch only. In **Group by › Worktree** icons show the kind (house: main checkout, branch: worktree) and, in a merged group, the Side; the tooltip has the Side, kind, full branch and path. Main checkouts of every Side come first. A worktree without sessions takes one line; a click opens a new session in it. * The group menu has **Project settings · *Side*…** and **Create worktree · *Side*…** for each Side. The main row of each Side has its own **Create worktree…** and **Clean up**. The **+ worktree** button uses the first Side; its label names that Side. * **Clean up** from the group covers the worktrees and workers of every Side ([Clean up](clean-up)). * The Create worktree modal names the Side in its footer when the repository is on several Sides. * With **Group by › Project** the sessions are listed flat. A session that is not on this computer shows a Side badge after its title and branch; the tooltip names the Side. * The tab strip groups the same way: with tab grouping **By project**, one group holds the tabs of the repository on every Side, and each of its tabs shows a Side badge in place of its icon (see [Sessions & tabs](sessions#tabs)). **Merge sides of one repository** in the sidebar options turns this off for the sidebar and the tab strip. The **Run session in** chip of a new session calls the main checkout **Primary worktree**. To remove many at once, see [Clean up](clean-up). To remove one, click its trash icon (on a phone: its menu › **Delete worktree…**). The dialog opens at once with **Checking…**. After you confirm, the row shows **Removing…** while the removal runs in the background. The menu of a project row and of a worktree row has **Copy path**. ## Projects header buttons | Button | Does | | --- | --- | | Open project | Adds a project. | | Select active session | Scrolls the sidebar to the session you are looking at. | | Expand all / Collapse all | Opens or closes every project (desktop). | | Sidebar options (`⋯`) | Layout, show only sessions that need attention, and more. | ## Last choice of a project {#last-choice-of-a-project} A project remembers the Engine, model and effort of the last session you created in it, and a new session starts with them. The order, first match wins: what you pick in the new session, the Project override (Project settings), the project's last choice, the last Engine you used anywhere. A model or effort applies only to its own Engine. The last choice is never written into the Project overrides, and a worktree counts for its main checkout. The daemon keeps up to 200 projects for each of 20 Sides, and drops the least recently used. ## Good to know * You can only open folders inside the allowed **roots** (default: your home folder). See [`--roots`](../reference/cli). * Folders that only have sessions from the `claude` CLI show as **recent projects** until you open them. * Worktrees under `.claude/worktrees/` can be removed from here, and so can any linked worktree inside the roots (not a locked or symlinked one), also one made by hand. Before it removes one, it tells you how many uncommitted changes and commits you would lose. * Removing a worktree deletes the branch claude-code-ui created for it (from **Ticket**, **Name**, a generated name or a worker). A branch you checked out with **Branch**, or made yourself, stays; [Clean up](clean-up) offers to delete it when it is merged. * With WSL, Docker or an SSH host, **Open project** also lets you pick a side. See [WSL, Docker & SSH](wsl-docker). --- --- url: https://claudecodeui.cuonghuunguyen.app/features/timeline.md --- # Reading a session The middle of the screen is the **timeline**: your prompts, Claude's answers and everything Claude did, newest at the bottom. ![A session: prompt, tool cards and an answer](/screenshots/session.png) ## What you see * **Tool cards:** one card per thing Claude did. Click a card to open it. * Bash: the command and its output. * Edit and Write: a diff of the change. * Read, Grep, Glob: the file or pattern. * TodoWrite: Claude's todo list. While Claude works, the list also sits above the prompt box. * Agent: a subagent run. Open it to see the subagent's own timeline. * Bash that runs in the background: see [Background shells](background-shells). * Artifact: a page Claude published. The card previews it, also for a session on a WSL, Docker or SSH [side](wsl-docker). **Open in tab** shows it in its own tab, and the Artifacts pane lists all of the session (see [Panes & layout](panes)). * **Markdown answers** with code highlighting, tables, math and Mermaid diagrams. A `
` section shows as a collapsible card: a row with a chevron, closed unless it has `open`. Claude and OpenCode put depth in such sections and the answer first, by default. A section still being written stays closed and shows a spinner. * **Sticky prompt:** when you scroll up, the prompt of the turn you are reading stays at the top. Click it to jump there. ## How to use | To | Do | | --- | --- | | Fold all tool calls into one line | Turn on **Signal only** (Ctrl+Alt+S) | | Copy Claude's answer | **Copy response** under a finished turn | | Quote part of an answer | Select the text, click **Quote in prompt** | | Open an image big | Click it | | Go back in time | Hover your prompt, click **Rewind to before this message** | ## Rewind Rewind returns the session to before one of your prompts. Pick what to restore: * **Restore code and conversation** * **Restore conversation** (files stay as they are) * **Restore code** (the chat stays) You can also run "Rewind" from the [command palette](palette). Rewind is not available while Claude is working. ## I'll be back **I'll be back** (the button next to **Copy response** under a finished reply) marks the reply to come back to later. 1. Click it. The session writes a short brief of the work (**About**, **Focus now**, **Next**) as a turn shown as one collapsed row, "Brief for your mark". A busy session writes it after the current turn. 2. In the panel under the reply, add a **Note** (up to 280 characters) and **Remind me in** (a number and m, h or d, from 1m to 7d: `30m`, `2h`, `1d`). The reminder fires once. 3. Open the brief later: it says how many turns passed since it was written, and **Refresh brief** writes a new one. 4. **Done** removes the mark. Clicking the button again only focuses the panel. The [Focus page](focus) lists the marks under **Come back to**. A reminder shows as a push notification, or as a card in an open page with **Snooze** and **Dismiss**. A reminder that came due while the daemon was off shows at the next start. ## Local history (file Timeline) Not to be confused with the session timeline above: the **Timeline** section under the file tree of [Files](files) belongs to the file open in the editor. It lists, newest first, its **Local history** entries and its **Git history** commits. The filter menu (**Filter timeline**) shows one kind or both, kept in this browser. * **Local history** keeps the previous content of a file each time you save it, Claude edits it or a git action replaces it. An entry holds the text from before the change, so the current text is always on disk. * Each entry has a reason: "File saved", "Agent edit", "Before rollback", "Before checkout", "Before reset", "Before stash drop", "Before abort", "Before restore", "Before paste" or "Named entry". Reset hard, Smart checkout, stash drop, Abort and [Rollback](git#roll-back-changes) save the replaced text first, so none of them loses work. * **Create named entry** keeps the file as it is on disk now, under a name you give. * A row menu offers **Compare with current**, **Compare with previous**, and for Local history rows **Restore**, **Rename** and **Delete**. **Restore** first asks you to save or discard your edits. * Up to 50 entries and 256 KB per file are kept, in the daemon's config folder. **Settings › Files & Git › Local history** turns it off and lists **Excluded paths** (glob patterns, for example `**/dist/**`). See [Settings](../reference/settings#local-history). ## Good to know * **Signal only** applies to every session in this browser. Your prompts, Claude's text, errors and requests waiting for you always stay visible. * Code rewind covers changes made by Claude's Edit and Write tools. It does not undo shell commands. * Long sessions load the newest turns first. Scroll up for older ones. * Copy buttons need HTTPS or `localhost`. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/sessions.md --- # Sessions & tabs A **session** is one conversation with Claude in one folder. Sessions run in the daemon, so they keep going when you close the browser. ## How to start a session 1. Click **New session** (or press Ctrl+Shift+S). 2. Pick the project, model, mode and effort in the prompt box. The project chip opens a popup with a search field: type to filter the added projects by name, path or Side ("No projects match" when none does). **Open project…**, **New project…** and **Clone repository…** stay below the list (see [Projects](projects#new-project-and-clone)). 3. Type your prompt and press Enter. To start in a specific project, use the **+** on that project's row in the sidebar. On a wide screen (1024px and up), the New session tab already shows the project's side panel and bottom panel, so nothing moves when you send the first message. Files, Graph and Terminal work as in a session, and Changes shows "No changes yet". Picking another project in the prompt box switches the panels to it. ![The New session tab with the Changes panel and a terminal](/screenshots/new-session.png) ## How to find a session * Type in **Search sessions** at the top of the sidebar. It matches title, project and branch. * Type `@` to filter: project, side, branch, engine, status. Pick a filter, then a value; it becomes a chip. Different filters combine with AND, values of one filter with OR. Typing `@project=my-app` works too. * To search inside messages, open the [command palette](palette) (Ctrl+K) and type. * Type `/resume` in the prompt box to search the sessions of the current project; it fills a project chip. ## Session menu Hover a session row and click `⋯`: | Item | Does | | --- | --- | | Rename | Changes the title. | | Archive / Unarchive | Hides the session from the list without deleting it. | | Quick compact | Digests the session into a new one ([Quick compact](#quick-compact)). Off until the session has a transcript. | | Copy session ID | Copies the ID. | | Close tab | Closes its tab, while one is open. | | Delete… | Deletes the session and its history for good (asks first). | The same menu opens with a right click. See [Context menus](context-menus). ## Quick compact {#quick-compact} Shrinks a long session without asking a model to rewrite it (the Engine's own `/compact` does that). Works for Claude Code, OpenCode 1 and OpenCode 2. Claude Code and OpenCode 1 compact the session in place: it keeps its ID, so workers and background reports keep arriving. OpenCode 2 makes a new session. So does OpenCode 1 when its database does not fit; the toast then starts with "In place was not possible" and the reason. Choose **Quick compact** in the session menu, or type `/quick-compact` alone in the prompt box (it is never sent to the Engine). * Claude Code and OpenCode 1: the card **Compacted in place** appears in the same conversation, and the next message sees only the digest and what follows. Messages you send meanwhile wait and go out when it is done. It is refused while a terminal Claude Code has the session open. * OpenCode 2 (and OpenCode 1 when in place is not possible): the new session opens at once, with the same Engine, folder, model, effort and permission mode. Its first message is the digest. The old session is archived and its tab gives its place to the new one (Unarchive in the sidebar brings it back). If a background task of the old session still runs, the old session stays open beside the new one and is archived when the task ends. Sending a message in the old session before that cancels the archive. * The **digest** is shown as a folded card with the size (about tokens); in a new session it links to the source. **Show digest** unfolds it. * The digest keeps the user and assistant text and one line per tool call with its input. Tool outputs and long inputs are saved as files that the new session can read; the line names the file. The most recent part stays word for word. * The digest is limited to 30 % of the model's context window. Over the limit, old tool lines collapse into counts; if still over, a small model condenses only the oldest part (the card says **oldest part summarised**). Under the limit no model runs. * In a new session workers of the session move to it and report there. While a turn runs the item is disabled ("Turn running"). In place (Claude Code, OpenCode 1) a running background task disables it too ("Background task running"). For a new session a dialog asks first: the task keeps running in the old session and reports there; the old session opens beside the new one and is archived when the task ends. * A progress toast shows while the digest is built and ends with the run, also for a project in a deep folder path. A failure shows **Quick compact failed** with the reason, and no half-made session stays. ## Tabs Right-click a tab for **Close others**, **Pin tab**, **Reveal in sidebar** and more: [Context menus](context-menus). To show two sessions at once, see [Split view](split-view). To close many tabs by rule, see [Clean up](clean-up). Each open session is a tab at the top. Tabs are grouped by project, like Chrome tab groups. A repository that is open on several Sides is one group, not one per Side, while **Merge sides of one repository** is on (see [Merged repository group](projects#merged-repository-group)). In such a group a Side badge replaces the icon of each tab: a running or needs-input mark stays before the badge, an unread dot sits on it. The tab tooltip names the Side and the Engine. ![Tabs grouped by project: the demo-shop group open, the demo-api group collapsed to its chip](/screenshots/sessions.png) | To | Do | | --- | --- | | Switch tab | Click it, or Alt+1…8 (⌃ 1…8 on Mac). Alt+9 goes to the last tab. | | Close a tab | Its **×**, or Ctrl+Alt+W | | Close a whole group | Middle-click the group chip, or right-click it › **Close group** | | Reorder | Drag a tab or a group chip | With **Compact tabs** on, each group shows only its chip: hover or click it to pick one of its tabs, and right-click it for the group actions ([Context menus](context-menus#group-chips)). More tab keys (reopen a closed tab, close a group): [Keyboard shortcuts](../reference/shortcuts). On a phone, tap the tab switcher to see all tabs. Swipe a row left to close it. Swipe up or down on the switcher to go to the previous or next tab: the tab name follows your finger and settles on the next tab, or springs back. ## Good to know * A session whose transcript file was deleted outside claude-ui leaves the list and its tab closes, as after **Delete…**. * `/clear` (or `/reset`, `/new`) starts a fresh session in the same tab and keeps what you typed. * **Idle close:** a session that no tab shows closes its Claude process after 10 minutes idle. It stays in the list. The next prompt resumes it. Change the time with [`CLAUDE_UI_IDLE_CLOSE_MINUTES`](../reference/cli#environment-variables). * Change how tabs group (by project, by worktree, or none) and turn on **Compact tabs** in [Settings › Layout › Tabs](../reference/settings#tabs). * Sidebar grouping **Worktree** and **Project** (also in the sidebar options menu), and "Show only sessions that need attention", are in [Settings › Layout › Sidebar](../reference/settings#sidebar). --- --- url: https://claudecodeui.cuonghuunguyen.app/reference/settings.md --- # Settings Open **Settings** with Ctrl+, (⌘ , on Mac) or the **Settings** button at the bottom of the sidebar. Pick a group on the left. ![The Settings dialog](/screenshots/settings.png) The 11 groups sit under four headings: | Heading | Groups | | --- | --- | | App | Appearance, General, Layout | | Sessions | Sessions, Orchestration | | Integrations | Engines, Jira, Files & Git | | System | Sides, Launcher, Help & diagnostics | Most App settings are **kept in this browser** only. Sessions, Orchestration, Engines, Jira, Files & Git, Sides, Launcher, the performance monitor and desktop notifications are saved in the daemon and apply to every browser. Rarely changed rows sit in a collapsed **Advanced (n)** block at the end of their section. ## Appearance | Setting | Options | | --- | --- | | Theme | Default, Catppuccin, Tokyo Night, Solarized, Nord, Dracula, One, Neon. Recolors the app, the editor, diffs, the terminal and the git graph at once. Dracula has no light colors: in light mode it shows Default. Kept in this browser. | | Theme switches | A theme may have on/off switches, shown under the theme list for the picked theme only (Neon: **Rain**, **Light rain**). A change applies at once and is kept in this browser per theme. | | App name and icon | Your own name and icon (an emoji or an image) for the browser tab and the installed app. **Change…** opens the editor; an empty name means "Claude UI". Saved in the daemon: it applies to every browser of this Claude UI. The tab changes at once. An installed app takes it when the browser next checks for updates (up to a day) or after you reinstall it. | The theme button at the top right still cycles System, Light and Dark inside the theme. ## General ### Sending | Setting | Does | | --- | --- | | While Claude works, Enter | **Steers the turn** (default; Alt+Enter queues) or **queues the message** (Alt+Enter steers). A queued message waits and starts its own turn when Claude is idle. The send button follows the choice. | ### Timeline | Setting | Does | | --- | --- | | Signal only | Folds each run of tool calls into one line, like "4 tool calls · Read 3 · Grep 1". Your prompts, Claude's text, errors and waiting requests stay. Also Ctrl+Alt+S. | ### Screen | Setting | Does | | --- | --- | | Keep screen awake | Holds the screen on while claude-ui is open. See [Keep screen awake](../features/keep-awake). | | Only while a session is running | Holds it only while a session runs or waits for you. | ### Notifications | Setting | Does | | --- | --- | | In-app notifications | A card in this page when another session needs input or finishes. On by default. | | Push notifications | Notifications from this browser, also with the page closed. Needs HTTPS or localhost. | | Desktop notifications on *computer* | The daemon's computer shows a system notification when no browser has push on. For every browser. | See [Notifications](../features/notifications). ### Keyboard Opens the [Keyboard shortcuts](shortcuts) dialog, where you can rebind every shortcut. **Show shortcut tips**: after the 2nd, 5th and 10th click on a button, a tip shows its shortcut or offers to assign one. Not on touch screens. ### Addons **Manage…** opens the Addons dialog, which installs, approves and updates addons. ### Recommendations | Setting | Does | | --- | --- | | Show recommendations | Suggests a setting or feature once, at the moment it helps. At most 5 a day. Kept in this browser. | Two of the recommendations: * **Quick compact:** the session you look at has used over 70 % of its context window and has a transcript. **Show me** opens the session menu in the sidebar with **Quick compact** ringed. It does not run it. * **Run in terminal:** you copied a shell code block for the 2nd time. **Show me** rings the **Run in terminal** button of that block. ## Layout ### Sidebar | Setting | Does | | --- | --- | | Show only sessions that need attention | Lists only sessions that run, need input, or finished or failed since you last saw them. Every project stays listed. Search still finds all. | | Group by | **Worktree** groups a project's sessions by worktree. **Project** lists them right under the project, with their state as text. | ### Tabs | Setting | Does | | --- | --- | | Tab grouping | By project, By worktree, or None | | Compact tabs | Shows each group as one chip. Open its tabs from the chip. Needs a tab grouping. | | Auto-close idle tabs after | Off, 1 hour or 1 day. Never closes pinned, running or unread tabs, or tabs with a draft. Sessions keep running. | | Shake mouse to locate the active session (in **Advanced**) | A quick left-right shake of the mouse scrolls to the active tab and outlines it. The session row in the sidebar is revealed as **Select active session** does (groups that hold it open, the search clears) and outlined. Not on phones. | ### Changes | Setting | Options | | --- | --- | | Default diff view | Session changes, Uncommitted, Against branch | The terminal is a tab like Files and Git graph: move it with its tab menu. See [Panes & layout](../features/panes). ## Sessions ### New sessions | Setting | Does | | --- | --- | | Default permission mode | The [permission mode](../features/permissions) of a new Claude session when the Claude settings (`permissions.defaultMode`) set none. Default: **Auto**, which runs as Default on a model without auto mode. OpenCode sessions start in **Use OpenCode config**. | A project's last choice of Engine, model and effort is kept by the daemon and used by its next new session ([Projects](../features/projects#last-choice-of-a-project)); it has no row. ### Features | Setting | Does | | --- | --- | | Inline visualizations | Claude can draw charts, diagrams and small interactive widgets in its replies ([details](../features/visualize)). On by default. Applies to sessions started or resumed after the change; off: they show as code. | | Next for you | After a turn, Claude predicts your next prompt; finished rows on Focus show it as a chip. Off by default. Uses a small extra request per turn that reuses the prompt cache. | | Let the agent fork itself | The agent may start a subagent as a fork that inherits the conversation and returns only its result. On by default. | | Let sessions use open terminals | The agent can list and read the terminals of its project and, after you allow it, run a command in one. On by default. | | Let the agent run inline tasks | The agent can hand a mid-size task to a small model and get only the result back. On by default. An inline task has no turn limit unless the call sets one. | | Claude model / OpenCode model | Model of an inline task per engine. Claude default `haiku`; OpenCode empty = OpenCode's small model. | ### Usage | Setting | Does | | --- | --- | | Continue automatically after a usage limit resets | Sends "continue" to a session that the plan limit stopped, once the limit resets. | | Usage ring shows | Highest usage, Session (5 h) or Weekly. Kept in this browser. | ## Orchestration Lets a session start and steer worker sessions. Off by default. | Setting | Does | | --- | --- | | Enable orchestration | Every session may start and supervise worker sessions; a worker may start its own, two levels deep at most. | | Maximum workers per tree | Workers one root coordinator's tree may run at the same time (1 to 20, default 4). | | Close finished workers | A worker that ends its turn with nothing pending closes its Claude process. | | Worker mode | Permission mode of a new worker when the coordinator names none. | | Notifications from workers | Notifications when a worker finishes or fails. | Fixed limits: a coordinator runs at most 4 workers of its own, workers nest two levels deep, a silent worker raises a stall after 55 minutes, a waiting coordinator gets a keep-warm message 55 minutes after its last turn, and the daemon has no total worker limit. See [Orchestration](../features/orchestration#settings). ## Engines ### Claude account Picks the account that the Claude CLI processes of the daemon use. The list holds **CLI login** (the login of the official Claude CLI), your **token accounts**, and **Default (daemon environment)** when the daemon starts with a Claude token in its environment. The checked row is active. | Item | Does | | --- | --- | | Account row | Click to switch the active account. | | **Log in…** | Runs the official Claude CLI login in a terminal of the open project. | | **Test** | On a token account: checks that the token works. Shows "Token works" or "Token refused: *reason*". The result is not saved. | | **Remove** | Deletes a token account. | | **Add a token account** | **Name** and **Token**, then **Add**. Create the token with `claude setup-token`. It is stored on the daemon's computer and never shown again (the row says **Token set**). | With two or more accounts you can also switch from the plan meter (the usage ring) or with **Switch Claude account…** in the [command palette](../features/palette). With a cloud provider (Bedrock, Vertex, Foundry) in the daemon's environment the CLI uses it and the account has no effect. ### Claude in Chrome | Setting | Does | | --- | --- | | Claude in Chrome | Sessions can use your Chrome through the Claude in Chrome extension, like `claude --chrome`. Off by default. Never for orchestration workers. | ### OpenCode For the [OpenCode engine](../features/opencode). | Setting | Does | | --- | --- | | OpenCode binary path | Where to find `opencode`. Empty: `opencode` on the PATH (on Windows `opencode.exe` or `opencode.cmd`, then `~/.opencode/bin/opencode` elsewhere). Saved when you leave the field. | | Status, **Check again** | Shows the version and whether the OpenCode server runs, or "Not found" or "Too old" (minimum 1.18.0). | | **Restart OpenCode** | Restarts the server. Refused while an OpenCode session runs. | | **Providers** | Lists the providers. **Connect** takes an API key, or opens the login page of the provider in your browser. **Log out** removes a saved login. A provider that comes from an environment variable or the OpenCode config shows without a button. **Show providers** starts the server when it is stopped. | ## Jira One Jira connection for the **Ticket** tab of [Create worktree](../features/projects#create-a-worktree). Branch template and Ticket filter sit in the collapsed **Advanced** block at the end. | Setting | Does | | --- | --- | | Jira URL | Cloud: `https://.atlassian.net`. Data Center or Server: the https address of your Jira (http only for `localhost` and `127.0.0.1`). Changing the host clears the saved token. | | Email | Your Atlassian account email. Only for Jira Cloud. | | API token / Personal access token | Cloud: an API token from id.atlassian.com › Security › API tokens. Data Center or Server: a personal access token from your Jira profile. Saved on the daemon's computer only (`secrets.json`), never shown again: the row then says **Token set**, with **Replace** and **Clear**. | | Branch template (in **Advanced**) | How a ticket names its branch. Default `{type}/{key}-{summary}`: `{type}` is `bugfix` for a Bug, `feature` for a Story, Task or New Feature, else empty; `{key}` is the ticket key; `{summary}` is the summary, shortened. | | Ticket filter (JQL) (in **Advanced**) | The tickets the Ticket tab lists, e.g. `project = ABC AND statusCategory != Done`. Typed text searches inside it; a key or ticket URL ignores it. Empty: your open tickets. | | Test connection | Shows "Connected as *your name*" or the error. | ## Files & Git ### Git repositories The same settings as VS Code's Git extension, with the same names and values. They apply to every project and decide which repositories the repository selector and the file tree marks find. Repositories are scanned one folder deep, at most 10 submodules are listed, and a repository in a parent folder always opens. | Setting | Does | | --- | --- | | Auto repository detection | `true` (default), `subFolders`, `openEditors` or `false`. | | Repository scan ignored folders (in **Advanced**) | Folder names skipped while scanning. Default `node_modules`. | | Scan repositories (in **Advanced**) | Extra paths to search, relative to the project folder. | | Ignored repositories (in **Advanced**) | Repositories to leave out. | | Detect submodules (in **Advanced**) | Find submodules. | | Ignore submodules (in **Advanced**) | Ignore submodule changes in the file tree. | ### Commit message | Setting | Does | | --- | --- | | Commit message engine | `claude` (default) or `opencode`: which engine writes the commit message ([Commit message engine](../features/git#commit-message-engine)). A Project can override it. | | Commit message model (Claude) | Model used by Claude. Default `haiku`. Empty: the default. | | Commit message model (OpenCode) | Model used by OpenCode, as `provider/model`. Needed for the engine `opencode`, and for the fallback when Claude is not logged in. | | Commit message instruction | What Claude is asked when it writes a commit message for the checked files ([Git operations](../features/git#commit-message-instruction)). Empty: the built-in instruction. | | Keep commit message generator warm | Keeps one Claude process ready for Generate (faster start, one idle process). Claude only. Off by default. | | Commit message instruction for *project* | Only for that project; wins over the instruction above. Empty: use the instruction above. | ### Local history | Setting | Does | | --- | --- | | Keep local history | On by default. Keeps the previous content of a file each time you save it, Claude edits it or a git action replaces it, so you can compare and restore it from the Timeline in [Files](../features/timeline#local-history-file-timeline). Up to 50 entries and 256 KB per file, in the daemon's config folder. | | Excluded paths | Glob patterns of files that never get a history, matched on the absolute path with `/` separators. Example: `**/dist/**`. | ### Open in app **Editor command** and **Name in the menu** add your own program to the file menus (**Open in** *name*). Use `{path}` for the file or folder and `{root}` for the session folder. Only a browser on the daemon's computer can change it; other browsers see it read-only. See [Files](../features/files#open-in-the-file-manager-an-editor-or-the-default-app). ## Sides Shown when a WSL distro, container or SSH host is listed. This computer is always listed, with a pencil button for its [name and icon](../features/projects#custom-names-and-icons). Per side: | Setting | Does | | --- | --- | | Start with Claude UI | Starts the side with Claude UI, from the next start. Off also removes the side's projects from the sidebar. | | Update automatically | Installs a new Claude UI build from the bundle. Needs Start with Claude UI. | | Update | Shown when the Claude UI on an SSH host is older than yours: runs `claude-ui update` there. | A Hub that Claude UI started on a side keeps running for 30 minutes with no Claude UI attached, no browser connected and no turn running; a Hub you started there never ends by it. See [WSL, Docker & SSH](../features/wsl-docker). ## Launcher Start options of claude-ui on the daemon's computer. They apply from the next start; a command-line flag or an environment variable of that start wins (see [CLI flags](cli)). | Setting | Does | | --- | --- | | Launcher shortcut | Adds Claude UI to Applications (macOS), the app menu (Linux) or the Start menu (Windows). A click opens claude-ui in the installed app (PWA) when there is one, else in the browser, when it runs; else it starts in a terminal window. | | Port | Port of the web UI. Default 4280. | | Roots | Directories claude-ui may open. Empty: the home directory. | | Open browser at start | Opens the web UI in this computer's installed app (PWA) if there is one, else in its browser, at start. | | Tailscale | Serves on your tailnet and prints the https link. | | LAN | Also listens on the local network, plain HTTP. Read the warning in the dialog. | | Allow bypass permissions | Offers the Bypass permissions mode. | | Check for updates | Checks npm for a newer version at start. | | Desktop notification on this computer | A desktop notification when no browser has push on. | ## Help & diagnostics ### Guide **Guided tour:** restart the short tour of projects, tabs, files, changes, git graph and terminal. ### About The version of the web app and of the daemon. Include both in a bug report. ### Performance | Setting | Does | | --- | --- | | Performance monitor | Measures responsiveness on the daemon's computer. Durations and counts only; nothing leaves the computer. Below it: the results, **Clear** and **Export JSON**. | ### Browser logs **Keep browser logs**: errors, warnings and messages of this browser, kept on this device for 7 days (at most 5000 entries). Pairing tokens are removed; nothing is sent anywhere. ## Not in Settings * **Mode:** the theme button at the top right cycles System → Light → Dark, inside the colour theme you picked in Settings › Appearance. * **Model, mode, effort:** per session, in the [prompt box](../features/prompt-box). * **Server options** (port, roots, remote access): [CLI flags](cli). --- --- url: https://claudecodeui.cuonghuunguyen.app/features/split-view.md --- # Split view Show two sessions next to each other, or one above the other, each with its own timeline, prompt box and scroll position. A session can also sit beside one of its [panes](panes): its plan, its project's terminal, a file or an artifact. It needs a window at least 1024px wide. ![Two sessions side by side](/screenshots/split-view.png) ## How to use 1. Open at least two session tabs. 2. Right-click a session tab (long press, or Shift+F10 on it) and pick **Split right** or **Split down**. That tab moves into the new split. 3. Click or tab into a split to make it the active one. A thin ring marks it. 4. Drag the bar between the splits to resize them, or focus it and press the arrow keys. Double click it to go back to 50/50. 5. To end the split, run **Join splits** in the [command palette](palette). The active session stays. You can also drag a tab onto the session area and drop it at an edge to split there. **Split right**, **Split down** and the drag work on Plan, Files, Terminal, file and artifact tabs too. A split always holds at least one session. Git graph always takes the whole area, and Changes stays in its panel. ## Good to know * The palette also has **Split right**, **Split down**, **Focus next split** and **Focus previous split**. Bind keys to them in [Keyboard shortcuts](../reference/shortcuts). * The active split is the current session: the side panel, the terminal, palette commands and Esc (stop) follow it. * Both sessions on screen count as seen, so neither shows a notification card. * The tab of the other split has a split icon. Closing it ends the split. * When the window is too narrow for two splits, one shows at a time with a **Close split** button. The split comes back when there is room. * After a split, the typing focus is in the new split: type at once, also in a terminal. * The split is kept per browser and restored on reload while both tabs are open. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/terminal.md --- # Terminal A real terminal in the session's folder, docked at the bottom of the window by default. It can also sit in the side panel or as a tab in the main area. It runs on the daemon's computer. ![Two terminals in the bottom panel, the second one showing test output](/screenshots/terminal.png) ## How to use 1. Press Ctrl+\` to show or hide the terminal (or the terminal button in the side panel). 2. Type commands like in any terminal. 3. Click **+** (**New terminal**, Ctrl+Shift+\`) for another one. Each gets a tab in the row above the terminal: Terminal 1, Terminal 2… ## Which shell | System | Shell | | --- | --- | | Linux, macOS | `$SHELL`, else `bash` | | Windows | `SHELL` if it names a Windows file, else `pwsh`, else Windows PowerShell, else `cmd.exe` | | WSL or Docker session | The shell of that side | For Git Bash on Windows, set `SHELL` to `C:\Program Files\Git\bin\bash.exe` before you start claude-ui. ## Good to know * The terminal is a [pane](panes): it sits in the bottom panel, under the session and the side panel. The bottom panel resizes and maximizes. A move of its tab (tab menu) puts it in the side panel or the main area. * In the main area the terminals of a project are one tab ("Terminal · *project*") that stays while you work in another project. After a reload each folder shows the terminal you selected in it. * Terminals live in the daemon. They survive a page reload or a lost connection, and the last output is replayed. * A shell starts only when you open the terminal (Toggle terminal, New terminal, or a click on its tab), never on a reload, a session or project switch, or a reconnect. A terminal you left open shows again only while its folder has running shells, and then it does not take the focus. * Select output and click **Add to chat** (in the menu next to the selection, or in the right-click menu) to put it in the prompt box as a code block with the terminal's name and folder. The block keeps the last 8,000 characters of a longer selection. Right click also has **Copy** and **Paste**; Shift+right click shows the browser's own menu, and a program that uses the mouse (vim, tmux) keeps the right click. * Plain Ctrl+letter keys go to the shell. App shortcuts with Alt still work. * Up to 8 terminals per browser tab, 32 in total. * Nerd Font icons (as used by many shell prompts) display correctly. * On Linux and WSL the terminal needs a C++ toolchain at install time. See [Install](../guide/install). --- --- url: https://claudecodeui.cuonghuunguyen.app/features/prompt-box.md --- # The prompt box The box at the bottom of a session. You type prompts here, and pick the model, mode and effort. ## Keys | Key | Does | | --- | --- | | Enter | Send | | Shift+Enter | New line | | Enter while Claude works | **Steer**: your message joins the running turn right away | | Alt+Enter while Claude works (Option+Enter on a Mac) | **Queue**: your message waits and starts its own turn when Claude is idle | | Esc | Stop the running turn (same as the **Stop** button) | | Shift+Tab | Next [permission mode](permissions) | | Ctrl+L | Jump to the prompt box from anywhere | In **Settings > General > Sending** you can swap the two: Enter queues and Alt+Enter steers. The send button follows the same choice, and a hint above it shows the keys. ## Bash mode: `!` 1. Type `!` as the first character. The box turns into a shell prompt. 2. Type a command, for example `! npm test`, and press Enter. 3. It runs in the session's folder. The output shows in the timeline, and Claude sees it in the next turn. 4. **Stop** kills a command that hangs. To keep a long command running while you go on, click **Run in background** (Ctrl+Shift+B, see [Background shells](background-shells)). 5. Esc (or Backspace in an empty box) leaves bash mode. While Claude works, a `!` command waits in the queue like a message and runs when the session is idle. `!` also works in a new session's box: it starts the session and runs the command. ## Slash commands: `/` * Type `/` to list commands and skills. Pick one with the arrows and Enter. Tab inserts it. * A `/command` works in the middle of a message too, like in Claude Code. * Some open a dialog instead of being sent: `/mcp`, `/skills` (or `/help`), `/plugins`, `/resume`. See [MCP, skills & plugins](config-dialogs). * `/clear` starts a fresh session in the same tab. In an OpenCode session `/new` and `/reset` do the same; the new session keeps the model, agent, permission mode and effort. * `/btw ` asks an [aside](aside) in a floating popup, also while Claude works. * `/tasks` (or `/bashes`) opens the [Background shells](background-shells) list. ## Files and images * Type `@` and part of a file name to mention a file. In an OpenCode session the list starts with the subagents (for example `explore`); a mentioned subagent gets the task ([OpenCode engine](opencode)). * Paste or drop images into the box, or click **+** (**Add images and files**). PNG, JPEG, GIF and WebP go to Claude as images. * Other files are uploaded and added to the prompt as a path. * A file you copied in Explorer or Finder works too: paste it (Ctrl+V, ⌘ V on a Mac) or drag it into the box. A folder is skipped with "Folders cannot be attached; mention them with @." and the other files still attach. * A large text paste (more than 800 characters or more than 2 line breaks) shows as a block `[Pasted text #1 +120 lines]` in the box and in the sent message. Click the block to read the text. Delete it like one character (Backspace). Claude gets the whole text. Several pastes get numbers #1, #2… * **Expand** (the unfold button on the pasted-text chip under the box, "Expand pasted text #1 into the prompt") replaces the block with its plain text, which you can edit. Ctrl+Z (**Undo**) brings the block and its chip back. If you copy the block's token and paste it again, the copy is inserted as plain text; the first one stays the block. ## Pickers under the box Permission mode (see [Permissions & modes](permissions)), model, and thinking effort. On a phone they fold into one settings chip. ## Good to know * The formatting row above the box writes plain Markdown. Its keys are on the [shortcuts page](../reference/shortcuts#in-the-prompt-box). * What you type is saved as a draft in this browser. It survives a reload. Images are not saved in drafts. * The ring next to the send button is the context meter. See [Usage & context](usage). --- --- url: https://claudecodeui.cuonghuunguyen.app/reference/troubleshooting.md description: >- Fixes for common claude-code-ui problems (node-pty install errors, pairing, ports, WSL and Docker sides, push, updates) and answers to frequent questions. --- # Troubleshooting & FAQ ## Something is wrong ### `npm i` fails on `node-pty` (Linux, WSL) The terminal panel needs a C++ toolchain. On Debian or Ubuntu: ```sh sudo apt install build-essential python3 ``` ### The browser keeps asking to pair Open the pairing link the daemon printed at start (it ends in `#token=…`). On an iPhone Home Screen app, paste that link into **Pairing link or token** and tap **Pair**. iOS can clear the app's storage after weeks without use; pair again then. ### "This daemon does not accept that token" The token changed (the `token` file was deleted, or you use a different config folder). Copy the link the daemon printed last. ### Port in use Start on another port: `claude-ui --port 4281`. ### WSL or Docker side "stopped (exit code 1)" In 0.5.0 every WSL and Docker side stops about 15 seconds after it starts. This is a known bug: [#263](https://github.com/cuonghuunguyen/claude-code-ui/issues/263). **Retry** starts it again, but it stops again. Windows and local projects are not affected. ### The side needs Node.js or build tools The Open project dialog says what is missing. A WSL distro or Docker container with glibc (Debian, Ubuntu, ...) needs only `sh`, `tar` and `gzip` (a WSL distro also `bash`): claude-code-ui uses a Node.js 22+ found there, else brings its own. A WSL distro that installs with npm (musl, see below) needs Node.js 22+, make, python3 and g++. Open **What this container needs** in the dialog for the list with a ✓ or ✗ per item. The dialog does not check the Claude login: a session started without one says so. See [WSL & Docker](../features/wsl-docker). ### A Docker container or WSL distro installs with npm, not the bundle The dialog says why. Causes: * The container or distro uses musl (Alpine) or a CPU other than x86_64 and arm64, has glibc older than 2.28, or has no libstdc++. Use a glibc image or distro, or install Node.js 22+, make, python3 and g++ there. * Your computer could not download a part (Node.js from nodejs.org, only for a target without Node.js 22+; node-pty, the Claude Agent SDK or Claude Code from the npm registry) and has no checked copy in `~/.cache/claude-ui/side`. Check the network or set `CLAUDE_UI_UPDATE_REGISTRY` to a registry mirror, then retry. * `docker exec` could not run in the container (stopped meanwhile, no `sh`, runtime error): the reason quotes the error. Parts of an older claude-ui version stay in the cache for 7 days after their last use, then are removed. A downloaded or cached part that does not match its checksum is never used: it is downloaded again. ### Push notifications do not work * The page must be on HTTPS (or `localhost`). Use [`--tailscale`](../features/remote-access). * On iPhone/iPad: iOS 16.4+, and the app must be on the Home Screen. * Without HTTPS, the daemon's computer shows desktop notifications instead (Linux needs `notify-send`, package `libnotify-bin`). ### A new version does not start claude-code-ui falls back to the previous version and says so. See [Updates](../features/updates). ### `--tailscale` exits right away It prints what is missing: Tailscale not installed or not logged in, MagicDNS or HTTPS certificates off, the machine not approved, or Funnel on. On Linux without root, run `sudo tailscale set --operator=$USER` once. On Windows with WSL, run `--tailscale` on Windows, not inside WSL. ## FAQ ### Do sessions stop when I close the browser? No. They run in the daemon. Open the page again to catch up. ### Do sessions stop when I stop the daemon? The running turn stops. The session and its history stay, and you can continue it after the next start. ### Does it work with sessions from the `claude` CLI? Yes. Both read and write the same history in `~/.claude`. A session started in one shows up in the other. ### How do I unpair all browsers? Delete the `token` file in the [config folder](cli#files) and restart. Every browser must pair again. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/updates.md --- # Updates claude-code-ui checks npm for a new version when it starts and once a day, and can update itself. ## How to update from the app 1. When a new version exists, a notice shows **Update available**. 2. Click **Update and restart**. It installs the new version while your sessions keep running. 3. It restarts once no session is working. **Restart now** does not wait: it ends running turns and closes terminals. 4. The page reconnects by itself. Your sessions come back. **Not yet** hides the notice until the next version. ## Check for updates yourself Open **Settings › Help & diagnostics › About**. The **Updates** row shows the version you can install, even after **Not yet**. Click **Check for updates** to ask npm now, then **Update and restart**. From the command palette, run **Check for updates**. A new version brings the notice back. Otherwise a message says you have the latest version. ## How to update from a terminal ```sh claude-ui update ``` The next start runs the new version. ## Good to know * Updates go into the `versions/` folder of the [config folder](../reference/cli#files). No global install and no `sudo` needed. It also works when you run it with `npx`. * `npm i -g claude-code-ui@latest` still works too. * If a new version does not start, claude-code-ui starts the previous one and says so. To retry, delete `versions/` in the config folder and restart. * A source checkout (`npm start`) does not update itself. * Turn the check off with `--no-update-check`. Use a registry mirror with `CLAUDE_UI_UPDATE_REGISTRY=https://npm.example.com`. * The check only asks npm for the latest version number. Nothing about you or your sessions is sent. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/usage.md --- # Usage & context Two small meters show how much you have left. | Meter | Where | Shows | | --- | --- | --- | | **Plan usage** | Top right of the window | How much of your Claude plan's limits you used | | **Context window** | Next to the send button | How full this session's context is | ## Plan usage 1. Look at the ring at the top right. It shows a percent. 2. Click it to see every window, like **Current session** and **Current week (all models)**, with when each resets. 3. The ring turns into a warning icon when you get close to a limit, and shows **Limit reached** when you hit one. With `CLAUDE_CODE_OAUTH_TOKEN` (from `claude setup-token`) the ring shows the session and weekly windows after a turn, or a grey ring with **–** before one: that token cannot read plan usage. Run `claude login` to see every window. Choose which window the ring shows in [Settings › Sessions › Usage](../reference/settings#usage): Highest usage, Session (5 h) or Weekly. ## Continue after a limit When a session stops because of the plan limit, claude-code-ui can send it "continue" once the limit resets. 1. Turn on **Continue automatically after a usage limit resets** in **Settings › Sessions › Usage**. 2. A note above the prompt box shows when it will continue. **Cancel automatic continue** stops it. Sending a message yourself also cancels it. Several stopped sessions continue one after another. An OpenCode session continues by itself after a provider usage or rate limit, when the limit resets (short rate limits are ignored). It tries at most 3 times; a message of yours or a turn that ends without a limit resets the count. ## Context window * Click the ring next to the send button to see what fills the context: messages, system prompt, tools, MCP tools, memory files and skills. * It also shows tokens and cost for the session. ## Good to know * The numbers come from your Claude account, the same as `/usage` in Claude Code. * A daemon restart drops scheduled continues. * The status bar under the prompt box shows the session's input, output and cached tokens. --- --- url: https://claudecodeui.cuonghuunguyen.app/features/wsl-docker.md --- # WSL, Docker & SSH One claude-code-ui can also run sessions inside your WSL distros (on Windows), inside running Docker containers and on machines you reach over SSH. Each of these is a **side**: its own Claude install, its own `~/.claude`, its own files. ::: warning Known issue in 0.5.0 WSL and Docker sides stop about 15 seconds after they start, with "stopped (exit code 1)". This is a bug, tracked in [#263](https://github.com/cuonghuunguyen/claude-code-ui/issues/263). ::: ## How to open a project in WSL or Docker 1. Start claude-code-ui on the host (on Windows: in Windows, not inside WSL). 2. Click **Open project**. 3. In **Where to open projects**, pick **WSL** (then a distro) or **Docker** (then a running container). 4. The first time, click **Install**. claude-code-ui copies itself into the side (`~/.local/share/claude-ui/side`) and starts it there. In a Docker container it brings Claude Code, and its own Node.js only when the container has none in range (see below). 5. Pick a folder and open it. Later, **Check again** shows the side's state, and **Update** or **Reinstall** refreshes it. ## What the side needs Most Docker containers (Linux on x86_64 or arm64 with glibc 2.28+, for example Debian, Ubuntu or Fedora images) get a **bundle**: your computer downloads the terminal support (node-pty) and Claude Code once (and Node.js only when the container or distro has no Node.js 22 or newer; one that has it is used as it is, also from nvm), checks each against its published checksum, keeps them in `~/.cache/claude-ui/side`, and copies one file into the container. Other containers (Alpine and other musl images, other CPUs) install with npm inside the container. A WSL distro with the same requirements (glibc 2.28+, x86_64 or arm64) uses the same checked parts. Nothing is copied: the distro reads them from the cache on Windows. A first install takes about 10 to 15 seconds. A new claude-code-ui build with the same parts takes about a second, because the distro reuses the files of its earlier install. Other distros (musl) install with npm in the distro. If the distro does not answer the first check, the dialog says so and claude-code-ui installs with npm. A WSL distro on the bundle path needs `bash`, `tar` and `gzip` (not only `sh`), and no Node.js for claude-code-ui itself. Hooks and MCP servers of your projects that call `node` or `npx` still need a Node.js in the distro. | | WSL distro (bundle) | WSL distro (npm) | Docker container (bundle) | Docker container (npm, e.g. Alpine) | | --- | --- | --- | --- | --- | | `sh`, `tar`, `gzip` | Yes | | Yes | | | Node.js 22+ | Used when present, not required | Yes | Used when present, not required | Yes | | Claude login | `claude login` in the distro | Same | Copy `~/.claude/.credentials.json` in, run `claude login` in it, or set `CLAUDE_CODE_OAUTH_TOKEN` | Same | | Build tools for the terminal | No | `build-essential python3` | No | make, python3, g++ (Alpine: `apk add make python3 g++`) | | Network access to npm | No | Yes | No (`--network none` works) | Yes | | A writable `/tmp`, `/dev/shm` or home folder | | | Yes | Yes | | `git` (Git panel) | Optional | Optional | Optional | Optional | In Open project, **What this container needs** lists these items for the container you picked, with a ✓ or ✗ for each after the check. If something is missing, the dialog tells you what to run. When the container installs with npm, the dialog says why. The Claude login is not checked: log in as the table says, and a session started without a login says so. The bundle needs your computer to reach nodejs.org and the npm registry once per claude-code-ui version (`CLAUDE_UI_UPDATE_REGISTRY` sets a registry mirror). Without them and without a cached copy, the container installs with npm instead. ## When an install fails A failed install or start does not bury the reason in a wall of text. * **In the sidebar,** under the projects of that side, one summary line says what failed ("Could not start" when there is nothing more). **Details** unfolds the output behind it, for example the npm output, which you can select and copy. **Retry** runs it again. The **Details** stay open across **Retry**, so a second failure shows its output where you were reading. * **In Open project,** the same summary and **Details** show in the side's panel. The main button reads **Retry install** (**Retry update** after a failed update) and runs the install again. **Check again** looks at the machine again without installing, for example after you fixed a missing tool by hand. The panel names what to fix first: Node.js, build tools, `tar` and `gzip`, or a writable folder. * An error of the setup itself (a tool is missing, Node.js is too old) is not retried by itself. Fix it, then click **Retry install**. Another start failure when Claude UI starts is tried once more by itself after 30 seconds. ## Coming back after a restart A side that has run once starts again with Claude UI, and again by itself if it stops (after 2 s, 10 s and 60 s; the fourth stop within ten minutes shows an error with **Retry**). A container that runs again starts within about 30 seconds. After a new Claude UI build, the side updates from the downloaded bundle; if its distro or container needs npm, it stays off and the sidebar shows **Needs an update** with **Update**. While a side starts, its projects stay in the sidebar. In **Settings › Sides**, **Start with Claude UI** turns this off for a side (its projects leave the sidebar) and **Update automatically** stops the automatic update. ## SSH hosts Every `Host` entry of your ssh config (`~/.ssh/config`, and the files it `Include`s) is a side named `SSH: `. It needs `ssh` on your computer. Linux and macOS hosts work. Windows hosts do not yet. Sessions and terminals get the environment of your login shell on the host (`~/.zprofile`, `~/.zshrc`, `~/.bash_profile` ...), so tools from Homebrew, nvm or sdkman are found. After you edit those files, restart the host's Hub (stop the side, then start it). fish and tcsh: plain environment. ### How to open a project on an SSH host 1. Click **Open project**. 2. In **Where to open projects**, pick **SSH host**, then a host. A host that is not in the list: click **Add SSH host…**, type its ssh command and check the parsed host in the preview. **Add host** writes a `Host` entry into your ssh config. To rename or remove it, edit that file. 3. The first time, click **Install**. claude-code-ui copies itself to `~/.local/share/claude-ui/side` on the host over ssh, from your computer: the host needs no internet. A host the bundle does not fit (musl, other CPUs, macOS, BSD) installs with npm and needs Node.js 22+ and npm there. The dialog names what is missing. 4. Pick a folder and open it. ssh runs without prompts (`BatchMode`): no password, no passphrase question. Use a key, an agent or a `ProxyJump` in your ssh config. If the host key is unknown or the login is refused, run `ssh ` once in a terminal, then try again. The host keeps its own Claude login. ### One Hub per machine A side is the Hub of that machine. If the host already runs a Claude UI, yours attaches to it and does not start a second one. This works without an install when that Claude UI is of a build that speaks a compatible protocol (it need not be the same version): yours uses the bridge of the Hub there and copies nothing. It installs its own build only when no Claude UI runs there or the protocols do not overlap (see [Versions](#versions)). If none runs, yours starts one there (on `127.0.0.1` only) and attaches. A Hub you started yourself on the host is never stopped, restarted or reconfigured. Its settings (allowed roots, bypass, default mode) limit the attached sessions. Several Claude UIs can attach to one host at once, like several browsers to one Hub. ### When the connection drops * A dropped ssh connection does not stop the host's turns, terminals or prompts. The side shows **Reconnecting…** and attaches again by itself. * After you restart your Claude UI, it attaches again to the hosts it had attached. Turns and terminals are as they were. * A Hub that your Claude UI started on the host ends when no Claude UI is attached, no browser is connected and no turn runs for 30 minutes (fixed; no setting). * If attaching fails for good, the row shows the reason and **Retry**, with the output behind **Details** (see [When an install fails](#when-an-install-fails)). ### Versions When the Claude UI on the host and yours cannot work together, the row names both versions: "Claude UI 1.1.0 there, 1.2.0 here: they cannot work together." If the one there is older, **Update** (in the Open project panel and in Settings › Sides) runs `claude-ui update` there. Your Claude UI attaches again by itself after the restart. If the one there is newer, update this Claude UI. **Start with Claude UI** is off by default for an SSH host. Turn it on in Settings › Sides to connect at every start. ## Good to know * Projects and sessions of all sides share one sidebar. A badge shows the side (for example `WSL`, `Docker` or `SSH: demo-host`). * A project and a side can have your own name and icon. See [Custom names and icons](projects#custom-names-and-icons). * A session on a side runs that side's Claude, opens that side's terminal and uses that side's config. * A typed path picks its side: `C:\...` is Windows, `/home/...` is WSL, `\\wsl.localhost\\...` is that distro. * Docker and Rancher Desktop's own WSL distros are skipped. * In a container you can browse its home folder and the image's working directory. Set `CLAUDE_UI_ROOTS` in the container to change that. * On a side, the artifact preview, the HTML file preview and the file tree **Download** work for the files of a side. **Download** is for SSH and container sides and has a 512 MiB limit. An HTML or artifact page is at most 16 MiB. * Without Docker, or while its engine is stopped, nothing changes. The Docker tab shows a hint.