Workspace control-plane key
Create a key in Dashboard > API keys. It belongs to one workspace and can be restricted to selected environments and lifecycle scopes.Provider data-plane credential
When an environment becomes ready, its connection includes:environments[id].credentials.headers and apply it exactly
to calls sent to apiBaseUrl or mcpUrl. Header names vary by provider. The
TypeScript client applies them automatically.
Each credential is bound to one workspace, session, environment, and expiration.
The gateway rejects the workspace key and real upstream-provider credentials. It
also rejects Archal credentials scoped to another sandbox or environment.
Key handling
- use separate keys for local development, coding-agent pairing, and CI
- enable only the environments and scopes each key needs
- store keys in a protected credential store or secret manager
- never put a key in a URL, repository, client bundle, prompt, or test log
- keep the workspace key out of the process being tested
- revoke an exposed key immediately
