# Portable Volume: installation and agent guide

Service: https://volumes-dev.twin.so
Access: verified @twin.so email addresses only.
MCP endpoint: https://volumes-dev.twin.so/mcp
This guide: https://volumes-dev.twin.so/llm.txt (also /llms.txt)
Public Nix flake/source archive: https://volumes-dev.twin.so/portable-volume.tar.gz

A shared filesystem accessible through MCP, HTTPS, and a locally mounted folder.
Choose the interface from the environment's actual capabilities, not its agent brand:

- Agent supports remote MCP: connect the HTTPS MCP endpoint; no binary or FUSE needed.
- Agent can only call HTTPS: use the authenticated API described below.
- Agent needs shell tools to see ordinary paths: install and mount on that machine,
  provided FUSE and mount permissions are available.
- No FUSE/device access in the sandbox: use MCP/API. Installing this CLI cannot
  grant missing kernel capabilities. MCP access alone does not create a local mount.

## Linux x86_64: guided installation

Run as the person who will own the mount, in an interactive terminal:

```sh
curl -fsSL https://volumes-dev.twin.so/install | bash
```

The installer writes ~/.local/bin/volume and starts a terminal setup flow through
/dev/tty. Setup signs in through the browser, lists or creates a named volume,
asks for the mount folder, and installs a systemd user daemon with a 256 MiB cache.
Choose an empty folder. Existing mounts and nonempty folders must not be replaced.

Mount prerequisites: Linux x86_64 for the prebuilt download, usable /dev/fuse,
FUSE 3/fusermount3 with mount permissions, a systemd user manager, and systemd
257+ user credential encryption. Install FUSE through the distribution's package
manager; a container may still prohibit mounts even when fusermount3 is installed.
Setup configures user lingering for startup at boot and after logout; enabling it
may require administrator authorization. Run the installer as your normal user,
not with sudo.

To rerun setup:

```sh
~/.local/bin/volume setup
```

### If you do not have sudo

Installing the client into ~/.local/bin, signing in, and running the user daemon
do not need root once the host is prepared. Send your sysadmin this request:

> Please enable FUSE 3 and provide fusermount3 with its distribution-supported
> unprivileged mount permissions. My user needs read/write access to /dev/fuse.
> Enable user_allow_other in /etc/fuse.conf, and provide systemd 257 or newer
> with a working user manager and user credential encryption. Enable lingering
> for my username with `loginctl enable-linger USERNAME` so my mount starts at
> boot and continues after logout. For a container, its runtime must also allow
> FUSE mounts and expose /dev/fuse.

On NixOS, the admin must set `programs.fuse.enable = true;` and
`programs.fuse.userAllowOther = true;` declaratively and rebuild the host rather
than editing /etc/fuse.conf. Then run the installer and setup as your own user.
If the host cannot provide these prerequisites, use MCP/API access.

For provisioning without an interactive terminal, install only:

```sh
curl -fsSL https://volumes-dev.twin.so/install | bash -s -- --no-setup
```

Then have the user run ~/.local/bin/volume setup in an interactive terminal.
The --no-setup option does not create an account, authorize access, or mount anything.
On a host without a browser launcher, use `volume setup --no-browser`. Open the
printed link on another device, approve access, and paste the one-time code into
the waiting terminal within 60 seconds. No localhost callback is needed.
Do not ask the user to paste passwords, sign-in codes, tokens, or callback URLs into chat.

Setup prints the exact service name, normally portable-volume-VOLUME_UUID.service.
Inspect or stop that specific managed mount with:

```sh
systemctl --user status portable-volume-VOLUME_UUID.service
journalctl --user -u portable-volume-VOLUME_UUID.service -n 100 --no-pager
systemctl --user stop portable-volume-VOLUME_UUID.service
```

The daemon uses encrypted credentials that survive reboot, refreshes access tokens,
and recovers its local journal. An active login renews its 30-day inactivity limit.
Revocation, 30 days without a successful refresh, or an uncertain token rotation
can require a fresh sign-in. Do not promise uninterrupted service or erase the
journal to recover from an error. If multiple mounts need the same volume, each
writable client needs its own journal directory and mount session.

