Skip to main content
Every Devbox can use Namespace Secrets, the encrypted vault shared across your workspace. The nsc CLI, and the vault client in the TS SDK manage it.

Store a secret

Each command returns the secret’s ID, such as sec_abcde12345, which you use in the next steps.

Use a secret in a Devbox

The secret becomes an environment variable in the Devbox.
The Devbox reads secret values when it starts. After you update a secret, stop and start the Devbox to use the new value. Restarting a service isn’t enough, including for secrets set on the service. To give every Devbox from a Blueprint the same secret, set it in the Blueprint.

Use a secret in a service

Last modified on December 2, 2026