# S3-compatible storage for AI agents

Point boto3, the AWS CLI or rclone at Orbit and give each agent a scoped, expiring key. Every write is a version, and a fork keeps mistakes off the main.

**Let your agents loose on real files. Merge only what you approve.**

Orbit is a cloud drive with an S3-compatible endpoint at `https://s3.orbitfs.io`. A drive is a bucket, so the AWS CLI, rclone, boto3 and the AWS SDKs work after you change the endpoint. The same drive is open to coding agents over [MCP](https://docs.orbitfs.io/guides/agents), to people in the web app, and in Finder on a Mac.

What a plain bucket does not do: every write is a version you can restore, a drive can be forked without copying data, and a key can be limited to one folder and set to expire.

## Why agents write to Orbit over S3

- **Use the tools you already have.** Scripts and workers that speak S3 need a new endpoint and path-style addressing.
- **A write is a version.** `GetBucketVersioning` is always `Enabled`. Versioning cannot be turned off. Restoring adds a new version, so a restore can be undone too. See [Supported operations](https://docs.orbitfs.io/s3/operations).
- **Least access.** A key can be read-only, limited to some drives or one folder, set to expire, and barred from changing agent instruction files.
- **A fork is the boundary.** Give the job a fork and a key that reaches only that fork. Review the result, then merge what you approve.
- **Large files.** Orbit's `x-uls-` extensions write at an offset or patch ranges, sending the bytes that changed. A plain `PutObject` still replaces the whole object.

MCP is the path when the agent can use a remote server and should not hold a key. S3 is the path for batch jobs, workers, CI, and large or binary files.

## Connection settings

| Setting | Value |
| --- | --- |
| Endpoint | `https://s3.orbitfs.io` |
| Region | `auto` |
| Addressing | Path style: `https://s3.orbitfs.io/<drive>/<key>` |
| Signature | AWS Signature Version 4 |
| Credentials | An access key ID and secret |
| Bucket | A drive's name or its drive ID |

A file's path inside the drive is the object key. A key ending in `/` is a folder. Create a key from **Access keys** in the web app. The secret is shown once.

## Connect your tools

### AWS CLI

```sh
export AWS_ACCESS_KEY_ID=ULS...
export AWS_SECRET_ACCESS_KEY=...
export AWS_ENDPOINT_URL=https://s3.orbitfs.io
export AWS_DEFAULT_REGION=auto

aws s3 ls
aws s3 cp ./scene.blend s3://my-drive/renders/scene.blend
```

`AWS_ENDPOINT_URL` needs AWS CLI 2.13 or later. On older versions, pass `--endpoint-url https://s3.orbitfs.io` on each command. To keep Orbit off your AWS account, use a named profile and set `s3.addressing_style` to `path`, as in [Connect a client](https://docs.orbitfs.io/s3/connect).

:::warning
The AWS CLI uses `UploadPartCopy` to copy objects larger than 8 MB between keys, and Orbit does not implement `UploadPartCopy`. Raise the threshold with `aws configure set s3.multipart_threshold 5GB`, or copy with rclone.
:::

### boto3

```python
import boto3
from botocore.config import Config

s3 = boto3.client(
    "s3",
    endpoint_url="https://s3.orbitfs.io",
    region_name="auto",
    config=Config(s3={"addressing_style": "path"}),
)

s3.upload_file("scene.blend", "my-drive", "renders/scene.blend")
```

The client reads `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. `upload_file` uses multipart above the SDK default. A single `put_object` body must be at most 95 MB.

### rclone

```sh
rclone config create orbit s3 provider=Other \
  access_key_id=ULS... secret_access_key=... \
  endpoint=https://s3.orbitfs.io region=auto force_path_style=true

rclone lsd orbit:
rclone copy ./renders orbit:my-drive/renders
```

### AWS SDK for JavaScript v3

```js
import { S3Client, ListObjectsV2Command } from "@aws-sdk/client-s3";

const s3 = new S3Client({
  endpoint: "https://s3.orbitfs.io",
  region: "auto",
  forcePathStyle: true,
});
```

Pass `credentials` from the environment when the process does not already have them. `forcePathStyle: true` is required.

## Give each agent its own key

Give each machine or job its own key, so revoking one does not stop the others. Put keys in environment variables or a secret manager, not in source code or a prompt.

### Access levels

| Level | Allows |
| --- | --- |
| Read only | List and download files. |
| Read and write | Also upload, change and delete files. |
| Full control | Also create, fork and delete drives. |

A key cannot do more than the person who created it. It reaches every drive in the workspace unless you select drives. A request for any other drive gets `NoSuchBucket`.

### Expiry, folder scope and protected instruction files

| Option | Effect |
| --- | --- |
| Expiry | The key stops at the time you set, up to 30 days ahead. |
| Folder scope | The key reaches one folder of one drive. |
| Protect instruction files | The key can read but not change files such as `CLAUDE.md`, `AGENTS.md`, `.claude/` and `.git/hooks`. |

### Child keys

A program that holds a key can create a narrower key without a person signing in. A child can have the same access or less, and the same drives or fewer. It cannot outlive, widen, or remove a guard on its parent. Revoking a key revokes every key created from it.

The request is a signed `POST` to `https://s3.orbitfs.io/_uls/keys`. The body fields are `drives` (required), `access` (`read`, `write` or `admin`), `label`, `expiresIn` (60 to 2,592,000 seconds), `prefix` (one folder, and not with `admin`), and `protectInstructions`. The response is `201` with a `secretAccessKey` that is not shown again. The full request is in [Access keys](https://docs.orbitfs.io/start/access-keys#child-keys).

### Sandbox tokens from an MCP agent

An agent connected over MCP can call `create_sandbox_token` to mint a short-lived S3 key for one drive or one folder, then `list_sandbox_tokens`, `extend_sandbox_token` and `revoke_sandbox_token`. You do not hand it your own key.

The token lasts from 5 minutes to 12 hours. The default is 1 hour. A connection can hold 100 unexpired tokens. Revoking the token stops new requests within about 30 seconds, and revoking the connection revokes its tokens. The secret is returned once.

## Let the agent write to a fork

A fork starts with every file, folder and version the source held, and copies no file data. A full-control key creates one with:

```http
PUT /<new-drive>
x-uls-fork-source: <source drive name or ID>
```

The response headers are `x-uls-drive-id`, `x-uls-fork-source-id` and `x-uls-fork-point`. Mint a child key that reaches only that drive id, with `"access": "write"`. The source stays unchanged until you merge. See [Fork a drive](https://docs.orbitfs.io/guides/forks) and [Review and undo](https://docs.orbitfs.io/guides/review-and-undo).

A workspace can have 50 forks at a time, up to 8 levels deep. A fork uses no storage until something is written to it.

## Two writers, one file

`If-Match` writes only if the object is unchanged since you read it. `If-None-Match: *` writes only if it does not exist. Both are documented on `PutObject`, `CopyObject`, `DeleteObject` and the `x-uls-` extensions. A failed condition is `412 PreconditionFailed` and writes nothing.

```python
obj = s3.get_object(Bucket="my-drive", Key="handoff/plan.md")
s3.put_object(
    Bucket="my-drive",
    Key="handoff/plan.md",
    Body=new_text,
    IfMatch=obj["ETag"],
)
```

A drive has one authority that orders every change, so of two conditional writes racing on one file, one wins and the other gets `412`.

## Change part of a file

| Extension | Request |
| --- | --- |
| Write at an offset, or truncate | `PUT /<drive>/<key>?x-uls-write` |
| Many edits in one version, up to 10,000 | `POST /<drive>/<key>?x-uls-patch` |
| Insert or remove bytes | `PUT /<drive>/<key>?x-uls-splice` |
| Rename in one step | `PUT /<drive>/<new-key>?x-uls-rename` |

Every `x-uls-*` header must be part of the signature. The AWS SDK has no method for these. [Edit files in place](https://docs.orbitfs.io/guides/edit-in-place) has a signer that uses botocore.

## Read the past

`ListObjectVersions` and `GetObject` with `versionId` read history. `x-uls-as-of` with an RFC 3339 timestamp reads a file as of a moment. `POST /<drive>/<key>?x-uls-restore&versionId=<version ID>` adds a new version with the old contents. `DeleteObject` with a `versionId` returns `501`. History is not a backup. Keep a copy of data you cannot lose.

## What is not implemented

`UploadPartCopy`, multi-range `GetObject`, object and bucket ACLs, object tagging, lifecycle, CORS, bucket policies, Object Lock, S3 Select, and Signature Version 2 return `501`. The full list is [Supported operations](https://docs.orbitfs.io/s3/operations). Abandoned multipart uploads are not expired for you. Abort the ones you do not mean to finish.

## Limits

| Limit | Value |
| --- | --- |
| Largest file | 5 TiB |
| Single `PutObject` body | 95 MB |
| Multipart part / part count | 95 MB / 10,000 |
| Write, patch or splice body | 64 MiB |
| Keys per `DeleteObjects` | 1,000 |
| Ranges per `GetObject` | 1 |
| Revoking a key | Within 30 seconds at the S3 endpoint |

At the storage limit, writes return `403 QuotaExceeded`. Reads and deletes still work.

## FAQ

### Does existing S3 code work?

If it uses path-style addressing and the operations above, change the endpoint to `https://s3.orbitfs.io` and the region to `auto`.

### Can versioning be turned off?

No. `GetBucketVersioning` is always `Enabled`. Versions count toward storage. A version shares the bytes it has in common with its neighbors.

### How do I stop a job editing its own instructions?

Turn on **Protect instruction files**, or set `"protectInstructions": true` on a child key.

### Is there an Orbit SDK or CLI?

**Coming soon.** Neither is released. Use any S3 client. The Mac app puts a drive in Finder.

## Related

- [Connect a client](https://docs.orbitfs.io/s3/connect)
- [Supported operations](https://docs.orbitfs.io/s3/operations)
- [Access keys](https://docs.orbitfs.io/start/access-keys)
- [Fork a drive](https://docs.orbitfs.io/guides/forks)
- [Edit files in place](https://docs.orbitfs.io/guides/edit-in-place)
- [History and restore](https://docs.orbitfs.io/guides/history)
- [Connect an agent](https://docs.orbitfs.io/guides/agents)
- [Review and undo](https://docs.orbitfs.io/guides/review-and-undo)
- [Limits](https://docs.orbitfs.io/reference/limits)
