Scopes & Inheritance
When you create a workspace, you mount the resources it needs — AI credentials, vault secrets, and storage. Every runtime launched inside that workspace automatically inherits those mounts. This means you configure access once and every runtime just works.
How inheritance works
You set the ceiling at the workspace level. Runtimes inherit everything by default. When needed, you can narrow scopes for a specific runtime or agent execution — but you can never widen beyond what the workspace allows.
AI credentials
AI credentials give runtimes access to LLM providers (OpenAI, Anthropic, Google, etc.) for agent-based automation like Stagehand and browser-use.
Managing credentials
Mounting to a workspace
allow— which credential IDs this workspace can usedefaults— the default credential per provider (used by agents automatically)
Any runtime in this workspace can use Stagehand or browser-use agents, and they’ll automatically pick up the correct AI credentials.
Vault
The vault stores secrets like login credentials, API keys, and TOTP seeds. Runtimes use vault entries to authenticate into websites.
Managing secrets
Mounting to a workspace
allow— key prefixes the workspace can accessdeny— key prefixes explicitly blocked (takes precedence over allow)allowRawReads— whether plaintext secret values can be read directly
Runtimes in the workspace can only access secrets that match the allowed prefixes. An agent running in this workspace could auto-login to Salesforce using prod/crm/salesforce but couldn’t touch prod/admin/ secrets.
Storage
Storage gives runtimes a place to save files — screenshots, downloads, exports, CSV files. It’s scoped by workspace namespace.
Using storage
Mounting to a workspace
This connects the workspace to the shared-exports storage namespace. All runtimes in the workspace can read and write files there. Multiple workspaces can share the same storage namespace.
Narrowing scopes
Scopes can be narrowed at the runtime or execution level. This is useful when a workspace has broad access but a specific agent task should be restricted:
The principle: workspaces define the ceiling, runtimes can lower it, nothing can raise it.
Putting it all together
Related
- Workspaces — creating and managing workspaces
- Runtimes — launching and controlling runtimes
- API Reference: AI Credentials — HTTP endpoints for credential management
- API Reference: Vault — HTTP endpoints for secret management

