Spaces
A space controls which resources the runtimes inside it can reach: a storage namespace, vault secrets, and AI provider credentials. Mount what a space needs once, and every runtime you launch inside it inherits that environment.
Create a space
Pass environment to mount resources at creation time:
storage.namespace- the storage namespace runtimes read and write.vault.allow- key prefixes runtimes may decrypt from the vault.ai- the AI providers runtimes may use; shaped as{ aiProviderIds, defaults: { stagehand, browserUse } }.
List and read
list returns one page with a cursor; iter walks every page for you. See Pagination.
Update and delete
Manage the environment
Read or change a space’s mounts after creation:
Launch runtimes in a space
Pass spaceId when creating a runtime so it inherits the space environment:
Next
- Runtimes - launch and configure cloud browsers
- Vault - secrets a space can mount
- Subaccounts - isolate spaces per customer

