---
title: "Cloud sandboxes and connected hosts"
description: "Run a Desktop thread in a temporary Autohand Cloud sandbox, your own sandbox service, or a connected SSH host, Docker container, or Firecracker VM."
slug: "working-with-autohand-code/code/desktop/sandboxes"
sidebar:
  label: "Cloud sandboxes and hosts"
---

Most threads run on your machine, in your project folder or a worktree. When you want the agent to run somewhere else, pick a different place in the composer's **Work in** menu. The conversation stays in Desktop either way.

<img className="ah-shot-light" src="/images/desktop/app/environment-light.webp" alt="Work in menu showing Local project selected, New worktree, Cloud sandbox with 'You can start 10 more sandboxes' and 'Uses the published branch. Local changes stay local.', and a Connected hosts section." width="2880" height="1800" />
<img className="ah-shot-dark" src="/images/desktop/app/environment-dark.webp" alt="Work in menu showing Local project selected, New worktree, Cloud sandbox with 'You can start 10 more sandboxes' and 'Uses the published branch. Local changes stay local.', and a Connected hosts section." width="2880" height="1800" />

The Work in menu: Local project, New worktree, Cloud sandbox with the slots left on your account, and Connected hosts with Manage connections.

## Autohand Cloud sandboxes

A **Cloud sandbox** runs your coding agent in a temporary Autohand Cloud sandbox. No extra service or connection is needed; it uses your Autohand account.

1. Open **Settings > Sandboxes** and check the **Autohand Cloud** section. It shows whether your account can start sandboxes, how many can run at once, and how many slots are in use. Slots are shared across your devices.
2. In a new thread, open the environment control and choose **Cloud sandbox**.
3. Send your task.

Before you start, know what the sandbox gets and what it does not:

- It **uses the published branch**. Local commits that are not pushed, uncommitted changes, local credentials, dependencies, and running dev servers are not copied. Push what the agent needs first.
- It is **temporary**. Sandboxes expire after the lifetime shown in **Settings > Sandboxes**. Their remote files are deleted when they expire or when you delete the workspace. Your local project and the chat transcript stay in Desktop.

Keep useful results by committing and pushing from the sandbox, or by asking the agent to open a pull request, before it expires.

Access to Autohand Cloud sandboxes depends on your Autohand plan, and team administrators can turn them off. If the section says access is unavailable, use **Manage sandbox access in Console**, then **Refresh cloud access**.

## Your own sandbox service

**Settings > Sandboxes > Your sandbox services** connects your own E2B, Daytona, Modal, Cloudflare, Vercel, or Boat account. Choose **Add connection** and follow the form.

- Configuring a connection does not need an Autohand sign-in.
- Usage is billed by your sandbox service, under its own lifetime and limits.
- These connections are separate from your Autohand Cloud sandboxes and their slots.

Read the connection's readiness result before you rely on it for a task.

## Cloud workspaces

**Settings > Sandboxes > Cloud workspaces** lists the remote checkouts your cloud threads are using, with **Refresh workspaces**. Each cloud thread runs in its own remote checkout. Delete a workspace when you are done with it.

## Connected hosts

You can also run threads on machines you control: an SSH host, a Docker container, or a Firecracker VM.

1. Add the host in **Connections** in the navigation rail (or **Manage connections** in the **Work in** menu).
2. Verify the host in Connections.
3. In a new thread, choose the host under **Connected hosts** in the **Work in** menu.

Hosts run Autohand Code, and the agent on the host signs in on that host. Your Desktop account governs local and cloud execution.

## If something fails

Check which part failed: sign-in, plan access or administrator policy, the slot limit, the sandbox service, or an expired workspace. Each needs a different fix. Changing a local agent's permission mode does not fix any of them.

Handing a conversation to [Autohand Code Web](/working-with-autohand-code/code/desktop/cli-and-web#continue-in-autohand-code-web) is a different feature: it copies the conversation to the web app instead of running the Desktop thread remotely.
