Tutorial: How to Secure Access to OpenClaw (AI Agent) on DigitalOcean with Access Server
Overview
This tutorial explains how to secure access to OpenClaw, an AI agent gateway, using Access Server deployed on DigitalOcean. By routing traffic through Access Server, you can ensure that users can access the OpenClaw service only while connected to the VPN.
In this example scenario:
Brandon, an IT and networking administrator, already uses Access Server in split-tunnel mode to provide employees with secure remote access to private applications. The company now wants to secure access to OpenClaw, ensuring that users can access it only through the VPN.
OpenClaw is an AI agent gateway that connects chat applications (such as WhatsApp, Telegram, Discord, and iMessage) to AI agents like GPT-4o or Claude.
This tutorial shows how to:
Deploy OpenClaw.
Configure its web gateway.
Restrict access using Access Server routing rules.
Verify that access works only through the VPN.
Prerequisites
Access Server (recommended 3.1.0 or newer to use Domain Routing)
OpenClaw deployed via the DigitalOcean Marketplace
SSH access to your OpenClaw server
A VPN client for connecting to Access Server