Skip to content

Instantly share code, notes, and snippets.

# OpenClaw on GCP with Tailscale: a surprisingly pleasant weekend project
You want an always‑on OpenClaw gateway on Google Cloud, accessible from your devices without opening it to the whole internet. The clean path is: **GCP VM + OpenClaw installer + Tailscale Serve**. This guide walks you from zero to a working dashboard, with a dash of humor and a focus on sane security.
**What are GCP and Tailscale?**
- **GCP (Google Cloud Platform)** is Google’s cloud. In this guide, we use it to run a small virtual machine (VM) that stays on 24/7 and hosts your OpenClaw gateway.
- **Tailscale** is a secure mesh VPN that connects your devices into a private “tailnet.” It lets you reach the gateway safely without exposing it to the public internet, and gives you a clean HTTPS URL via Tailscale Serve.
---
import time
import random
import picar_4wd as fc
from picar_4wd.servo import Servo
from picar_4wd.pwm import PWM
from picar_4wd.ultrasonic import Ultrasonic
# ---------------- CONFIG ----------------
POWER = 10 # ✅ Increased power so car actually moves
SafeDistance = 40 # >= 40cm -> safe