Installation Overview
Not sure which installation option to use? Start here. A quick guide to the three ways to run CloudCLI UI and when to use each one.
There are several ways to run CloudCLI UI depending on how you work. This page helps you pick the right one.
CloudCLI UI is a self-hostable web interface for Claude Code, Cursor CLI, Codex and OpenCode that lets you manage coding sessions, browse files, and run agents from any browser. It is the same open-source codebase that powers CloudCLI Cloud — the difference is where the process runs: on your laptop, on a server you control, or on infrastructure we host for you.
Before installing, check the Prerequisites.
Options at a Glance
| Option | Best for | Setup |
|---|---|---|
| Quick Start (npx) | Trying it out | npx @cloudcli-ai/cloudcli |
| Install via npm | Daily use from your machine | npm install -g @cloudcli-ai/cloudcli |
| Install via npm + PM2 | Always-on UI on your local network | PM2 process manager |
| Local Development | Contributing or testing unreleased features | git clone + npm run dev |
| Remote Server | Access from anywhere without keeping your laptop on | VPS or cloud server |
Choosing the right option
Every install path starts the same web UI — the tradeoffs are about where the process runs and how long it stays up.
- You just want to try it. Run
npx @cloudcli-ai/cloudclifrom any directory with Node.js installed. No persistent install, no background processes — close the terminal and it is gone. Good for a five-minute look. - You use it daily. Install globally with
npm install -g @cloudcli-ai/cloudcliand launch with a single command. Update withcloudcli update. - You want it always on. Install globally, then wrap it with PM2 so it survives reboots and crashes. This is the best option if you keep long-running sessions open overnight or want to reach your UI from other devices on the same LAN.
- You want to contribute or preview unreleased features. Clone the repo from GitHub and run
npm run dev— you will get hot reload, can submit PRs, and run ahead of the npm release cadence. - You want access from anywhere. Install on a VPS (DigitalOcean, Hetzner, Linode, etc.), configure HTTPS, and access the UI from any device without keeping your laptop on. This is the closest self-hosted equivalent to CloudCLI Cloud.
After you install
- The UI starts on
http://localhost:3001by default. - The first time you open it, you create the account for this install. There is no default password, and it is the only account: CloudCLI UI is a single-user system. See Login and Accounts.
- It auto-discovers Claude Code sessions under
~/.claude/projectsand lists them in the sidebar. - Open it in your browser and start a new session, or continue an existing one.
- Tune behaviour via environment variables — see Environment Variables.
Switching between install methods
You can safely run different install methods in parallel (e.g. global install for daily work + a development clone for feature testing) as long as they listen on different ports — set SERVER_PORT=3001 for one and SERVER_PORT=3002 for the other in each .env.
Security reminder
Anyone who signs in to CloudCLI UI gets a full shell as the user that started it. If you bind beyond localhost — a LAN, a remote server, or a tunnel — create your account before you share the address, and serve it over HTTPS so the password is not sent in the clear. See Self-hosting on a Remote Server.
Not sure which to pick?
Start with Quick Start. If you use it daily, move to Install via npm. If you want it running without keeping a terminal open, add PM2. If you want to access CloudCLI from any device without managing a server at all, see CloudCLI Cloud.