RemoteSSD for AI agents

Agents get the same files as people, through whichever door fits them: a mounted folder, MCP, the remotessd CLI or a plain HTTPS API. Each agent has its own key, and every write can be made safe against lost updates.

Four ways in

Way in Best for What the agent gets
Mounted folder Agents on your Mac or Linux machine: Claude Code, Cursor, Codex, scripts An ordinary folder. Every file tool works unchanged.
MCP Agents in MCP clients, local or hosted Tools to list, read, write, move, delete and search files
CLI Shell scripts, CI jobs, cloud VMs remotessd ls, cat, cp, mv, rm, write and more
API Your own agent platform Plain HTTPS calls with JSON responses

All four reach the same drive, so a file an agent writes over MCP shows up in your Finder window, and a file you save in your editor is what the agent reads next.

MCP

The RemoteSSD MCP server is a remote server at https://mcp.remotessd.com/mcp. It authenticates with an agent key in the Authorization header.

# Claude Code
claude mcp add --transport http remotessd https://mcp.remotessd.com/mcp \
  --header "Authorization: Bearer $REMOTESSD_KEY"

The server gives the agent these tools:

Tool What it does
list List a folder
read Read a file, or a range of bytes from a large file, with its version
write Save a file, optionally only if it is still at a given version
move Rename or move a file or folder in one step
delete Delete a file or folder
search Search file names and contents
history List a file’s earlier versions
restore Bring back an earlier version of a file

Setup for Cursor and Codex is in the quickstart.

CLI

The remotessd command works anywhere a shell does. It reads the key from REMOTESSD_KEY.

export REMOTESSD_KEY=rsk_live_...
remotessd ls /reports
remotessd cat /reports/weekly.md
remotessd cp ./build/summary.json /reports/summary.json
remotessd write --if-version 41 /plan.md < plan.md

API

Every action is a plain HTTPS call. Files are addressed by path, and each response carries the file’s version in an ETag header.

# Read a file and its version
curl -i https://api.remotessd.com/v1/files/plan.md \
  -H "Authorization: Bearer $REMOTESSD_KEY"

# Save it only if nobody changed it since (safe write)
curl -X PUT https://api.remotessd.com/v1/files/plan.md \
  -H "Authorization: Bearer $REMOTESSD_KEY" \
  -H 'If-Match: "41"' \
  --data-binary @plan.md

Safe writes

A safe write is a compare-and-swap: “save this only if the file is still at the version I read.” It is how two agents update one file without either losing work.

  1. Read the file and note its version.
  2. Make your change.
  3. Write it back with that version: If-Match in the API, --if-version in the CLI, or the ifVersion argument of the MCP write tool.
  4. If someone changed the file in between, the write is refused with 412 Precondition Failed (API) or a version_conflict error (CLI and MCP). Read the new version, reapply your change and try again.

To create a file only if it doesn’t exist yet, write with version 0. That is the pattern for claiming a task or taking a lock file.

In testing, 20 clients each added 1 to a shared counter 5 times with safe writes, and the final value was exactly 100. Stale writes were refused and retried, never lost.

Plain writes through the mounted folder don’t use the check: edits to different parts of a text file merge, and otherwise the last save wins with the earlier version kept in history. See How it works.

Scoped keys

Every agent gets its own key, so you can see what it did and turn it off without touching anyone else. When you create a key, you can limit it:

  • To one folder. The agent can see and change only that folder and what is inside it.
  • To reading only. The agent can read files but can’t save, move or delete anything.
  • To a set time. The key stops working on its own after the time you pick, from 5 minutes to 12 hours. This suits a one-off cloud job.

Combine them: a read-only key for /reports that expires in 30 minutes is a good fit for an agent that summarises reports in CI.

There is no charge per agent or per key.

Patterns that work well

Give each agent a folder. Agents writing to different files never interfere. In testing, 20 clients wrote 200 files into one folder at once and all 200 were intact.

Use safe writes for shared files. A task list, a status file or a counter that several agents update should always be written with a version check.

Claim work with create-only writes. To take a task, an agent creates tasks/123.claim with version 0. Only one agent can succeed.

Write, then rename. Write a large result to a temporary name and rename it into place. Renames happen in one step, so readers never see a half-written file.

Let the change feed do the polling. Clients hear about every change as it happens, so a file watcher on an unchanged folder costs nothing.

Undo instead of guarding. If an agent wrecks something, bring back the file or restore the whole drive to a minute before. Every change is kept for 30 days.

For companies building agents

If you run agents for your own customers, give each customer a drive and each agent a key limited to that customer’s folder. Your agents get a real filesystem, your customers get 30 days of undo, and you never pay per agent or for downloads.

Get started free or read the quickstart.