A key has a set of actions and can be limited to some sandboxes, by name, label or environment. Anything outside its scope gets 403 api_key_action_forbidden or 403 api_key_sandbox_forbidden. A limited key can't change account-wide settings or read Seaeye runs and logs (403 api_key_limited).
$ froog api-key create ci-bot --preset ci --ttl 30d # prints the key once
$ froog api-key create watcher --preset read-only
$ froog api-key create box-agent --sandbox my-box # only my-box
$ froog api-key create team-a --preset ci --label team=a # only sandboxes labelled team=a
$ froog api-key create ci-bot --preset ci --env ci # only the ci environment
$ froog api-key create custom --actions sandbox.read,exec,file.read --ttl 7d
$ froog api-key list # scope, expiry, last use
$ froog api-key rotate key_3f2a9c1d8e7b # new secret, same id and scope
$ froog api-key revoke key_3f2a9c1d8e7b
$ froog api-key actions # every action and preset| Preset | Can |
|---|---|
read-only | Inspect sandboxes, history, files, snapshots, environment |
full-sandbox | Operate existing sandboxes (exec, files, SSH, desktop, URLs, snapshots, stop). No create, start, fork, delete or account changes |
ci | full-sandbox plus create, start, fork, and delete what it created |
admin | Everything, including billing, webhooks and new keys |
Actions: sandbox.create, sandbox.read, sandbox.update, sandbox.stop, sandbox.resume, sandbox.fork, sandbox.delete, sandbox.delete-own, agent.prompt, exec, file.read, file.write, ssh, desktop, host, snapshot.read, snapshot.write, environment.read, environment.write, account.read, account.admin, inbox.read, inbox.write, inbox.send (inboxes), billing.trial (read billing, add a card), *.
The key inside each sandbox. Each sandbox's froog CLI is signed in with a key for that sandbox only: exec, files, SSH, desktop, ports, snapshots, rename, stop. It can't create, start, fork or delete sandboxes, reach others, or change the account. It is replaced at each start, revoked on stop or delete, and not listed. --no-environment sandboxes get none.
- Keys expire after 90 days by default, at most 365, or
--ttl never. Expired:401 api_key_expired. - A key can't create a key with more actions, sandboxes or lifetime, or fewer labels, than its own. Full access needs
--preset admin. - A sandbox-limited key lists only its sandboxes (and ones it created), and sees no keys or audit log.
- An environment-limited key (
--env, repeatable; APIenvironments) sees only those environments and their sandboxes, and creates into its first one. Any other:403 api_key_environment_forbidden. - A label-limited key (
--label KEY=VALUE, repeatable; APIlabels) reaches only sandboxes with all its labels and stamps them on what it creates. Changing them:403 api_key_label_forbidden. The MCP endpoint checks the same. - Revoking stops a key at once; its sandboxes stay.
- Rotating stops the old secret at once. An expired key can't be rotated (
409 api_key_expired). For no downtime: create, deploy, then revoke.