Skip to main content
A spec file declares a Devbox configuration in one place. Pass it to devbox create or devbox acquire with --from:
The file extension selects the parser. Supported extensions are .json, .yaml, .yml, and .toml.

Reading from stdin

Pass - as the path to read the spec from stdin. Stdin is parsed as YAML by default. Use --from_format to override it with json, yaml, or toml:

Fields

Sessions

Each entry in sessions has: Configure one or more session-command pairs to have the Devbox automatically create sessions and run the specified commands on startup.

Environment Variables

Each entry in env has a name and exactly one of value or from_secret_id:
See Managing Secrets to learn how to create and manage vault secrets.

Repository

The repository block supports: Omit repository to fall back to the workspace default. To explicitly create a Devbox with no repository checked out:

Network Policy

The network_policy block restricts outbound network access:

Integrations

The integrations object supports:

Example

devbox.yaml

devbox create

Every flag accepted alongside --from.

Creating Devboxes

Machine sizes, images, repositories, and workspace defaults.

Sessions

What sessions do once the Devbox starts.
Last modified on September 16, 2026