Skip to Content

Namespace Devboxes

Create the revokable Namespace token that lets Sandcovery run Linux Devboxes in your own Namespace workspace.

Sandcovery runs Namespace Devboxes in your workspace on a revokable token, which Namespace makes only with its nsc CLI. After nsc login, create a token with only the Devbox and instance grants Sandcovery uses:

nsc token create --name "Sandcovery" --expires_in 8760h --output token \
  --grant '{"resource_type":"devbox","resource_id":"*","actions":["activate","create","expire","fetch","list"]}' \
  --grant '{"resource_type":"instance","resource_id":"*","actions":["exec","get"]}' \
  --grant '{"resource_type":"instance/ingress","resource_id":"*","actions":["list","register"]}'

The command prints JSON, and the token is its bearer_token value. Namespace keeps a revokable token at most 365 days, so create a new one before it expires.

  • Devbox activate, create, expire, fetch, and list start, stop, find, and end the Devboxes Sandcovery creates.
  • Instance exec runs commands and file reads and writes, and get lets Namespace stop a running Devbox on a pause.
  • Instance ingress list and register open the public URL of each port you preview.

Sandcovery runs Devboxes of size S, 4 vCPU and 8 GB, or size M, 8 vCPU and 16 GB, in Namespace's US site. Namespace's Developer plan runs at most 1 Devbox per user and keeps each at most 3 hours.