Quickstart
A key, an install, and a first file written and read back: about five minutes.
A PhantomDisk drive is the folder a person sees in Finder. A program or an AI agent reaches the same drive with an access key, in one of four ways: an MCP server, a command-line tool, an SDK, or a mount on Linux. Pick one; they all read and write the same files.
1. Make an access key
Sign in to the web app and open Access keys. Give the key a name, choose read or write, and pick the drives it may use. The key (pdk_…) is shown once. Put it in the environment, never in code:
export PHANTOMDISK_KEY=pdk_YOUR_KEY
More in Access keys.
2. Install
# macOS and Linux. Puts phantomdisk in ~/.local/bin, checked against its checksum.
curl -fsSL https://api.phantomdisk.com/v1/tools/install.sh | sh
The Python package runs the command-line tool, so it needs that installed too. The TypeScript package needs nothing else.
3. Write a file and read it back
export PHANTOMDISK_KEY=pdk_YOUR_KEY
phantomdisk mkdir /notes
phantomdisk put plan.md /notes # upload, verified before it counts
phantomdisk ls /notes
phantomdisk get /notes/plan.md - # to standard output
phantomdisk history /notes/plan.md # every save, kept for 30 days
The file is now in the drive: it shows in Finder on every Mac signed in to the account, and in the web app.
4. Go back to an older version
Every save makes a new version, and the old ones are kept for 30 days. Going back copies nothing.
phantomdisk history /notes/plan.md
phantomdisk restore /notes/plan.md --at 1h # as it was an hour ago
# A whole folder: see what would change, then do it.
phantomdisk rollback /notes --at 1h --dry-run
phantomdisk rollback /notes --at 1h
5. Fork the drive
A fork is a new drive with everything in the first one, made without copying any file’s data. Let an agent work in the fork; the original does not change. More in For agents.
# A new drive with everything in "My Drive". No data is copied.
phantomdisk drive fork "My Drive" experiment
phantomdisk put plan.md experiment:/notes # work in the fork
phantomdisk get /notes/plan.md - # the original has not changed
Next: Access keys