# OpenClaw on a VPS

> Set up OpenClaw on a remote Linux server: sign in without a browser on the machine and keep the session alive after you disconnect. Or use an EnvHaven workspace, a server with all of that done.

_Updated November 23, 2026 · Checked against OpenClaw 2026.9.2 in EnvHaven v1.9.0_

Two things trip people up when OpenClaw moves to a remote server: signing in on a machine with no browser, and keeping the session alive after the SSH connection drops. An EnvHaven workspace is a remote server with both handled. That route comes first; the same setup on a VPS you run yourself follows.

## The ready-made server: an EnvHaven workspace

1. Create a workspace in any of 11 regions and open it in a browser. It is a Linux server of its own.
2. Tap **Launch**, choose OpenClaw and tap **Sign in**: it runs `openclaw onboard` for you in the terminal. For an API key, choose **Set key** instead and paste `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY` or `GOOGLE_API_KEY`; the workspace keeps it write-only.
3. Start it with one tap: signed in, OpenClaw gets a green dot in the Launch menu and an icon in the workspace's top bar. Support is built in (2026.9.2), so there is nothing to install or update.
4. Give it a task. Ready for `openclaw onboard`; the workspace itself is the sandbox.
5. Disconnect whenever you like. The terminal session stays on the server, and you can come back to it from the browser, from any SSH client, or from your own editor through Haven CLI.

Plans start at $15 a month, billed annually, with an HTTPS preview URL for what OpenClaw builds, Docker on Plus and Pro, and no idle shutdown.

## On a VPS you set up yourself

**Create the server.** Any Linux VPS works (Ubuntu or Debian is the common choice). Log in over SSH and add a regular user with sudo, then run the agent as that user: full-access modes are meant for an unprivileged account, and some refuse root.

**Install OpenClaw.**

```bash
curl -fsSL https://openclaw.ai/install.sh | bash
```

**Sign in without a browser on the server.**

- Run `openclaw onboard`; it sets up a model provider and your chat channels, and reuses a Claude Code or Codex login it finds on the machine.
- For an always-on host, its docs call a provider API key (`<PROVIDER>_API_KEY`, in `~/.openclaw/.env` for the daemon) the most predictable option.

**Keep its gateway running after you disconnect.** OpenClaw's [documentation](https://docs.openclaw.ai) covers running it as a service; tmux (`tmux new -s openclaw`) is enough for a first try.

**Leave it on.** Make sure the server has no idle shutdown, and keep OpenClaw updated yourself.

What a self-managed server leaves to you is the rest: HTTPS and a public address for what OpenClaw builds, updates for every tool, and the machine itself. The [cost comparison](https://envhaven.com/cost) puts the options side by side.

## Keep reading

- [OpenClaw](https://envhaven.com/agents/openclaw)
- [OpenClaw in the browser](https://envhaven.com/agents/openclaw/browser)
- [OpenClaw on iPhone](https://envhaven.com/agents/openclaw/iphone)
- [OpenClaw on iPad](https://envhaven.com/agents/openclaw/ipad)
- [OpenClaw on Android](https://envhaven.com/agents/openclaw/android)
- [OpenClaw on a Chromebook](https://envhaven.com/agents/openclaw/chromebook)
- [OpenClaw on Windows](https://envhaven.com/agents/openclaw/windows)

Source: https://envhaven.com/agents/openclaw/vps
