Dive

Reference

Environment variables

Output and logging

DIVE_EVENTSenum<string>

How Dive reports progress and failures on stderr. Unset, stderr is for people.

ValueEffect
jsonlstderr becomes a stream of JSON events, one per line. ask steps can't prompt anyone, so they use their whenUnanswered setting.
githubA failing dive plan run also prints a ::error:: annotation to stdout, which GitHub Actions shows on the run.
DIVE_LOGstring

A log filter for stderr, such as info or dive_core=debug. -v, -vv and -vvv set info, debug and trace.

Secrets

${NAME} references in config.toml and in tool env values read the environment variable NAME first, then the OS credential store: this project's entry, then the one every project shares. See Secret references.

DIVE_SECRET_STOREenum<string>default: os

Whether ${NAME} references read the OS credential store when the environment doesn't set NAME.

ValueEffect
osRead the macOS Keychain, or the Secret Service on Linux, under service dive. Where neither is available, Dive reads the environment only.
noneRead the environment only.

Storage

DIVE_STORAGEenum<string>default: file

Where Dive keeps sessions, runs and the shape cache.

Overrides storage.backend in config.toml.

ValueEffect
fileUnder settings.data_dir.
memoryIn memory only. Nothing is kept between runs.

HTTP service

Set to any value other than 0 to have dive serve serve its OpenAPI document at /openapi.json and an API reference page at /docs.

DIVE_ENVstring

Set to production to make dive serve refuse --dev-key, as [identity].environment = "production" also does.

Workbench

DIVE_WORKBENCH_LOGstringdefault: <data_dir>/workbench.log

Where the workbench writes its log.

Overrides workbench.log_path in config.toml.

Telemetry

The OTLP/HTTP endpoint to export to.

Overrides telemetry.endpoint in config.toml.

OTEL_EXPORTER_OTLP_PROTOCOLenum<string>default: http/protobuf

The export wire format.

Overrides telemetry.protocol in config.toml.

ValueEffect
http/protobufProtobuf over HTTP.
http/jsonJSON over HTTP.

Export timeout, in milliseconds.

Overrides telemetry.timeout_secs in config.toml.

Extra headers as comma-separated key=value pairs, added to the configured ones.

Overrides telemetry.headers in config.toml.

The service.name resource attribute.

Overrides telemetry.service_name in config.toml.

On this page