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 key | Write key | |
|---|---|---|
| List folders, read files and old versions | Yes | Yes |
| Write, rename, move, restore a version, roll a folder back | No | Yes |
| Move a file to Recently Deleted (undoable for 30 days) | No | Yes |
| Make a new drive, to fork one | No | Only a key for every drive |
| Rename or delete a drive | No | No |
| Delete anything for good | No | No |
| Make or revoke keys, change devices, encryption, billing or share links | No | No |
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