How to Install OpenClaw on Ubuntu VPS: Configuration & Dashboard Access
A step-by-step guide to installing OpenClaw on Ubuntu VPS. Learn how to handle headless authentication and access the Dashboard securely via SSH Tunneling.

How to Install OpenClaw on Ubuntu VPS (Step-by-Step Guide)
Deploying OpenClaw on a VPS ensures your AI assistant operates stably 24/7, independent of your personal computer. However, installing it on a Linux environment without a graphical interface (headless) presents some challenges regarding account authentication and accessing the management Dashboard.
This article will guide you through overcoming these technical barriers, from running the installation commands to configuring SSH Tunneling for secure remote management of OpenClaw.
Installation Guide for OpenClaw on Ubuntu VPS
Step 1: Connect to the VPS
First, you need to connect to your VPS. I highly recommend using MobaXterm (instead of Putty or the default Terminal) because we will need its built-in Tunneling feature in the later steps.
- Open MobaXterm.
- Select Session -> SSH.
- Enter your VPS IP in the Remote host field.
- Enter the username (usually
root) and Port (default22).
Step 2: Run the Installation Commands
In the VPS command line window (Terminal), run the following commands sequentially to download and install OpenClaw:
1. Download and run the automated install script:
curl -fsSL [https://openclaw.ai/install.sh](https://openclaw.ai/install.sh) | bash -s -- --install-method git
2. Initialize Configuration and Daemon:
openclaw onboard --install-daemon
The system will ask for some configuration details:
- Select Yes to agree to the terms.
- Select QuickStart for a fast installation and press Enter.
Note on Authentication: When you reach the OpenAI/LLM authentication step, the terminal will display a link looking like http://localhost:xxxx/auth.... Since the VPS has no browser, you must not click this link directly. Follow this trick:
- Highlight the link in MobaXterm, hold Ctrl + Right Click and select Copy.
- Paste that link into the browser on your personal computer (Windows/Mac).
- Log in to your OpenAI/Service account.
- Once done, the browser will redirect to a localhost link containing a token code. Copy this entire result link.
- Go back to MobaXterm, paste the copied link, and press Enter.
Step 3: Connect Telegram and Pair VPS
After successfully installing the core, you need to connect it to a Telegram Bot:
- Create a new Bot on Telegram via BotFather to get the API Token.
- Run the following command to activate the OpenClaw node with a custom display name:
npm i -g openclaw
openclaw node run --host localhost --port 18789 --display-name "My VPS Bot"
At this point, your Telegram Bot is active and can respond to messages.
How to Access the OpenClaw Dashboard from Your Computer (Tunneling)
This is the most critical part. By default, the OpenClaw management Dashboard only runs at localhost:18789 on the VPS. To access this interface from your home computer without opening a public port (which is insecure), we use a technique called SSH Tunneling.
1. Retrieve the Login Token
First, you need to get the security Token for OpenClaw on the VPS. Use the following command to read the configuration file:
cat /root/.openclaw/openclaw.json
Find the line containing the token code (usually around line 24 in the JSON file).
lay token openclaw
The full access link will have the structure: http://127.0.0.1:18789/?token=YOUR_TOKEN_HERE
2. Configure Tunnel on MobaXterm
Return to the main interface of MobaXterm, look at the toolbar, and select the Tunneling icon.
lay token openclaw
A new window will appear; configure it as follows:
- Click the New SSH tunnel button.
- Check the Local port forwarding option.
- Fill in the parameters exactly:
- Forwarded port:
18789(Port on your local computer) - SSH server: Enter your VPS IP address.
- SSH login:
root. - SSH port:
22. - Remote server:
127.0.0.1(Internal address of the VPS). - Remote port:
18789(OpenClaw port on the VPS).
- Click Save.
cau hinh tunnel mobaxterm
After saving, click the Play (Start) button (triangle icon) to start the Tunnel.
If you see the status icon turn green with two rotating arrows, the connection is successful.
cau hinh tunnel mobaxterm
3. Open the Management Dashboard
Now that the secret tunnel is established, you just need to open the Chrome/Edge browser on your computer and visit:
http://127.0.0.1:18789/?token=YOUR_TOKEN_CODE
truy cap dashboard openclaw vps
Pro Tip: OpenClaw runs as a service (Daemon) on Ubuntu. Even if you close MobaXterm or reboot the VPS, OpenClaw will still run automatically in the background. However, to re-access the Dashboard, you must manually turn on the SSH Tunnel in MobaXterm again.
Related Products
Related Posts

Best Budget AI IDEs in 2026: VS Code + Copilot, Cursor, Windsurf, Zed, Replit, Codex and More
A practical roundup of budget-friendly AI IDEs in 2026: features, pricing, pros/cons, and quick recommendations for solo devs, teams, and learners.

LobeHub Explained: Centralized AI Management & Multi-Model Workflows
LobeHub is an open-source AI workspace that centralizes multiple models, agents, and plugins to build scalable, automated AI workflows.

Google Stitch Explained: AI Tool Turning Ideas into Interactive UI/UX & Code
Google Stitch is an AI-powered tool from Google Labs that transforms text or sketches into interactive UI/UX designs and production-ready code.

What Is ClawdBot? A Personal Multi-Platform AI Assistant & Self-Hosting Guide
ClawdBot is an open-source AI Agent running on Telegram, Discord, and Web. A complete guide to deploying ClawdBot on Raspberry Pi, Proxmox, and VPS.




