Reference
How it works
What happens to a file between your app and Orbit's storage, and why the design makes large files fast.
You don't need this page to use Orbit. It explains the behavior the other pages describe.
Two services
Orbit separates deciding who you are from moving your files.
| Service | Does |
|---|---|
| Control plane | Accounts, sign-in, workspaces, members, access keys, billing |
| Data plane | Stores and serves file data, one drive at a time |
A client signs in with the control plane and asks it for a short-lived token for one drive. From then on the client talks to the data plane directly. File reads and writes don't pass through the control plane.
S3 requests arrive at s3.orbitfs.io, which checks the request's signature against your access key and then uses the data plane like any other client. MCP requests arrive at mcp.orbitfs.io, which resolves the agent connection with the control plane and then uses the data plane with a short-lived drive token. The MCP server never holds the signing key or an S3 secret.
One authority per drive
Each drive has its own small database that holds the folder tree, every version, and a log of changes. All changes to a drive go through it, one at a time.
That gives each drive a single order of events:
- A read after a write sees the write.
- Of two conditional writes to the same file, exactly one succeeds.
- A change is either fully recorded or not at all.
Because the authority is per drive, one busy drive doesn't slow another.
Blocks
File data is kept apart from the tree, as blocks.
When a file is stored, it is cut into blocks averaging 2 MiB, with a minimum of 256 KiB and a maximum of 16 MiB. The cut points are chosen from the content, using FastCDC. Each block is named by its SHA-256 hash and never changes once written.
A version of a file is a list of block names and lengths.
version 1 [ a3f1 ][ 77c0 ][ 0be9 ][ d412 ]
version 2 [ a3f1 ][ 91aa ][ 0be9 ][ d412 ] one block replacedContent-chosen boundaries matter when bytes are inserted. With fixed-size blocks, an insertion near the start would shift every later block and change all of their hashes. With content-chosen boundaries, the cut points move with the content, so only the blocks near the insertion are new.
What that buys
Opening a large file is fast. The Mac app maps the bytes an app asks for onto blocks and fetches those. Blocks it has fetched are verified against their hash and kept in the local cache. A cached block can't be stale, because its name is its content.
Saving is fast. The Mac app records a save on local disk first, so the app you're working in gets its answer at local speed. Orbit then cuts new blocks around the changed ranges, uploads the ones the drive doesn't have, and commits a version that lists the new and the reused blocks.
Edits over S3 are small. A write, patch or splice loads the list of blocks, fetches only those the edit overlaps, and commits a new list that reuses the others.
Forks are free. A fork copies the source's tree and version records, not its blocks. Both drives point at the same blocks until one writes something new.
Conflicts
Every commit names the version it was based on. If the file has moved on since, the commit is refused.
- Over S3, the caller receives
412 PreconditionFailedand decides what to do. - In Finder, Orbit keeps the newer remote version in place and saves yours beside it as a conflict copy.
No write is silently discarded in either case.
Content search
Beside the file tree, each drive has a content index that follows its change log. It extracts UTF-8 text and the text layer of PDF and DOCX files, so connected agents can search words, phrases and regular expressions and read the result by line. The index is derived data: it never changes the files, and a result is checked against the file's current version before it is returned. Scanned images and PDFs have no OCR and are not read.
Live updates
The Mac app keeps a connection open to each drive in Finder. When someone else changes a file, the drive sends the change, and Finder refreshes. After sleep or a network change, the app resumes from the last change it saw.
Access tokens
| Credential | Lifetime | Held by |
|---|---|---|
| Session access token | 15 minutes | The app, in memory |
| Refresh token | Rotates on each use | The Mac app keeps it in the macOS Keychain |
| Drive token | 15 minutes | The app, in memory |
| Access key | Until revoked | You |
Short lifetimes are why removing a member or lowering a role takes full effect within 15 minutes.
Where data lives
File blocks are stored in Cloudflare R2, and each drive's authority runs on Cloudflare's network. Data is encrypted in transit with TLS and at rest by the storage provider.