## NixOS and Linux with Nix

For SSH sessions or machines without a browser, run `volume login --no-browser`
or `volume setup --no-browser`. Open the printed link on another device, sign in,
approve access, and paste the one-time code into the waiting terminal within
60 seconds. This flow does not listen on localhost or require port forwarding.
Only paste the code into the terminal where you started sign-in; never send it
to an agent or another person. The code is bound to that login attempt with PKCE.

Do not edit /etc/fuse.conf on NixOS: it is generated from Nix configuration.
For the installer route, merge these options into the existing system configuration:

```nix
programs.fuse.enable = true;
programs.fuse.userAllowOther = true;
```

Apply them with the user's normal nixos-rebuild workflow (including their existing
flake/host selection), then run ~/.local/bin/volume setup. These host options do
not install OAuth credentials or select a mount folder.

Alternatively, install the published flake; packages.<system>.default is the CLI:

```sh
nix profile install https://volumes-dev.twin.so/portable-volume.tar.gz
volume setup
```

To manage the client declaratively, add this input to the existing flake:

```nix
inputs.portable-volume.url = "https://volumes-dev.twin.so/portable-volume.tar.gz";
```

Bind portable-volume in the flake outputs arguments, then append these entries to
that host's existing nixosSystem modules list:

```nix
portable-volume.nixosModules.client
{ services.portable-volume-client.enable = true; }
```

Use a system or user-profile installation for the daemon so Nix garbage collection
cannot remove its executable. `nix run` remains suitable for foreground CLI commands.

The client module installs the CLI and configures FUSE. Apply the system configuration,
then run `volume setup` as the intended user to choose the volume and folder and
configure its user daemon. Do not overwrite the user's flake or replace existing
modules. Pin the archive through the flake lock for reproducible configuration.
Linux aarch64 has a Nix build target; the curl prebuilt installer is x86_64 only.

## macOS

The Apple Silicon desktop app was verified on macOS 26.7 with macFUSE 5.4:
sign-in, volume creation, mounting, file read/write/rename/delete, and unmount.
The CLI also preserved content and metadata after remount and enforced read-only
mounts. FSKit remains experimental: one intermittent mount startup failure was
observed. The current download is an unsigned preview.

### Install the desktop app

Download https://volumes-dev.twin.so/downloads/Portable-Volume-arm64.dmg,
open the disk image, and drag Portable Volume into Applications. You can also
copy it to ~/Applications if you cannot write to /Applications. Open the app,
sign in, select or create a volume, and use Mount. The download includes the CLI
mount helper. It requires an Apple Silicon Mac running macOS 15.4 or newer.
Checksum: https://volumes-dev.twin.so/downloads/Portable-Volume-arm64.dmg.sha256
If macOS blocks the unsigned app, use its per-app Open Anyway approval in
Privacy & Security. Do not disable Gatekeeper globally.

### Prepare mounting

Install macFUSE 5.4+ from https://macfuse.github.io and follow its backend setup
instructions. In the app, keep FSKit selected and click Prepare mount folder;
macOS requests administrator approval if the private folder is missing.
The Linux curl installer does not install a Mac client. For terminal access,
use the CLI included in the app (adjust the path if installed in ~/Applications):

```sh
"/Applications/Portable Volume.app/Contents/MacOS/volume" login
mkdir -p ~/mount
"/Applications/Portable Volume.app/Contents/MacOS/volume" mount VOLUME_UUID ~/mount --cache-bytes 268435456 --multiple-writers
```

Replace VOLUME_UUID with an ID from list_volumes; choose an empty, unmounted folder.
The command above uses the kernel backend and requires macFUSE kernel-extension
approval. On macOS 15.4+, FSKit is available with `--fskit`:

```sh
sudo install -d -m 700 -o "$(id -u)" -g "$(id -g)" "/Volumes/portable-volume-$(id -u)"
"/Applications/Portable Volume.app/Contents/MacOS/volume" mount VOLUME_UUID "/Volumes/portable-volume-$(id -u)/VOLUME_UUID" --fskit --cache-bytes 268435456 --multiple-writers
```

