Access keys

What a key can and cannot do, how to limit one to a drive, and how to turn it off.

An access key lets a program use a drive without signing in as you. Make one on the web app’s Access keys page, or with the tool after phantomdisk login:

phantomdisk keys create --label "build agent" --access write --drive "Agent drive"
phantomdisk keys list
phantomdisk keys revoke <id>

Without --access a key is read-only. Without --drive it can use every drive in the account.

What a key can do

Read keyWrite key
List folders, read files and old versionsYesYes
Write, rename, move, restore a version, roll a folder backNoYes
Move a file to Recently Deleted (undoable for 30 days)NoYes
Make a new drive, to fork oneNoOnly a key for every drive
Rename or delete a driveNoNo
Delete anything for goodNoNo
Make or revoke keys, change devices, encryption, billing or share linksNoNo

Limit a key to one drive

Give an agent a key for one drive and that drive is all it can see: every other drive answers as if it did not exist. This is the safe default for an agent. A key limited to some drives cannot make a new drive.

Encrypted accounts

With encryption on, a key has two parts joined by a dot: pdk_….<key>. The second part is the account’s own key. It is never sent to us; the tool or SDK uses it on your machine to open names and files. Two things follow:

  • Treat the whole key like a password. Whoever holds it can read what the key can reach.
  • The drive limit is enforced by our servers, not by the encryption: the second part could open any file of the account if the server handed it over. A separate key for each drive is planned.

Turning a key off

Revoke a key on the Access keys page or with phantomdisk keys revoke. New requests stop at once. A download already under way can run for up to an hour, because its link was handed out before.

Next: MCP server