~/.microsandbox/config.json. Use this file for defaults and host policy that should apply across the CLI and SDKs. Every field is optional, and a missing file behaves like an empty JSON object.
This page covers the global JSON configuration. For reusable per-sandbox YAML loaded with
--conf, see Configuration file. For every global field and accepted value, use the Global config reference.What belongs in global configuration
Global configuration is most useful for choices that should be consistent across commands, applications, or sandboxes:
Keep workload-specific settings with the workload. A sandbox’s image, network policy, mounts, secrets, and lifecycle usually belong in application code, explicit CLI arguments, or a sandbox configuration file.
Start small
You do not need to copy the full reference example. Add only the defaults your environment owns:msb registry login stores the secret in the operating system credential store and writes only metadata to config.json.
How values resolve
For most sandbox defaults, the most specific input wins:config.json changes future sandboxes, not existing ones. Use msb inspect <name> --format json to inspect a sandbox’s effective configuration.
Host-owned policy is intentionally stricter. A global deployment_profile sets the local host’s isolation floor and cannot be weakened by a per-sandbox CLI or SDK option. Backend selection and registry authentication also have their own resolution rules; follow their reference links before relying on fallback behavior.
Common paths through the docs
Global config reference
Look up every field, default, accepted value, and precedence exception.
Sandbox configuration file
Define a reusable sandbox in YAML and load it with
--conf.Backends
Configure profiles and understand local-versus-cloud resolution.
Optimization
Choose resource, placement, storage, and writeback settings from measurements.