Choose the right key
- Agent key (
dk_agent_…): for AI Chat, MCP clients, and services reading from the public/v1API. - Write key (
dk_…): for server SDKs and supported server-side write flows.
Generate a key
- Find the key type you need.
- Select Generate key.
- Confirm the action.
- Copy the full value from the one-time dialog.
- Store it in an environment variable or secret manager.
Rotate a key
Rotation invalidates the current key immediately.- Identify every service using the current key.
- Select Regenerate and confirm.
- Copy the new value before closing the dialog.
- Update every dependent environment.
- deploy or restart those services.
- Verify one authenticated request.
If a key is exposed
Regenerate it immediately, update dependents, and review relevant service logs for unexpected use. Never send a full key to support; share only its prefix and masked ending when identifying which credential is involved.Keys belong to the active workspace. A valid key from another workspace will not return or write the data you expected here.