Skip to main content
Running OpenClaw on a remote VPS instead of your laptop? Follow Run OpenClaw on a VPS. It covers the same brokering pattern as a two-VPS deployment with systemd, a Slack bot, and an optional egress firewall.

Prerequisites

  • A running Agent Vault instance on a separate host from where OpenClaw runs (see installation guide).
  • OpenClaw installed (>= 2026.3.2).
  • An agent token from Agent Vault (create one under Agents → Add agent).
Install the Agent Vault CLI on the host or in the container image where OpenClaw runs, and point it at your Agent Vault instance. The CLI bootstraps OpenClaw’s environment so every outbound API call routes through Agent Vault for credential injection.

1. Install the Agent Vault CLI

Add the agent-vault binary to the environment where OpenClaw runs.
curl --proto '=https' --proto-redir '=https' --tlsv1.2 -fsSL https://get.agent-vault.dev | sh

2. Set environment variables

The CLI reads these on launch to authenticate with Agent Vault and scope its session to the right vault.
export AGENT_VAULT_ADDR="http://<your-host>:14321"
export AGENT_VAULT_TOKEN="av_agt_xxx"
export AGENT_VAULT_VAULT="<VAULT_NAME>"

3. Run the OpenClaw gateway under agent-vault

agent-vault run -- openclaw gateway run
agent-vault run automatically configures OpenClaw’s managed proxy (proxy.enabled) and trusted env proxy for web_fetch, sets OPENCLAW_PROXY_URL, HTTPS_PROXY, HTTP_PROXY, and CA trust variables, and installs the Agent Vault skill. No manual OpenClaw configuration needed.
agent-vault run persists two settings in OpenClaw’s config:
proxy.enabled = true
tools.web.fetch.useTrustedEnvProxy = true
If you later want to run openclaw gateway run without Agent Vault, OpenClaw will refuse to start until you revert these settings.Commands to revert:
openclaw config set proxy.enabled false
openclaw config set tools.web.fetch.useTrustedEnvProxy false

Next steps

Run OpenClaw on a VPS

Production pattern with brokered credentials on a separate host.

Agent protocol

Full request lifecycle end-to-end.

Services

Pre-configure services you know the agent will need.