---
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
