Skip to main content
Every Devbox comes with Namespace workload identity. The nsc CLI is installed and logged in on every Devbox, and uses it to get short-lived credentials.
Your agent can deploy to AWS, read a bucket, or call your own API without you storing a key or pasting one into its prompt. The Devbox proves who it is with a token Namespace signs, and gets back credentials that expire on their own, after one hour by default.

Trust Namespace in your cloud

Set this up once in your cloud account: AWS or GCP. The trust covers your whole workspace, so every Devbox in it, and every other Namespace machine, can use the role you allow.

Get AWS credentials

This writes the credentials to aws.env as environment variables. Source it before running AWS tools.

Get GCP credentials

Point GOOGLE_APPLICATION_CREDENTIALS at /tmp/gcp-creds.json so Google Cloud tools use it.

Get a token for any OIDC service

The token is signed by https://federation.namespaceapis.com, so any service that accepts OIDC tokens can verify it. Set the audience to the value that service expects.
  • Workload federation for the other direction: reaching Namespace from AWS, GCP, or CI.
  • Secrets for services that only accept an API key.
Last modified on December 2, 2026