smolvm sandbox env manages environment variables inside a sandbox. Variables are written to the guest so new login shells and later vm.run(...) calls can read them.
Synopsis
Environment variable changes apply to new guest sessions. In an existing shell, run
source /etc/profile.d/smolvm_env.sh to reload them.Shared options
Path to an SSH private key when the command uses SSH.
SSH user when the command uses SSH.
Host-to-guest control channel. Use
ssh, vsock, or omit it for auto-selection.Print a JSON envelope instead of formatted text.
set
Set one or more variables:unset
Remove variables:list
List variable names with values masked:Key rules
Environment variable names must be valid shell identifiers, such asOPENAI_API_KEY or APP_ENV. Use KEY=VALUE pairs for set; values may be empty strings.
Security notes
Related commands
smolvm sandbox shell- Open a shell that can read the variablessmolvm sandbox file- Copy config files into a sandbox- Control channel - Learn when SmolVM uses SSH or vsock
