What it does
OpenClaw Serverless deploys AI agents to Google Cloud Run. Each tenant has a separate service, service account, and storage bucket. Workspaces persist in Cloud Storage, and Telegram or Slack webhooks route messages to the appropriate agent.
What’s included
Multi-Tenant Isolation
Give each tenant its own Cloud Run service, service account, and workspace bucket.
- Separate Cloud Run services per tenant
- Individual service accounts with strict IAM
- Isolated GCS workspace buckets
- Network segmentation and secret scoping
Serverless Architecture
Scale-to-zero GCP Cloud Run instances with persistent workspace storage.
- Zero minimum instances for idle tenants
- Cold starts when an idle service receives a request
- GCSFuse mounts for workspace persistence
- Configurable instance and scaling limits
Messaging Integration
Route messages from Telegram and Slack with request validation.
- Telegram bot webhook with timing-safe signature validation
- Slack app with HMAC-SHA256 signature verification
- Centralized router for tenant routing
- Replay attack prevention
Getting it running
Configure Tenants
Define tenants in a YAML configuration file. Each tenant gets its own Cloud Run service, service account, and workspace.
Deploy with Terraform
Apply Terraform to provision all GCP infrastructure: Cloud Run services, GCS buckets, IAM bindings, and secrets.
Register Webhooks
Set up Telegram bot tokens or Slack app credentials. The router automatically routes incoming messages to the correct tenant.
Scale Automatically
Cloud Run services scale with demand and can scale to zero when idle. Storage, network, and other service costs depend on your setup.
What it helps with
Scale down when idle
Configure Cloud Run to scale to zero when inactive. Persistent storage and other Google Cloud services can still incur charges.
Separate tenant resources
Each tenant has its own service account, workspace bucket, and Cloud Run service, with access controlled through IAM.
Configure tenants in YAML
Add a tenant to the YAML configuration, review the Terraform plan, and apply it to provision the tenant’s resources.
Persistent Agent Workspaces
GCSFuse mounts Google Cloud Storage directly into containers, persisting agent state across container restarts without sync daemons.
Built with
A few things you might be wondering
What is OpenClaw Serverless?
How much does it cost to run?
What messaging platforms are supported?
How is tenant isolation achieved?
Can I add custom agent skills?
Other CloudOn Tools
FinOps Guardian
FinOps Guardian checks AWS and Google Cloud for idle resources and opportunities to reduce costs. Terraform modules deploy scheduled functions that send findings to Slack or email. Review the reports and use dry-run mode before enabling AWS resource cleanup.
Multi-Cloud Runway
Multi-Cloud Runway provides Terraform and Terragrunt templates for cloud accounts, projects, networking, access, and security monitoring. Use the AWS or Google Cloud modules independently and adapt the structure to how your organization works.
SecureOps
SecureOps brings Gitleaks, Trivy, and OSV-Scanner into a GitHub Actions workflow. It scans for exposed secrets, vulnerable dependencies, and infrastructure configuration issues. Read findings in pull request comments or export JSON, HTML, and SARIF reports.