# Cloud sandboxes

A cloud sandbox runs the Fide server for a Fide workspace. Every workspace member can see, connect to, pause, resume, and refresh the workspace's sandboxes on `fide.work`; owners can also create, rename, and delete them, change pause defaults, and connect hosting accounts.

> Fide works without an account for your own computers. Cloud sandboxes require signing in with your Fide account and are currently web-only (the desktop app does not offer cloud sandboxes yet).

## Create a cloud sandbox

1. First [connect a hosting account](#choose-who-hosts-new-sandboxes) (workspace owners only).
2. Open **Settings → Environments → Add environment** and select **Cloud sandbox**.
3. Choose a host (**Boat**, **Fly.io Sprites**, or **E2B**) and hosting account, then enter a name and pause timeout.
4. Select **Start sandbox**. Fide provisions the sandbox in your hosting account, starts its server, and connects it for you.

When Fide has nothing connected yet, choosing **Add project** opens **Settings → Environments**, where you can sign in for cloud sandboxes or connect an existing computer running Fide or T3 Code. Switch workspaces from the account menu at the bottom of the Settings sidebar or the workspace menu at the top of **Settings → Environments**.

## Connect, hide, or disconnect environments

- **One-click connect:** Choose **Connect** on any running sandbox to add it to Fide. Fide requests a one-time pairing code and pairs directly—nothing to copy.
- **Synced across your browsers:** Environments you connect are saved to your account per workspace, so they reconnect whenever you return to that workspace in any signed-in browser. Signing out or switching workspaces disconnects them until you come back (manually paired computers stay available).
- **Disconnect everywhere:** Choose **Disconnect on all your devices** or **Remove from all your devices** to clear a saved connection across all your browsers in this workspace without affecting teammates or unlinking the machine from Fide Connect.
- **Hide on one device:** Choose **Hide on this device** in the environment's `⋯` menu (or switch a `fide connect` computer off) to hide it only in this browser. Hidden environments stay listed under **Settings → Environments** with **Show on this device**, and clearing site data shows them again.
- **Remote link:** Add any Fide or T3 Code machine directly under **Settings → Environments → Add environment → Remote link** using a pairing URL or host and code.

## Pause, resume, and server status

Sandboxes pause automatically based on their **Pause after** setting (`1–1,440` minutes, subject to hosting limits) while keeping their filesystem and running processes.

- **When idle (default):** Extends the timer while an agent turn is running or you are actively interacting (sending a prompt, typing in a terminal, or editing files). Idle open tabs and background commands do not keep a sandbox awake, and activity in the last ~30 seconds before pause is best-effort.
- **Force pause:** Enforces a hard time limit even if an agent is still working.
- **Defaults and overrides:** Owners set the workspace default duration and mode under **Settings → Hosting → Defaults** (members can view it there), or override both when creating a sandbox or in its **Details** panel. Mode changes apply immediately; duration changes apply on the next extension, start, or resume.
- **Manual controls & server health:** Any member can **Pause**, **Resume**, or **Refresh status** if state looks uncertain. If a running sandbox's Fide server is not answering, an owner can choose **Start server**, wait up to ~90 seconds, then choose **Check again** (safe even if already running; members can run **Check again** and ask an owner to start it).
- **More actions (`⋯`):** Opens **Sharing & access** (while connected), disconnects on all your devices, or hides on this device. Owners can also **Rename** or **Delete** (permanent).

## Connect your own computer with `fide connect`

1. Install the `fide` CLI (Linux ARM64 and x64 builds currently available):

```bash
curl -fsSL https://fide.work/install.sh | sh
```

2. Run `fide connect` on the computer and approve it in your browser. On a headless or SSH host, run `fide connect --headless` and enter the code at `fide.work/connect/device`.
3. On the approval page, pick the workspace (defaults to your current one) and who can access it:
   - **Only me (default):** Private to you in that workspace; teammates do not see it.
   - **Workspace members (owners only):** Every member of the workspace can see and use the computer.
4. In **Settings → Environments**, choose **Add** once. After that, it reconnects automatically in every browser where you're signed in to that workspace.

The installer places files in `~/.fide` and puts `fide` in `~/.local/bin`. Run `fide update` directly on your computer—or click the one-click update button in the Fide sidebar whenever a newer release is available for a connected cloud sandbox or background-service computer.

> **Sharing & credentials:** Sharing applies to the entire environment (all projects, threads, files, and signed-in provider accounts on that machine). Use API keys or team plans whose terms allow team use on shared machines and cloud sandboxes. To switch between **Only me** and **Workspace members**, choose **Unlink from Fide Connect…** in its `⋯` menu and run `fide connect` again; revoke existing sessions under **Settings → Sharing & access → Authorized clients**.

> **Relay encryption:** `fide connect` tunnels through Cloudflare and the Fide relay. Traffic is encrypted in transit but decrypted at Cloudflare, so it is not end-to-end encrypted. For direct connections (for example over Tailscale), use **Add environment → Remote link** or **SSH** in the desktop app instead.

## Choose who hosts new sandboxes

Only workspace owners can manage hosting. Cloud sandboxes run on hosting accounts your workspace connects; Fide does not host sandboxes itself. Open **Settings → Hosting**, or choose a host in **Add environment → Cloud sandbox** (`Add account…` in the **Account** menu):

- **Boat:** Choose **Add account → Boat** and select **Sign in with Boat** (or **Or paste API key**). If your Boat sign-in expires, choose **Sign in to Boat again** in **Settings → Hosting**. Note that Boat permanently deletes archived sandbox disk data after 14 days of inactivity.
- **E2B:** Choose **Add account → E2B** and create an API key named `Fide` in the E2B project that should pay for the sandboxes.
- **Fly.io Sprites:** Choose **Add account → Fly.io Sprites** and paste a bearer token from your Fly.io Sprites org.

### Manage connected accounts

- **Multiple accounts & defaults:** Connect multiple named hosting accounts and pick any one as the default for new sandboxes. Your connected host bills the account and applies its plan limits; existing sandboxes keep their original account.
- **Rename or rotate keys:** Rename an account in **Settings → Hosting** without re-entering credentials, or replace a rejected key there.
- **Cleanup:** If a connected account is no longer accessible, use **Forget in Fide** on any sandbox whose key was rejected, then delete remaining sandboxes in that host's console to stop charges. Disconnect an account after clearing the sandboxes that use it.