FSKit mounts require a private parent directory directly under /Volumes, owned
by the mounting user with mode 0700. This blocks other local users despite
FSKit's noowners behavior. macFUSE creates the final mount folder if absent.
Enable macFUSE in System Settings > General > Login Items &
Extensions > File System Extensions. If prompted to register the extension,
complete registration and restart macOS before enabling it. AWS Mac instances
boot from external EBS volumes; use FSKit there because macOS blocks third-party
kernel extensions on externally booted systems. Setup reference:
https://github.com/macfuse/macfuse/wiki/Getting-Started

This foreground command is not a macOS boot daemon. Keychain stores authentication.
The desktop app offers sign-in, volume selection/creation, an FSKit checkbox,
mount folder and cache settings, and an Unmount button. Keychain may ask permission
for both the app and its mount helper. The app manages mounts while it is running;
automatic startup across reboots is not configured on macOS.

### macOS without administrator access

Ask your sysadmin to install macFUSE 5.4 or newer, allow the macFUSE FSKit
extension, and create `/Volumes/portable-volume-UID` owned by your user with mode
0700. Provide your username and numeric UID (`id -u`). The admin should substitute
your username, primary group, and UID in:

```sh
sudo install -d -m 700 -o USERNAME -g PRIMARY_GROUP /Volumes/portable-volume-UID
```

Do not use the admin's own UID or ownership for this folder. Once these
prerequisites are ready, install the app into ~/Applications, sign in, and mount
as your normal user. Administrator approval may depend on the Mac's management policy.
The pinned Nixpkgs targets Apple Silicon, not Intel Mac. MCP access needs no macFUSE.

## Windows and restricted agent sandboxes

There is no native Windows mount client. Use a remote MCP client or HTTPS API.
WSL may use the Linux route only after checking the actual environment: usable
/dev/fuse, mount permissions, FUSE 3, a working systemd user manager, and systemd
257+ credential support. Do not assume all WSL installations meet these requirements.

For hosted coding agents, check whether the mount exists in the same VM/mount
namespace that runs their shell. A mount on the user's laptop is not automatically
visible inside an agent's remote sandbox. Do not claim FUSE support for Grok, Dots,
Muse, or other providers without verifying that particular runtime.

## Coding agents: connect remote MCP

Use these instructions after the coding agent itself is installed. Merge config
entries into existing files; preserve unrelated servers. Complete the client's
browser OAuth prompt, then verify that list_volumes is discoverable. All clients
should sign in to the same Portable Volume account to share volumes. Each MCP
client owns its authentication; it does not automatically reuse the CLI daemon's
credentials. These registration examples follow the official client documentation;
they are not claims of end-to-end testing in every client version.

### Claude Code

```sh
claude mcp add --scope user --transport http portable-volume https://volumes-dev.twin.so/mcp
claude mcp list
```

In Claude Code, run `/mcp`, select portable-volume, and complete browser authentication.
Use HTTP transport, not a local stdio command for this hosted server.

### Codex CLI / IDE extension

```sh
codex mcp add portable-volume --url https://volumes-dev.twin.so/mcp
codex mcp login portable-volume
codex mcp list
```

CLI and IDE extension use Codex MCP configuration; reconnect/restart the extension
if needed after registration. `/mcp` in the CLI shows active servers. Local CLI
configuration is not a way to mount a directory into hosted ChatGPT or another VM.

### OpenCode

