Skip to main content

Config file

The CLI stores configuration in ~/.machine0/config.env. View and modify settings with machine0 config:
machine0 config get
┌───────────────────────────────────────────────┐
│ SSH_KEY_PATH         ~/.ssh                   │
│ DEFAULT_SSH_USER     ubuntu                   │
│ DEFAULT_VM_SIZE      small                    │
│ DEFAULT_VM_REGION    eu                       │
│ DEFAULT_VM_IMAGE     ubuntu-24-04             │
│ DEFAULT_ENABLE_PROXY true                     │
└───────────────────────────────────────────────┘
Set one or more values:
machine0 config set DEFAULT_VM_SIZE=large DEFAULT_VM_REGION=us

Available settings

SettingDescriptionDefault
SSH_KEY_PATHDirectory for SSH key storage~/.ssh
DEFAULT_SSH_USERDefault username for SSH connectionsubuntu
DEFAULT_VM_SIZEDefault VM size for machine0 newsmall
DEFAULT_VM_REGIONDefault region for machine0 neweu
DEFAULT_VM_IMAGEDefault image for machine0 newubuntu-24-04
DEFAULT_ENABLE_PROXYEnable HTTPS proxy by defaulttrue

Session

Your authentication token is stored in ~/.machine0/auth-token with 0600 permissions. Log in with:
machine0 login
Log out (revokes the token):
machine0 logout

API token

For automation, set the MACHINE0_API_TOKEN environment variable instead of using machine0 login. This takes precedence over the session file.