Account variables reach every sandbox: shells, soulsand exec, background commands and agent prompts.
$ soulsand env set ANTHROPIC_API_KEY # prompts for the value
$ echo "$DATABASE_URL" | soulsand env set DATABASE_URL
$ soulsand env list # names and masked previews
$ soulsand env rm DATABASE_URL
Values are encrypted at rest and never shown again. They're written to ~/.froog/env at each start (login shells load it; systemd services don't). Changes reach running sandboxes on their next start. Up to 50 variables, 16 KiB total.
A sandbox's own variables
$ soulsand new box -e KEY=VALUE -e OTHER # -e KEY copies from your shell
$ soulsand fork box box-2 -e KEY=VALUE # forks keep them; add or override
API: "env": {"KEY": "VALUE"}. They override account variables and survive --no-environment, so a platform can give each user's sandbox their own keys and none of yours. Names show in soulsand info; values never do.