For the configuration format documented at opencode.ai/docs/mcp-servers, merge
into opencode.json or the existing applicable OpenCode config:

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "portable-volume": {
      "type": "remote",
      "url": "https://volumes-dev.twin.so/mcp",
      "enabled": true
    }
  }
}
```

```sh
opencode mcp auth portable-volume
opencode mcp list
```

OpenCode v2 documents entries under `mcp.servers` instead: place the same
portable-volume object under that map when using v2. Follow the installed version's
schema; do not mix the two layouts. OAuth discovery handles public-client registration.

### Cursor

Merge into ~/.cursor/mcp.json for a user-wide connection, or .cursor/mcp.json in
the project for a project connection:

```json
{
  "mcpServers": {
    "portable-volume": {
      "url": "https://volumes-dev.twin.so/mcp"
    }
  }
}
```

Enable the server in Cursor's MCP settings and follow its OAuth connection prompt.
Do not add a fabricated API key or copy another client's refresh token into this file.

## Authentication and filesystem protocol

Connect to /mcp using Streamable HTTP and OAuth. Discover authorization through
/.well-known/oauth-protected-resource/mcp. Register a public client, use the
code flow with S256 PKCE and resource equal to this server's /mcp URL, then let
the user sign in or create an account and approve access. Scope: volumes.
Send Authorization: Bearer <access token> on MCP and filesystem API requests.
Refresh credentials through /oauth/token; never reuse a rotated refresh token.
Volumes belong to the signed-in account. Mount session IDs fence writers;
they are not authentication credentials. Never request passwords in chat.

Use list_volumes to find your volume IDs and names. Pages default to 50 entries
(maximum 100); pass next_cursor as after until next_cursor is null. HTTP equivalent:
GET /v1/volumes?limit=50&after=VOLUME_UUID (omit after for the first page).

Create a volume with an optional name (1–128 characters after trimming, no control
characters). Names are labels and may repeat; use volume IDs in every operation.
New S3 volumes have dedicated private buckets. mount_volume with read_write defaults
writer_mode to single_writer (exclusive). Use multiple_writers for concurrent MCP
and FUSE writers. SingleWriter and MultipleWriters sessions cannot coexist.
Renew sessions before 60 seconds. Use a separate session for each client.
Use read_only/list_files/read_file to observe published data.

File mutations publish an atomic namespace snapshot with expected_revision.
Use write_file for small files. For larger files, prepare_upload, PUT the bytes
with If-None-Match: *, then commit_files referencing the returned object ID.
An upload is not a published write. Never retry a conflicting commit blindly:
read the current revision and reconcile first. Release ownership after publishing.

Shared sessions use acquire_files with all affected file IDs; create/delete/rename
also require parent directories and replaced files. All resources are acquired
atomically or the request fails immediately. Build before/after entry patches from
the returned fresh snapshot. publish_changes validates fencing tokens and applies
patches atomically without replacing unrelated entries. release_files after success.
For inline files, write_file performs this sequence, including upload, in either
writer mode. expected_revision must match its initial snapshot. Use a dedicated
session for inline writes, never the same session as a running FUSE client.

HTTPS API: POST /v1/create, /delete, /snapshot, /mount, /renew, /release, /upload,
/download, /commit, /acquire-files, /release-files, /publish. JSON types are defined
in src/model.rs and src/mutations.rs. Transfers use separate
short-lived URLs. Never attach your service API token to S3 requests.

Readers are eventually consistent. FUSE fsync waits for object upload and metadata
commit. Writable CLI mounts journal changes locally before acknowledgment and recover
on restart when touched remote entries have not conflicted. Preserve the journal
disk; losing that disk can lose unpublished data. Expired writers cannot commit.

Prototype limits: 4096 namespace entries, 64 MiB per file, 1 MiB per MCP inline
read/write, 64 shared sessions and 4096 active resource leases per volume. No
symlinks, hard links, POSIX advisory locks, or executable files.
The cache is in memory and bounded by --cache-bytes. Dirty data is never evicted.
Deletion removes the namespace; physical objects are retained until explicit cleanup.
S3 encryption at rest and HTTPS protect production data; this is not end-to-end encryption.

## Official client references

Client instructions checked on 2026-10-07; installed versions may differ.

- Claude Code MCP: https://code.claude.com/docs/en/mcp
- Codex MCP: https://learn.chatgpt.com/docs/extend/mcp
- OpenCode MCP: https://opencode.ai/docs/mcp-servers/
- OpenCode v2 MCP: https://opencode.ai/v2/docs/mcp-servers
- Cursor MCP: https://cursor.com/docs/mcp
- macFUSE installation: https://macfuse.github.io

Codex commands were also checked against the installed CLI's `mcp add --help`
and `mcp login --help`.
