GCP BYOC Guide
Use backend=gcp when you want rmux to talk directly to your own GCP project.
What This Backend Does
With the GCP backend, rmux:
- validates your active
gcloud identity and resolved project settings
- creates one Compute Engine devbox VM per environment
- syncs your project into
/workspace
- uses
gcloud compute ssh for attach and remote command flows
- uses
gcloud compute scp for directory sync
There is no RMUX control plane requirement for this mode.
Prerequisites
You should have:
- a GCP project you control
- the
gcloud CLI installed and authenticated
- Compute Engine API enabled in the target project
- a project ID and zone for the devbox VM
- a VPC network, and optionally a subnetwork, if you are not using the default network
The shortest setup path is:
cd /path/to/project
rmux configure \
--backend gcp \
--gcp-project-id rmux-dev \
--gcp-zone us-central1-a
You can also set the full network and machine configuration explicitly:
rmux configure \
--backend gcp \
--gcp-project-id rmux-dev \
--gcp-region us-central1 \
--gcp-zone us-central1-a \
--gcp-network default \
--gcp-subnetwork default-us-central1 \
--gcp-machine-type e2-standard-4 \
--gcp-preview-domain preview.example.com
gcp.projectId is required. gcp.zone is also required in practice, though rmux can derive the region from it if you omit gcp.region.
Validate GCP Setup
Run:
This check is read-only. It validates:
- the active
gcloud account
- project access and project number resolution
- Compute Engine API enablement
- zone reachability
- network existence
- optional subnetwork existence
- default Compute Engine service-account resolution
It does not create temporary resources to prove create or delete permissions.
Create And Use The Environment
rmux new
rmux session ls
rmux session new -s agent-a
rmux session attach -t agent-a
Run commands remotely without attaching:
rmux session run -t agent-a bun install
rmux session run -t agent-a bun test
Attach And Sync Model
The current GCP path is SSH-based:
- attach and remote commands use
gcloud compute ssh
rmux env sync copies the current directory with gcloud compute scp
- the runtime does not use a
gcp.workspaceBucket
That makes the GCP runtime different from AWS and managed, which stage sync archives through S3-backed flows.
Useful Commands
rmux gcp-check
rmux env status
rmux env sync
rmux env down
rmux env destroy
rmux usage
Last modified on March 19, 2026