Deploys OpenClaw to Google Cloud Platform using the official alpine/openclaw Docker image.
# Copy environment template
cp .env.example .env
# Edit .env with your settings
# Then start the gateway
docker compose up -d openclaw-gatewayThe GitHub Actions workflow automatically deploys to GCP Compute Engine on push to main.
| Secret | Description |
|---|---|
GCP_PROJECT_ID |
Your GCP project ID |
GCP_SA_KEY |
Service account JSON key (base64 encoded) |
GCP_ZONE |
Compute Engine zone (e.g., us-central1-a) |
OPENCLAW_GATEWAY_TOKEN |
Gateway security token |
OPENAI_API_KEY |
OpenAI API key (optional) |
ANTHROPIC_API_KEY |
Anthropic API key (optional) |
GOOGLE_API_KEY |
Google AI API key (optional) |
Trigger the workflow manually from GitHub Actions to deploy a specific image tag:
openclaw_image_tag: Version to deploy (e.g.,latest,2026.2.2)
After deployment, connect via SSH tunnel:
gcloud compute ssh openclaw-gateway --zone=YOUR_ZONE -- -L 18789:127.0.0.1:18789Then open: http://127.0.0.1:18789/
docker-compose.yml- Container orchestrationconfig/openclaw.json- OpenClaw configuration.github/workflows/deploy-gcp.yml- GCP deployment workflow