Config file
The CLI stores configuration in~/.machine0/config.env. View and modify settings with machine0 config:
Available settings
| Setting | Description | Default |
|---|---|---|
SSH_KEY_PATH | Directory for SSH key storage | ~/.ssh |
DEFAULT_SSH_USER | Default username for SSH connections | ubuntu |
DEFAULT_VM_SIZE | Default VM size for machine0 new | small |
DEFAULT_VM_REGION | Default region for machine0 new | eu |
DEFAULT_VM_IMAGE | Default image for machine0 new | ubuntu-24-04 |
DEFAULT_ENABLE_PROXY | Enable HTTPS proxy by default | true |
Session
Your authentication token is stored in~/.machine0/auth-token with 0600 permissions. Log in with:
API token
For automation, set theMACHINE0_API_TOKEN environment variable instead of using machine0 login. This takes precedence over the session file.