Skip to content

Self-hosting on a Remote Server

Access CloudCLI UI from any device by running it on a VPS, exposing it on your local network, or using a tunnel.

If you want to access CloudCLI UI from your phone or another device outside your local network, the easiest way is CloudCLI Cloud.

CloudCLI Cloud gives you a fully managed environment with no server to set up, no ports to open, and no machine that needs to stay on. Your agent sessions run in the cloud and are accessible from any browser, IDE, or API from anywhere in the world. It starts at €7/month.

Get started with CloudCLI Cloud →


Self-hosting on a Remote Server

If you have a specific reason to run CloudCLI UI on your own infrastructure — such as compliance requirements, an air-gapped environment, or preference for full control — you can run it on any VPS.

Setup

Spin up a server (Hetzner, DigitalOcean, Linode, or similar), install Node.js v22+, then:

bash
npm install -g @cloudcli-ai/cloudcli

Then follow the Running as a Background Service guide to keep it running with PM2 and auto-start on reboot.

Access it at http://your-server-ip:3001 from any device.

Security

CloudCLI UI has its own login. The first time you open it, you create one account with a username and a password, and every later visit has to sign in. It is a single-user system, so create that account yourself before you share the address with anyone. See Login and Accounts.

The login protects the UI, but the server itself speaks plain HTTP. Whoever signs in gets a shell on the machine, so do not send that password over an unencrypted connection. If the server is reachable from the internet, put it behind a reverse proxy that adds HTTPS:

bash
# Example: Caddy gets and renews the certificate for you
# In your Caddyfile
your-domain.com {
  reverse_proxy localhost:3001
}

To keep port 3001 itself off the network, start CloudCLI UI with HOST=127.0.0.1 so that only the proxy can reach it.

Temporary Access via Tunnel

For quick one-off remote access without a server:

bash
# Using cloudflared (free)
cloudflared tunnel --url http://localhost:3001

# Or ngrok
ngrok http 3001

This gives you a temporary public URL. Not recommended for ongoing use.


For team access, audit logs, environment isolation, and everything else that comes with a managed platform, CloudCLI Cloud handles it without any of this setup. You can run Claude Code remotely in persistent cloud sessions, use Claude Code on mobile from any device, and set up shared cloud environments for your team.

Last updated November 30, 2026

No pitch, just answers →