---
title: Cloud sessions and boxes
description: Run agents on Claude's computers or on a machine in the cloud, and still see them in your sidebar.
---

Two ways to run an agent that keeps going when your computer sleeps: a **Claude cloud session** runs on Claude's computers, and a **Cloud Box** runs a session on a Linux machine in the cloud.

## Claude cloud sessions

A Claude cloud session is Claude Code on the web, with its row in your sidebar.

1. **Pick Claude (cloud)**

    In New Thread (**Cmd+N**), choose **Claude (cloud)**, the orange cloud, and the Claude account
    it runs on.

2. **Send the task**

    Type the task in the chat box and send it. The session starts on claude.ai from the project's
    GitHub repository, on a new `claude/…` branch.

- The session then shows its claude.ai page, where you read Claude's replies and type follow-ups. The **Cloud** button in the header can show its terminal instead, open it on claude.ai, or **Bring to This Computer**, which continues it here in a new worktree.
- Its row shows working, needs you and done like any session, and tells you what reached GitHub, like "Pull request #12 opened".
- Each Claude account has its own claude.ai sign-in in Ghostex. Sign in ahead of time from **Settings > Accounts**, under **claude.ai in Ghostex**.
- When the account runs out of usage, the row says when it resumes and offers **Start a Copy on Another Account…**.

You need Claude Code signed in with a Claude plan (not an API key), the repository on GitHub with Claude's GitHub app, and a cloud environment set up on claude.ai. Cloud sessions count against your plan's limits.

## Cloud Boxes

A **Cloud Box** is a Linux machine on your own [Instabox](https://instabox.sh) or [Boat](https://boat.dev) account that runs a Ghostex session: the agent works there, not on your computer. Ghostex never bills you; your provider account does.

1. **Connect a provider**

    Open **Settings > Cloud Boxes > Providers** and click **Connect**. Free plans and trials work.

2. **Start a chat on a box**

    In a new chat, pick **Cloud Box** as where it runs, then what it starts from and its size. Nothing starts or costs anything until you send the first message.

- The box chip in the session's header shows its state, running time and cost, with **Pull branch**, **Open PR**, **Stop** and **Delete**.
- Each box session works on its own new branch. **Pull branch** brings it to your computer as a worktree.
- **Settings > Projects > Cloud box** sets the project up once, so new boxes start ready.
- A box with nothing to do pauses or stops after 15 minutes. **Settings > Cloud Boxes** shows this month's spend and lets you set a monthly cap.

Cloud Boxes are on by default and show once you've connected a provider. Turn them off in **Settings > Extensions** (Built-in). Under **Advanced** in Settings > Cloud Boxes, **More providers** runs boxes through agentbox instead: on your computer with Docker, on other clouds, or on your own server (macOS and Linux).

:::warning
Cloud boxes cost money while they run. **Settings > Cloud Boxes > Your boxes** lists every box, with **Stop** and **Delete**.
:::

:::tip[Stuck? Ask Ghostex]
Open the sidebar menu (the three lines at the top of the sidebar), choose **Ask Ghostex AI** and ask anything about Ghostex, like "How do I start a chat on a Cloud Box?". [How Ask Ghostex works](/ask-ghostex)
:::
