Configuration
rmux merges configuration from several sources so you can keep defaults globally and override them per project.
Resolution Order
Highest precedence first:
- CLI flags
- environment variables
- local
rmux.conf
- global
~/.config/rmux/config.toml
Config Files
Project-local config:
Global config:
~/.config/rmux/config.toml
Write project config:
Write global config:
Show the resolved config after file and environment-variable merges:
rmux configure with no flags starts an interactive setup wizard when run in a TTY. By default it writes ./rmux.conf. Use --global to write ~/.config/rmux/config.toml instead.
Do not commit rmux.conf if it contains API keys or cloud credentials.
Backend Selection
Set the backend explicitly:
rmux configure --backend aws
rmux configure --backend gcp
rmux configure --backend managed
Legacy aliases are still accepted:
local maps to aws
cloud maps to managed
The config file format is TOML with top-level [aws], [gcp], and [managed] tables. A single file can carry defaults for multiple backends, and backend decides which one is active.
Example rmux.conf
backend = "gcp"
apiBaseUrl = "http://localhost:4000"
apiKey = "rmux_dev_key"
[aws]
region = "us-east-1"
authMode = "aws-cli"
profile = "default"
vpcId = "vpc-123456"
subnetIds = ["subnet-a", "subnet-b"]
securityGroupIds = ["sg-123"]
instanceType = "t3.large"
workspaceBucket = "rmux-byoc-workspaces"
previewDomain = "preview.rmux.dev"
[gcp]
projectId = "rmux-dev"
region = "us-central1"
zone = "us-central1-a"
network = "default"
subnetwork = "default-us-central1"
machineType = "e2-standard-4"
previewDomain = "preview.rmux.dev"
[managed]
region = "us-east-1"
subnetIds = ["subnet-a", "subnet-b"]
securityGroupIds = ["sg-123"]
instanceType = "t3.large"
workspaceBucket = "rmux-managed-workspaces"
attachRoleArn = "arn:aws:iam::123456789012:role/rmux-attach"
previewDomain = "preview.rmux.dev"
Backend-Specific Settings
AWS
Important AWS settings:
aws.region
aws.authMode
aws.profile, aws.accessKeyId, aws.secretAccessKey, aws.sessionToken
aws.vpcId, aws.subnetIds, aws.securityGroupIds
aws.instanceType
aws.workspaceBucket
aws.previewDomain
Useful AWS commands:
rmux configure \
--backend aws \
--from-aws-cli \
--vpc-id vpc-123456 \
--workspace-bucket my-rmux-bucket
aws.authMode supports aws-cli, env, and access-key.
GCP
Important GCP settings:
gcp.projectId
gcp.region
gcp.zone
gcp.network
gcp.subnetwork
gcp.machineType
gcp.previewDomain
Useful GCP commands:
rmux configure \
--backend gcp \
--gcp-project-id rmux-dev \
--gcp-zone us-central1-a \
--gcp-network default \
--gcp-machine-type e2-standard-4
gcp.projectId is required. gcp.zone is required in practice, though rmux can infer the region from it. There is no gcp.workspaceBucket setting in the current runtime because GCP sync uses gcloud compute scp, not bucket staging.
Managed
Important managed settings:
apiBaseUrl
apiKey
managed.region
managed.subnetIds
managed.securityGroupIds
managed.instanceType
managed.workspaceBucket
managed.attachRoleArn
managed.previewDomain
Useful managed commands:
rmux configure \
--backend managed \
--api-base-url http://localhost:4000 \
--api-key rmux_dev_key \
--managed-region us-east-1 \
--managed-subnet-ids subnet-a,subnet-b \
--managed-security-group-ids sg-123 \
--managed-workspace-bucket rmux-managed-workspaces
backend=managed always requires an API key. Managed deployments also require their AWS networking and workspace bucket settings to be supplied by the operator or deployment defaults.
Environment Variables
Core environment variables:
RMUX_BACKEND
RMUX_API_BASE_URL
RMUX_API_KEY
AWS environment variables:
RMUX_AWS_REGION
RMUX_AWS_VPC_ID
RMUX_AWS_AUTH_MODE
RMUX_AWS_PROFILE
RMUX_AWS_ACCESS_KEY_ID
RMUX_AWS_SECRET_ACCESS_KEY
RMUX_AWS_SESSION_TOKEN
RMUX_AWS_SUBNET_IDS
RMUX_AWS_SECURITY_GROUP_IDS
RMUX_AWS_INSTANCE_TYPE
RMUX_AWS_WORKSPACE_BUCKET
RMUX_AWS_PREVIEW_DOMAIN
GCP environment variables:
RMUX_GCP_PROJECT_ID
RMUX_GCP_REGION
RMUX_GCP_ZONE
RMUX_GCP_NETWORK
RMUX_GCP_SUBNETWORK
RMUX_GCP_MACHINE_TYPE
RMUX_GCP_PREVIEW_DOMAIN
Managed environment variables:
RMUX_MANAGED_REGION
RMUX_MANAGED_SUBNET_IDS
RMUX_MANAGED_SECURITY_GROUP_IDS
RMUX_MANAGED_INSTANCE_TYPE
RMUX_MANAGED_WORKSPACE_BUCKET
RMUX_MANAGED_ATTACH_ROLE_ARN
RMUX_MANAGED_PREVIEW_DOMAIN
List-valued variables such as subnet IDs and security-group IDs use comma-separated values.
Compatibility Notes
RMUX still accepts legacy JSON config files and the legacy backend names local and cloud, but new writes use TOML and the explicit backend names aws, gcp, and managed.
See the CLI help for the full flag surface:
rmux help
rmux configure --help
Last modified on March 19, 2026