Skip to main content
An Agent API Key lets a trusted program, script, or Coding Agent operate your Deepest Account over Public API V1 and @deepest/sdk.
Account-wide credential: An Agent API Key grants access across your entire Account—labels help you identify keys and do not scope permissions to one Computer. Keep it in your trusted caller’s secret store, never inside a Machine running untrusted code, prompts, source control, or runtime URLs.

Create a key in the Console

1

Open API keys

Sign in to the Deepest Console and open API keys → Create API key (or select Set up with an agent / Hand off to an agent on Home).
2

Label and create once

Enter a descriptive Name (up to 80 characters) and click Create API key once.
3

Copy immediately

Click Copy API key and save it immediately in your local or CI secret store. The Console clears the temporary secret once copied or when the dialog closes—it cannot be read back from the key list.
Expected result: The key list shows the new key ID and label without revealing its secret value.

Verify the key without changing a Machine

Install @deepest/sdk (TypeScript SDK) and run a read-only check from your trusted local caller:
This confirms the key and target Account ID without creating, starting, or stopping any Machine.

What an Agent Key can and cannot do

An Agent API Key can call all Machine lifecycle, Exec, resource observation, SSH, Tools, Preview, Share, Desktop, and Vault operations within Account ownership and active entitlement. It cannot call Human-only operations, which require an authenticated Human session in the Web Console (or a Human-session client):
  • Agent Key management: agentKeys.list, agentKeys.create, agentKeys.revoke
  • Invitations: invites.redeem
  • Human-assistance input control: computer(id).assistance.begin, touch, complete
An Agent can request human assistance (assistance.request) and observe handoff state (assistance.get), and must never acquire or replay a human session token to impersonate a person. See Authentication. An Agent Key also cannot bypass entitlement, Memory, Storage, or persistent_computers limits, convert a Sandbox into a Computer, invite collaborators, or access platform administration.

Revoke or rotate a key

To revoke a key in the Console, open API keys, verify the Key ID and Name, choose Revoke, and confirm Revoke key. Test a subsequent read request with the revoked key—expect UNAUTHORIZED (401).
  • Revoking an Agent Key blocks future API requests using that key; it does not Stop running Machines, undo completed operations, or close active SSH/runtime sessions.
  • Signing out of the Console does not revoke issued Agent Keys—revoke unused keys explicitly.
Because there is no separate API-key rotation endpoint, rotate deliberately with create → configure → verify → revoke:
1

Create the replacement key

Generate a new key in the Console and store it in your trusted caller without placing it into prompts or Git.
2

Verify the new key

Confirm resources.get() returns the expected account_id.
3

Revoke the old key

Revoke the previous Key ID in API keys and confirm old callers receive UNAUTHORIZED.
If key compromise is suspected, revoke the affected key immediately and review SSH authorizations, Vault grants, and Share links it may have created.

Recover a lost creation result

agentKeys.create is no-retry: the plaintext secret appears only once. If the dialog closes or storage fails before saving the value, list existing keys in the Console, identify the affected Key ID, and revoke it before creating a replacement. Do not revoke unrelated keys when labels overlap, and never repeat creation blindly. Next: Use Deepest from an Agent, Authentication modes, and Isolation and credentials.