Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

docs(spaces): Spaces-first docs with a five-minute quickstart and task guides (CUA-1863) (#5426)

Francesco Bonacci3a683506167b
diff --git a/README.md b/README.md
index 1cdbc8ffe9..52ce51a6eb 100644
--- a/README.md
+++ b/README.md
@@ -84,7 +84,7 @@ On macOS the installer selects the Cua Spaces app by default and adds the `cua`
Spaces is free for individuals. Pro is $18 a month and Teams is $30 per seat a month, available now from 1 seat. See [pricing](https://cua.ai/pricing). The app is source-available under [FSL-1.1-MIT](#licensing).
-**[Quickstart](https://cua.ai/docs/spaces/quickstart)** | **[Teleport an app](https://cua.ai/docs/spaces/guides/teleport-an-app)** | **[Share a Space](https://cua.ai/docs/spaces/guides/share-a-space)** | **[Host Spaces on a spare Mac (relay, Tailscale or SSH)](https://cua.ai/docs/start-here/host-spaces-on-your-spare-mac)** | **[Your own cloud](https://cua.ai/docs/cua-sdk/guides/your-cloud)** | **[App source](apps/cua-spaces-macos/README.md)**
+**[Quickstart](https://cua.ai/docs/spaces/quickstart)** | **[Teleport an app](https://cua.ai/docs/spaces/guides/teleport-an-app)** | **[Share a Space](https://cua.ai/docs/spaces/guides/share-a-space)** | **[Host Spaces on a spare Mac (relay, Tailscale or SSH)](https://cua.ai/docs/spaces/guides/host-spaces-on-your-spare-mac)** | **[Your own cloud](https://cua.ai/docs/cua-sdk/guides/your-cloud)** | **[App source](apps/cua-spaces-macos/README.md)**
---
diff --git a/docs/content/docs/cua-cli/guides/authentication.mdx b/docs/content/docs/cua-cli/guides/authentication.mdx
index dbbd55a857..301700424a 100644
--- a/docs/content/docs/cua-cli/guides/authentication.mdx
+++ b/docs/content/docs/cua-cli/guides/authentication.mdx
@@ -73,8 +73,9 @@ cua auth keys rm <id>
## Targeting staging
`CUA_ENV=staging` points the CLI, the SDK, `cua daemon` and the Cua Spaces app
-at the Cua staging deployment. Unset, or `prod`, is production. Any other value
-makes `cua` exit with code `2` rather than fall back to production.
+at the Cua staging deployment, which is for testing Cua itself. Unset, or
+`prod`, is production. Any other value makes `cua` exit with code `2` rather
+than fall back to production.
```bash test="cli-shape" id="cua-env-staging"
export CUA_ENV=staging
@@ -82,15 +83,15 @@ cua auth login --remote # device code against the staging realm
cua auth status # starts with "Environment: staging (...)"
```
-| Setting | Override (wins over `CUA_ENV`) | `prod` (default) | `staging` |
-|---------|--------------------------------|------------------|-----------|
-| Sign-in issuer | `CUA_OIDC_ISSUER` | `https://auth.cua.ai/realms/cyclops-cs` | `https://auth.staging.cua.ai/realms/cua-staging` |
-| OAuth client | `CUA_OIDC_CLIENT_ID` | `cua-cli` | `cua-cli` |
-| Relay | `CUA_RELAY_URL` (or `--relay`) | `https://relay.cua.ai` | `https://relay.staging.cua.ai` |
-| Spaces API | `CUA_SPACES_API_URL` | `https://api.cua.ai` | `https://api.staging.cua.ai` |
-| Spaces site (add-machine links `<site>/add/<code>`) | `CUA_SPACES_SITE_URL` | `https://spaces.cua.ai` | `https://spaces.staging.cua.ai` |
-| cua home | `CUA_HOME` | `~/.cua` | `~/.cua/envs/staging` |
-| Keychain / Credential Manager service | none | `run.cua.ai` | `staging.run.cua.ai` |
+| Setting | Override (wins over `CUA_ENV`) | `prod` (default) |
+|---------|--------------------------------|------------------|
+| Sign-in issuer | `CUA_OIDC_ISSUER` | `https://auth.cua.ai/realms/cyclops-cs` |
+| OAuth client | `CUA_OIDC_CLIENT_ID` | `cua-cli` |
+| Relay | `CUA_RELAY_URL` (or `--relay`) | `https://relay.cua.ai` |
+| Spaces API | `CUA_SPACES_API_URL` | `https://api.cua.ai` |
+| Spaces site (add-machine links `<site>/add/<code>`) | `CUA_SPACES_SITE_URL` | `https://spaces.cua.ai` |
+| cua home | `CUA_HOME` | `~/.cua` (`~/.cua/envs/staging` for staging) |
+| Keychain / Credential Manager service | none | `run.cua.ai` (`staging.run.cua.ai` for staging) |
Each environment has its own session, host enrollment, Spaces registry and
daemon, so signing in to staging never replaces or sends your production
diff --git a/docs/content/docs/cua-cli/index.mdx b/docs/content/docs/cua-cli/index.mdx
index e2209b5f7f..cd2dfcf973 100644
--- a/docs/content/docs/cua-cli/index.mdx
+++ b/docs/content/docs/cua-cli/index.mdx
@@ -18,7 +18,7 @@ npm install -g @trycua/cua # CLI only
Add `-s -- --select cua-driver` to also set up the cua-driver MCP server and
skill for your agents, or `--only ITEMS` to skip the checklist. Installer
-flags: [Cua Spaces quickstart](/spaces/quickstart#run).
+flags: [Install Cua Spaces](/spaces/guides/install).
## Commands
diff --git a/docs/content/docs/cua-sdk/guides/agent-frameworks.mdx b/docs/content/docs/cua-sdk/guides/agent-frameworks.mdx
index 0e375f838f..6060359a96 100644
--- a/docs/content/docs/cua-sdk/guides/agent-frameworks.mdx
+++ b/docs/content/docs/cua-sdk/guides/agent-frameworks.mdx
@@ -48,7 +48,7 @@ interactive.
Cursor's self-hosted Team Pool worker can run in a Linux Space on your Mac or
on a machine you set up with
-[`cua host setup --provide-spaces`](/start-here/host-spaces-on-your-spare-mac)
+[`cua host setup --provide-spaces`](/spaces/guides/host-spaces-on-your-spare-mac)
(add `--on "<machine>"` and use the id `create` prints). It needs Cursor
Enterprise with [Self-Hosted Machines](https://cursor.com/docs/cloud-agent/self-hosted)
allowed and a service-account API key. Create the Space, install the Cursor
diff --git a/docs/content/docs/cua-sdk/guides/migrate-from-deprecated-packages.mdx b/docs/content/docs/cua-sdk/guides/migrate-from-deprecated-packages.mdx
index bba5e2b76d..a32f112eca 100644
--- a/docs/content/docs/cua-sdk/guides/migrate-from-deprecated-packages.mdx
+++ b/docs/content/docs/cua-sdk/guides/migrate-from-deprecated-packages.mdx
@@ -41,7 +41,7 @@ Instead:
- To let Claude Code, Codex, Cursor or another agent operate apps on your
machine, [connect it to Cua Driver](/cua-driver/guides/connect-your-agent).
- To give an agent its own computer that you can watch,
- [create a Space](/spaces/quickstart) or a sandbox with the
+ [create a Space](/spaces/guides/add-a-space) or a sandbox with the
[`cua` CLI](/cua-sdk/quickstart), then
[run the agent in it](/cua-sdk/guides/run-a-coding-agent).
diff --git a/docs/content/docs/cua-sdk/guides/test-in-ci.mdx b/docs/content/docs/cua-sdk/guides/test-in-ci.mdx
index 58eaed130b..76690d21ea 100644
--- a/docs/content/docs/cua-sdk/guides/test-in-ci.mdx
+++ b/docs/content/docs/cua-sdk/guides/test-in-ci.mdx
@@ -30,8 +30,10 @@ jobs:
- `image`: a canonical image, a bench image or any registry reference.
- `on`: `local` (the default: Docker on the runner, or QEMU with KVM for VM
- images) or `cloud`. Cloud needs `CUA_CLIENT_ID` and `CUA_CLIENT_SECRET` in the
- job env. `claim-ttl` (default `60m`) is the backstop if cleanup never runs.
+ images), `docker`, `qemu`, or a [contrib provider](/cua-sdk/guides/contrib-providers)
+ such as `e2b`, `daytona` or `modal`. Cua Cloud (`cloud`) has ended: see
+ [Cua Cloud (Fleets) has ended](/cua-sdk/guides/cua-cloud-ended). `claim-ttl`
+ (default `60m`) is the backstop if cleanup never runs.
- `run` runs on the runner with `CUA_SANDBOX` set to the sandbox ref.
`guest-run` runs inside the sandbox. `guest-setup` runs as root inside it
first, for example to install test dependencies.
diff --git a/docs/content/docs/cua-sdk/index.mdx b/docs/content/docs/cua-sdk/index.mdx
index f7fa86b510..b741ae963f 100644
--- a/docs/content/docs/cua-sdk/index.mdx
+++ b/docs/content/docs/cua-sdk/index.mdx
@@ -62,7 +62,7 @@ Lume VMs on Apple silicon.
## Reach another machine
Any machine that runs [cua-spacesd](/cua-sdk/guides/spacesd), such as a spare
-Mac, a server on your LAN or [Tailscale](/start-here/host-spaces-on-your-spare-mac),
+Mac, a server on your LAN or [Tailscale](/spaces/guides/host-spaces-on-your-spare-mac),
or a container you started, connects directly by address and env token.
Nothing is created or deleted:
diff --git a/docs/content/docs/index.mdx b/docs/content/docs/index.mdx
index 6f3c788838..48ef78bf75 100644
--- a/docs/content/docs/index.mdx
+++ b/docs/content/docs/index.mdx
@@ -1,10 +1,10 @@
---
title: Cua documentation
-description: Computer-use infrastructure on your own machines. Sandboxes, Spaces, and agents that drive real desktops.
+description: Computers for you and your agents. Cua Spaces, Cua Driver, Lume and the developer tools, on your own machines.
landing:
hero: Cua Developers
- path: 'One walkthrough per product, from setup to a result you can check.'
- products: [cua-sdk, cua-driver, spaces, cua-bench]
+ path: 'New to Cua? Open Cua Spaces for the five-minute quickstart. These walkthroughs cover the other products, from setup to a result you can check.'
+ products: [spaces, cua-driver, lume, cua-sdk]
examples:
- title: Cua Bots
description: Persistent bots on Cua Spaces, each with its own computer, memory, routines and rules. A Mac and iPhone app in SwiftUI.
@@ -31,31 +31,41 @@ landing:
import { Card, Cards } from 'fumadocs-ui/components/card';
<Cards>
- <Card title="Cua SDK" href="/cua-sdk">
- Create and drive computers from your own code. Python, TypeScript, Swift and Rust.
+ <Card title="Cua Spaces" href="/spaces">
+ Computers for you and your agents. Install the app, connect an agent and watch it work.
</Card>
<Card title="Cua Driver" href="/cua-driver">
Let an agent drive native apps on macOS, Windows and Linux in the background.
</Card>
- <Card title="Cua Spaces" href="/spaces">
- The Mac app for working alongside your agents. Watch, take over, share files and teleport apps.
- </Card>
- <Card title="Cua Bench" href="/cua-bench">
- Run and score computer-use benchmarks on your machine.
- </Card>
<Card title="Lume" href="/lume">
macOS and Linux VMs on Apple silicon.
</Card>
+</Cards>
+
+## Developers
+
+<Cards>
+ <Card title="Cua SDK" href="/cua-sdk">
+ Create and drive computers from your own code. Python, TypeScript, Swift and Rust.
+ </Card>
<Card title="Cua CLI" href="/cua-cli">
`cua`: sandboxes, auth, the daemon and MCP from the terminal.
</Card>
+ <Card title="Cua Bench" href="/cua-bench">
+ Run and score computer-use benchmarks on your machine.
+ </Card>
</Cards>
-## Start here
+## Start with Cua Spaces
+
+- [Quickstart](/spaces/quickstart): install the app, connect your agent and run a first task in about five minutes.
+- [Connect your agent](/spaces/guides/connect-your-agent): add Spaces to Claude Code, Codex, Cursor and other agents.
+- [Add a machine](/spaces/guides/add-a-machine): connect another Mac, Linux or Windows computer you own.
+- [Plans](/spaces/guides/plans): what Free, Pro and Teams include.
+
+## More walkthroughs
- [Sandbox images](/start-here/sandbox-images): the desktop and benchmark images, and one line to start each.
-- [Create a Space with the Cua SDK](/start-here/create-a-space-with-the-sdk): create a Linux Space on your machine from Python or TypeScript, use it, watch it and delete it.
-- [Host Spaces on your spare Mac](/start-here/host-spaces-on-your-spare-mac): let your laptop create Spaces on another machine, over the relay, ssh or Tailscale.
- [Drive your first app with Cua Driver](/start-here/drive-your-first-app): let your agent operate a native app on the machine you already have.
- [Create a local macOS sandbox with the Cua CLI](/start-here/create-a-local-macos-sandbox): a macOS Tahoe sandbox on Apple silicon with `cua sb create macos`.
- [Run a sandbox in GitHub Actions](/start-here/run-in-github-actions): a Linux sandbox per CI job, with logs and a screenshot as artifacts.
diff --git a/docs/content/docs/lume/guides/gpu-passthrough.mdx b/docs/content/docs/lume/guides/gpu-passthrough.mdx
index f2af9735f8..fa765480df 100644
--- a/docs/content/docs/lume/guides/gpu-passthrough.mdx
+++ b/docs/content/docs/lume/guides/gpu-passthrough.mdx
@@ -10,7 +10,7 @@ GPU paths the paravirtualized device can run. A small MIT shim, injected into
one process, raises two answers: `supportsFamily:` up to a configured Apple
family, and the maximum threadgroup memory. It does not pass a physical GPU
through, patch the host, or touch the guest kernel. Background and benchmarks:
-[technical writeup](/blog/gpu-passthrough-macos-vms).
+[technical writeup](https://cua.ai/blog/gpu-passthrough-macos-vms).
<Callout type="warn">
Experimental. Tested on Lume 0.5.1, an M1 Ultra host on macOS 26.6.1, and the
@@ -146,4 +146,4 @@ The GPU acceleration checkbox in New Space (Resources), `--gpu` on
cua sets the feature level before each start of that VM and removes it when
the last GPU VM is deleted, if cua set it. While set, it applies to every VM
your user starts. Steps 1 and 3 to 5 stay per workload. See
-[Add a Space](/spaces/guides/add-a-space#gpu-acceleration).
+[Create a Space](/spaces/guides/add-a-space#gpu-acceleration).
diff --git a/docs/content/docs/meta.json b/docs/content/docs/meta.json
index dc792783dc..c9a057182e 100644
--- a/docs/content/docs/meta.json
+++ b/docs/content/docs/meta.json
@@ -4,11 +4,11 @@
"pages": [
"index",
"start-here",
- "cua-sdk",
- "cua-driver",
"spaces",
- "cua-bench",
+ "cua-driver",
"lume",
- "cua-cli"
+ "cua-sdk",
+ "cua-cli",
+ "cua-bench"
]
}
diff --git a/docs/content/docs/redirects.json b/docs/content/docs/redirects.json
index a6d610df18..861884dfc4 100644
--- a/docs/content/docs/redirects.json
+++ b/docs/content/docs/redirects.json
@@ -406,9 +406,10 @@
"tutorials/create-your-first-lume-vm": "start-here/create-a-local-macos-sandbox",
"start-here/create-your-first-lume-vm": "start-here/create-a-local-macos-sandbox",
"tutorials/drive-your-first-app": "start-here/drive-your-first-app",
- "tutorials/your-first-cloud-fleet": "start-here/create-a-space-with-the-sdk",
- "start-here/your-first-cloud-fleet": "start-here/create-a-space-with-the-sdk",
- "spaces/guides/host-spaces-on-your-spare-mac": "start-here/host-spaces-on-your-spare-mac",
+ "tutorials/your-first-cloud-fleet": "spaces/guides/create-a-space-with-the-sdk",
+ "start-here/your-first-cloud-fleet": "spaces/guides/create-a-space-with-the-sdk",
+ "start-here/host-spaces-on-your-spare-mac": "spaces/guides/host-spaces-on-your-spare-mac",
+ "start-here/create-a-space-with-the-sdk": "spaces/guides/create-a-space-with-the-sdk",
"tutorials/your-first-cua-bench-task": "start-here/your-first-cua-bench-task",
"use-cua-with": "cua-driver/guides/connect-your-agent",
"use-cua-with/anthropic": "cua-driver/guides/connect-your-agent",
diff --git a/docs/content/docs/spaces/concepts/how-spaces-works.mdx b/docs/content/docs/spaces/concepts/how-spaces-works.mdx
new file mode 100644
index 0000000000..88fe50f660
--- /dev/null
+++ b/docs/content/docs/spaces/concepts/how-spaces-works.mdx
@@ -0,0 +1,65 @@
+---
+title: How Spaces works
+description: 'Computers and Spaces, bring-your-own compute, where a Space can run, and how you and your agents reach it directly or through the relay.'
+---
+
+Cua Spaces connects three things: the computers you own, the Spaces on them, and
+the people and agents who use those Spaces.
+
+## Computers and Spaces
+
+A **computer** (the app calls it a machine) is a Mac, Windows or Linux computer
+you own or rent. A **Space** is one desktop on a computer, set up for a task. A
+Space is a container or a VM, or the computer's own desktop.
+
+Cua doesn't rent computers. You bring them, and your cloud provider bills you for
+any VM you run in your own account. Cua provides the app, sharing and the relay
+that lets your devices reach your computers.
+
+## Where a Space runs
+
+| Location | What it is |
+|---|---|
+| This computer | A container or VM on the Mac, Windows or Linux PC you are using. |
+| Another of your machines | A computer you [added](/spaces/guides/add-a-machine) that provides Spaces, such as a spare Mac mini. |
+| Your own cloud | A VM in your own AWS, Google Cloud or Modal account. See [Use your own cloud](/cua-sdk/guides/your-cloud). |
+
+Cua Cloud, the hosted option, has ended. See
+[Cua Cloud (Fleets) has ended](/cua-sdk/guides/cua-cloud-ended).
+
+Every Space runs `cua-spacesd`. It streams the screen, takes input through
+[Cua Driver](/cua-driver), and receives teleported apps and files.
+
+## How you reach a Space
+
+- **Directly.** On the same network, or over Tailscale, your device connects to
+ the Space with its address and a token. No account is needed, and the traffic
+ doesn't use the relay.
+- **Through the relay.** A machine set up with `cua host setup` joins the cua.ai
+ relay with an outbound connection, so you don't open ports. Your enrolled
+ devices, and people you share a Space with, reach it through the relay. Relay
+ use counts toward your [plan's](/spaces/guides/plans) live sessions and relay
+ hours.
+
+For what the relay can and can't see, see
+[What the relay can see](/spaces/guides/relay-security).
+
+## Space ids
+
+| Kind | Id | Comes from |
+|------|----|------------|
+| Local | `local:<name>` | `spaces.create(options)`: a new Space, on this machine by default |
+| Direct | `direct:<host:port>` | `spaces.add(url, token)`: an existing machine |
+| Relay | `relay:<machine-id>` | Your machines set up with `cua host setup`, listed automatically |
+
+The app, the `cua` CLI, the SDKs and `cua daemon` share one registry
+(`~/.cua/spaces.json`). Relay machines come from your account's directory and
+are never written to `spaces.json`.
+
+## Who can do what
+
+You own your computers and the Spaces on them. You can
+[share a Space](/spaces/guides/share-a-space) with another account as a viewer or
+an editor, and with [Teams](/spaces/guides/teams) a machine can belong to the
+team instead of one person. Your agents act through the `cua` MCP server, and you
+choose what each one may do. See [Connect your agent](/spaces/guides/connect-your-agent).
diff --git a/docs/content/docs/spaces/concepts/meta.json b/docs/content/docs/spaces/concepts/meta.json
new file mode 100644
index 0000000000..aa40dbc849
--- /dev/null
+++ b/docs/content/docs/spaces/concepts/meta.json
@@ -0,0 +1,6 @@
+{
+ "title": "Concepts",
+ "pages": [
+ "how-spaces-works"
+ ]
+}
diff --git a/docs/content/docs/spaces/examples/infinite-canvas.mdx b/docs/content/docs/spaces/examples/infinite-canvas.mdx
index 662fab6ce1..d7fb607745 100644
--- a/docs/content/docs/spaces/examples/infinite-canvas.mdx
+++ b/docs/content/docs/spaces/examples/infinite-canvas.mdx
@@ -73,4 +73,4 @@ swift build -c release --product canvas-bench && .build/release/canvas-bench --t
|------|-------|
| Window streams and presence | [Stream a desktop](/spaces/guides/stream-a-desktop) |
| Agent threads | [Use from an agent](/spaces/guides/use-from-an-agent#run-an-agent-inside-a-space) |
-| Adding Spaces by address | [Add a Space](/spaces/guides/add-a-space) |
+| Adding Spaces by address | [Create a Space](/spaces/guides/add-a-space) |
diff --git a/docs/content/docs/spaces/examples/other-languages.mdx b/docs/content/docs/spaces/examples/other-languages.mdx
index 4ec0fad90e..8f05f7fabb 100644
--- a/docs/content/docs/spaces/examples/other-languages.mdx
+++ b/docs/content/docs/spaces/examples/other-languages.mdx
@@ -60,7 +60,7 @@ Each app needs a Space: create one with **New Space**, or add one by address.
| Part | Guide |
|------|-------|
-| Create, add and delete a Space | [Add a Space](/spaces/guides/add-a-space) |
+| Create, add and delete a Space | [Create a Space](/spaces/guides/add-a-space) |
| Live desktop and presence | [Stream a desktop](/spaces/guides/stream-a-desktop) |
| File attachments | [Send files](/spaces/guides/send-files) |
| Session teleport | [Teleport an app](/spaces/guides/teleport-an-app) |
diff --git a/docs/content/docs/spaces/guides/add-a-machine.mdx b/docs/content/docs/spaces/guides/add-a-machine.mdx
new file mode 100644
index 0000000000..6e272de601
--- /dev/null
+++ b/docs/content/docs/spaces/guides/add-a-machine.mdx
@@ -0,0 +1,106 @@
+---
+title: Add a machine
+description: 'Connect another Mac, Windows or Linux computer you own to Cua Spaces with a link, a code or one command, so your agents and your other devices can use it.'
+---
+
+import { Callout } from 'fumadocs-ui/components/callout';
+
+A machine is a computer you own that runs Spaces for you. Once it is added, it
+shows up in **Machines** on all your devices, your agents can create Spaces on
+it, and you can open its desktop from anywhere. Cua doesn't rent machines: add a
+Mac on your desk, a spare box in the office, or a VM in your own cloud account.
+
+{/* VIDEO: Add a second computer to Cua Spaces with a link and open it from your Mac (about 45 seconds) */}
+
+## Add a machine from the app
+
+You need Cua Spaces on the computer you are adding, or its install command.
+
+1. In Cua Spaces, open **Machines** and press **Add a machine**. You can also
+ find it in the Getting Started checklist and the command palette.
+2. If you belong to a team, choose who the machine is for next to **Add it for**:
+ **Just me** or the team. See [Team machines](/spaces/guides/teams/machines).
+3. On the other computer, do one of these:
+ - Open the link.
+ - Scan the QR code with its camera.
+ - Run the install command in its terminal. Choose **macOS / Linux** or
+ **Windows (preview)** in the dialog to get the right command.
+4. If Cua Spaces is already on that computer, open **Machines** there, press
+ **Join with a code** and paste the code. The app asks before it joins.
+5. Watch the dialog. It says "Waiting for the computer..." and then "Added", and
+ the machine appears in your list.
+
+The link and code work once and expire after a short time. The dialog shows how
+long is left. Press **Revoke link** to cancel one you no longer need, or **Make
+a new link** if it expired.
+
+<Callout type="warn">
+ Only use a code you made yourself. Joining adds the computer to the account
+ that made the code, and that account can then reach it.
+</Callout>
+
+## Add a machine by hand
+
+If you can't use the link, set the computer up yourself:
+
+1. Install Cua Spaces on it. See [Install](/spaces/guides/install).
+2. Sign in with the same account you use here. A machine joins the account it is
+ set up with.
+3. Open **This machine**, choose how to use it, and press **Set up for access**.
+
+Or run this in a terminal on that computer:
+
+```bash test="cli-shape" id="cua-host-setup-add"
+cua host setup
+```
+
+It signs you in to cua.ai for that one command if needed, and installs a
+background service that joins the relay. See
+[Set up unattended access](/spaces/guides/unattended-access) for the options. To
+use a spare machine only to run Spaces, see
+[Host Spaces on a spare Mac](/spaces/guides/host-spaces-on-your-spare-mac).
+
+## What each system needs
+
+| System | Before the machine is reachable |
+|---|---|
+| macOS | Grant cua-spacesd **Screen Recording** and **Accessibility** in System Settings. Setup can't do it for you. |
+| Windows | Stay signed in and unlocked. After a restart, sign in once. |
+| Linux | Setup installs the `cua-spacesd-host` systemd service. |
+
+## Reach it from your other devices
+
+A device reaches your machines through the cua.ai relay only after it is enrolled
+once with a second factor, so a stolen account session alone is not enough.
+Signing in on your own computer enrolls it. A brand-new device on an account that
+already has an enrolled device needs an approval from one of them. Open
+**Settings, Devices** to enroll or approve. The full steps are in
+[Set up unattended access](/spaces/guides/unattended-access#reach-it-from-your-devices).
+
+## Stop sharing or remove a machine
+
+On the machine, run:
+
+```bash test="cli-shape" id="cua-host-stop-remove"
+cua host stop # disconnect everyone and refuse new connections
+cua host remove # unregister, uninstall the service, delete ~/.cua/host
+```
+
+An owner or admin can remove a team machine at
+[app.cua.ai/machines](https://app.cua.ai/machines). Removing a machine doesn't
+delete anything on it.
+
+## If it doesn't work
+
+| What you see | What to do |
+|---|---|
+| "That code didn't work" | A code works once and expires. Make a new link in **Add a machine**. |
+| "This device isn't enrolled yet, so it can't make a link." | Enroll this device in **Settings, Devices**, or use `cua host setup` on the other computer. |
+| The machine never appears | On that computer, run `cua host status`. It shows the service state and any missing permission. |
+| The machine shows **Offline** | The computer is off, asleep or disconnected. Wake it or reconnect it, then run `cua host status` on it. |
+
+## Next
+
+- [Connect your agent](/spaces/guides/connect-your-agent): let an agent use the new machine.
+- [Create a Space](/spaces/guides/add-a-space): run a Space on it.
+- [Teams](/spaces/guides/teams): share machines with your team.
diff --git a/docs/content/docs/spaces/guides/add-a-space.mdx b/docs/content/docs/spaces/guides/add-a-space.mdx
index c82251c69a..5f43772801 100644
--- a/docs/content/docs/spaces/guides/add-a-space.mdx
+++ b/docs/content/docs/spaces/guides/add-a-space.mdx
@@ -1,16 +1,91 @@
---
-title: Add a Space
-description: 'Create a Space on your machine, from any image, follow or cancel the create, add a GPU, add an existing machine, then list, delete or remove it.'
+title: Create a Space
+description: 'Create a Space on a computer you own from the app, the CLI or code: any image, progress, cancel, GPUs, adding an existing machine by address, then list, delete or remove it.'
---
import { Callout } from 'fumadocs-ui/components/callout';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-The [Quickstart](/spaces/quickstart#run) adds an existing machine by URL. The
-same `spaces` object also creates Spaces. Ids are the sandbox refs `cua sb ls`
-prints (`local:<name>`, `aws:<name>`, `direct:<host:port>`,
-`relay:<machine-id>`); a bare name works when it matches one Space.
+A Space is one desktop on one of your computers. Ids are the sandbox refs
+`cua sb ls` prints (`local:<name>`, `aws:<name>`, `direct:<host:port>`,
+`relay:<machine-id>`); a bare name works when it matches one Space. To connect a
+whole computer first, see [Add a machine](/spaces/guides/add-a-machine).
-## Create a Space
+## Create a Space in the app
+
+1. Press **New Space** in Cua Spaces.
+2. Walk through **Choose a system**, **Resources** and **Options**. **Summary**
+ shows what you picked.
+3. Press **Create Space**. The Space appears in your list with a progress bar and
+ is ready when the bar finishes.
+
+If the create fails, see [Troubleshoot a failed create](/spaces/guides/troubleshoot-create).
+
+## Add an existing machine by address
+
+Choose **Connect by address** in New Space, or register a machine from code.
+This example starts the canonical Linux image with a token:
+
+```bash skip="no-runner"
+TOKEN=$(openssl rand -hex 24)
+docker run -d --name my-space -e CUA_ENV_TOKEN=$TOKEN -p 127.0.0.1:3211:3211 \
+ ghcr.io/trycua/linux:24.04
+```
+
+Register it and run a command in it (use `http://127.0.0.1:3211` and your
+`$TOKEN`):
+
+<Tabs items={['Python', 'TypeScript', 'Swift']}>
+ <Tab value="Python">
+ ```python test="docs" id="add-direct" session="add-direct" prelude="space-url"
+ import asyncio
+ import cua
+
+ async def main():
+ spaces = cua.embedded().spaces() # or cua.connect().spaces()
+ info = await spaces.add("http://10.0.0.5:3211", "TOKEN", "lab")
+ space = await spaces.space(info.id)
+ out = await space.bash("uname -a", None)
+ print(info.id, out.stdout)
+
+ asyncio.run(main())
+ ```
+ </Tab>
+ <Tab value="TypeScript">
+ ```ts test="docs" id="add-direct-ts" prelude="space-url"
+ import { embedded } from "@trycua/cua"
+
+ const spaces = embedded().spaces() // or connect().spaces()
+ const info = await spaces.add("http://10.0.0.5:3211", "TOKEN", "lab")
+ const space = await spaces.space(info.id)
+ console.log(info.id, (await space.bash("uname -a", undefined)).stdout)
+ ```
+ </Tab>
+ <Tab value="Swift">
+ ```swift test="swift" id="add-direct-space"
+ import Cua
+
+ let spaces = try Cua.embedded().spaces() // or Cua.connect(address: nil, token: nil)
+ let info = try await spaces.add(url: "http://10.0.0.5:3211", token: "TOKEN", name: "lab")
+ let space = try await spaces.space(space: info.id)
+ print(try await space.bash(command: "uname -a", timeoutMs: nil).stdout)
+ ```
+ </Tab>
+</Tabs>
+
+The program prints the Space id (`direct:127.0.0.1:3211`) and the guest's
+`uname -a`. The Space is now in the shared registry, so the app and the CLI see
+it too:
+
+```bash test="cli-shape" id="cua"
+cua --version
+cua auth status
+cua spaces ls
+```
+
+Clean up the container with `docker rm -f my-space`.
+
+## Create a Space from code
```python skip="pseudo"
created = await spaces.create(cua.SpaceCreateOptions(cpus=2, memory_mb=4096))
@@ -161,7 +236,7 @@ MagicDNS name as the host:port): `cua spaces add` reaches it like any other
address and the Space registers as `direct:<addr>`. That only attaches one
already-running Space; hosting Spaces for `on="host:<name>"` still goes
through the cua.ai relay, set up with
-[`cua host setup`](/start-here/host-spaces-on-your-spare-mac).
+[`cua host setup`](/spaces/guides/host-spaces-on-your-spare-mac).
`spaces.delete(id)` deletes a
Space's sandbox and forgets it (a Space added by address is only forgotten);
diff --git a/docs/content/docs/spaces/guides/connect-your-agent.mdx b/docs/content/docs/spaces/guides/connect-your-agent.mdx
new file mode 100644
index 0000000000..eef94b5cc3
--- /dev/null
+++ b/docs/content/docs/spaces/guides/connect-your-agent.mdx
@@ -0,0 +1,99 @@
+---
+title: Connect your agent
+description: 'Give Claude Code, Codex, Cursor and other AI agents the Cua Spaces tools from the app or the terminal, and check that they work.'
+---
+
+import { Callout } from 'fumadocs-ui/components/callout';
+
+Connecting an agent gives it the `cua` skills and the `cua` MCP server. After
+that, it can create Spaces, run commands in them, send files, show you the
+desktop and share a Space whenever you ask.
+
+{/* VIDEO: Connect Claude Code to Cua Spaces and ask it to open a Space (about 45 seconds) */}
+
+## Connect from the app
+
+On first run, the **AI agents** screen lists the supported agents it found on
+this computer. Tick the ones you use and press **Set up**. When it says "Your AI
+agents are set up", press **Continue**.
+
+To connect an agent later, or to remove one, open **Settings, AI agents**:
+
+- Press **Configure** next to a detected agent to set it up, or **Remove** to
+ take out what Cua added.
+- Press **Configure all detected agents** to set up every one at once.
+
+## Connect from a terminal
+
+`cua agents setup` does the same as the app. It adds the `cua` skills and MCP
+server to each agent you name.
+
+```bash test="cli-shape" id="cua-agents-detect"
+cua agents detect # read-only: which supported agents are installed
+cua agents setup --agents claude,codex --yes
+cua agents status # what Cua configured for each agent
+cua agents remove # removes only what Cua added
+```
+
+The [supported agents](/cua-cli/guides/mcp-server#supported-agents) include
+Claude Code, Codex, Cursor, Gemini CLI, Hermes, OpenClaw and more. If yours is
+not on the list, add the server by hand:
+
+```bash skip="third-party-cli"
+claude mcp add cua -- cua daemon mcp
+codex mcp add cua -- cua daemon mcp
+```
+
+`cua daemon mcp` starts `cua daemon` if it is not running, so every agent on
+this computer shares the same Spaces, sandboxes and streams.
+
+## Check that it works
+
+1. If your agent was already running, start a new session. Agents load their
+ tools when a session starts.
+2. Ask: "List my Cua Spaces."
+3. If your agent asks permission to use a `cua` tool, allow it. Agents ask in
+ their own window or terminal.
+
+Then try a real task. These are the prompts the app offers on its last first-run
+screen:
+
+| Ask your agent | What it does |
+|---|---|
+| "Open a Linux Space and run my test suite in it" | Creates a Space, uploads your project and runs the tests inside it (`create_space`, `upload`, `space_bash`). |
+| "Use my Space's browser to finish the checkout test and show me" | Moves your signed-in browser session into the Space, then drives the Space's browser (`teleport_browser_session`). |
+| "Share this Space with a teammate as a viewer" | Shares the Space with read-only access (`share_space`). Cua Spaces asks you to confirm first. |
+
+Open the Space in Cua Spaces to watch it work. For every tool an agent gets, see
+[Use Spaces from an agent](/spaces/guides/use-from-an-agent).
+
+## Limit what an agent can do
+
+Give an agent that only needs to look read-only access:
+
+```bash skip="third-party-cli"
+claude mcp add cua -- cua daemon mcp --permissions spaces:readonly
+```
+
+See [permissions](/cua-cli/guides/mcp-server#permissions) for the full list.
+
+<Callout type="warn">
+ `space_bash`, `send_file`, `teleport_app` and `hotspot_start` act with your
+ authority. Grant `spaces:readonly` to agents that don't need to change
+ anything.
+</Callout>
+
+## If it doesn't work
+
+| What you see | What to do |
+|---|---|
+| The agent has no `cua` tools | Run `cua agents status`. Then start a new session in the agent. In Hermes, run `/reload-mcp`. |
+| "The Cua daemon isn't running. Start Cua, or run `cua daemon start`." | Open Cua Spaces, or run `cua daemon start`. |
+| Your agent is not in the app's list | Run `cua agents detect` to see every supported agent, or add the server by hand as shown above. |
+| The agent can't reach a Space on another computer | Sign in on this computer, and make sure the device is enrolled. See [Add a machine](/spaces/guides/add-a-machine#reach-it-from-your-other-devices). |
+
+## Next
+
+- [Add a machine](/spaces/guides/add-a-machine): give your agent another computer.
+- [Use Spaces from an agent](/spaces/guides/use-from-an-agent): the tools, and agents that run inside a Space.
+- [Agent keys](/spaces/guides/agent-keys): give the agents that run inside a Space their provider key.
diff --git a/docs/content/docs/start-here/create-a-space-with-the-sdk.mdx b/docs/content/docs/spaces/guides/create-a-space-with-the-sdk.mdx
similarity index 93%
rename from docs/content/docs/start-here/create-a-space-with-the-sdk.mdx
rename to docs/content/docs/spaces/guides/create-a-space-with-the-sdk.mdx
index 86a129d248..1a22730514 100644
--- a/docs/content/docs/start-here/create-a-space-with-the-sdk.mdx
+++ b/docs/content/docs/spaces/guides/create-a-space-with-the-sdk.mdx
@@ -5,8 +5,8 @@ description: Create a Linux Space on your own machine from Python or TypeScript,
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-A Space is a desktop your agents can use and you can watch. In this
-walkthrough you create one on your own machine from code, run a command in it,
+This walkthrough is for developers. A Space is a desktop your agents can use and
+you can watch. You create one on your own machine from code, run a command in it,
take a screenshot, ask Cua Driver which windows it sees, watch the desktop,
and delete the Space. Nothing leaves your machine.
@@ -147,7 +147,7 @@ cua spaces delete local:space-1a2b3c
- [Reach another machine](/cua-sdk#reach-another-machine): connect the SDK to
any machine that runs cua-spacesd, by address and token.
-- [Host Spaces on your spare Mac](/start-here/host-spaces-on-your-spare-mac):
+- [Host Spaces on a spare Mac](/spaces/guides/host-spaces-on-your-spare-mac):
let your laptop create Spaces on another machine, over the relay, ssh or
Tailscale.
-- [Add a Space](/spaces/guides/add-a-space): any image, progress, GPUs.
+- [Create a Space](/spaces/guides/add-a-space): any image, progress, GPUs.
diff --git a/docs/content/docs/start-here/host-spaces-on-your-spare-mac.mdx b/docs/content/docs/spaces/guides/host-spaces-on-your-spare-mac.mdx
similarity index 94%
rename from docs/content/docs/start-here/host-spaces-on-your-spare-mac.mdx
rename to docs/content/docs/spaces/guides/host-spaces-on-your-spare-mac.mdx
index dbe08c0e1d..c87e0e2f3c 100644
--- a/docs/content/docs/start-here/host-spaces-on-your-spare-mac.mdx
+++ b/docs/content/docs/spaces/guides/host-spaces-on-your-spare-mac.mdx
@@ -1,17 +1,17 @@
---
-title: Host Spaces on your spare Mac
+title: Host Spaces on a spare Mac
description: 'Turn a spare Mac mini (or any machine) into a place your laptop and your agents create Spaces on, over the relay, ssh or Tailscale, without sharing its own desktop.'
---
import { Callout } from 'fumadocs-ui/components/callout';
-Spaces run on your own Mac, on your other machines, and in your own cloud
-account ([AWS, Google Cloud or Modal](/cua-sdk/guides/your-cloud)). In this walkthrough a spare Mac mini in a closet runs Spaces for
-your laptop: your laptop, or a coding agent on it, asks for them through the
-cua.ai relay or [directly over Tailscale](#over-tailscale-without-the-relay),
-and the Mac mini runs them with its own runtimes (Lume for macOS VMs, Docker
-for Linux). You can set the Mac up [over ssh](#over-ssh-or-tailscale). Its own
-desktop, shell and files stay private.
+A spare Mac mini in a closet can run Spaces for your laptop and your agents.
+Your laptop, or a coding agent on it, asks for Spaces through the cua.ai relay or
+[directly over Tailscale](#over-tailscale-without-the-relay). The Mac mini runs
+them with its own runtimes: Lume for macOS VMs and Docker for Linux. Its own
+desktop, shell and files stay private. You can set it up
+[over ssh](#over-ssh-or-tailscale). To share a computer's own desktop instead,
+see [Add a machine](/spaces/guides/add-a-machine).
## Set up the spare Mac
@@ -106,7 +106,7 @@ cua spaces create linux --on host:0123abcd4567ef89
The SDK takes the same `on`: `spaces.create(on="host:spare mac mini", image="macos")`.
The machine is matched by its ID, its exact name, or the words of its name,
-so "spare mac mini" finds `Mac mini (spare)` or `dillons-mac-mini`. When two
+so "spare mac mini" finds `Mac mini (spare)` or `office-mac-mini`. When two
machines fit equally well (two Mac minis), the call fails with
`ambiguous_host` and lists them with their IDs, so the agent can ask you
which one you meant.
diff --git a/docs/content/docs/spaces/guides/install.mdx b/docs/content/docs/spaces/guides/install.mdx
index a82f8dba98..bf931c0582 100644
--- a/docs/content/docs/spaces/guides/install.mdx
+++ b/docs/content/docs/spaces/guides/install.mdx
@@ -1,15 +1,21 @@
---
title: Install
-description: 'Install the Cua Spaces app and the cua CLI on macOS, Windows or Linux.'
+description: 'Install the Cua Spaces app and the cua CLI on macOS, Windows or Linux, and what the first-run screens ask.'
---
import { Callout } from 'fumadocs-ui/components/callout';
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-Cua Spaces 0.9.0 runs on macOS, Windows (preview) and Linux. One command installs the
-`cua` CLI and the app. The [download page](https://cua.ai/download) has
-the app for macOS, Windows (preview) and Linux, and every installer is attached to
-the [GitHub releases](https://github.com/trycua/cua/releases).
+Cua Spaces runs on macOS, Windows (preview) and Linux. One command installs the
+`cua` CLI and the app. The [download page](https://cua.ai/download) has the
+app for each system, and every installer is attached to the
+[GitHub releases](https://github.com/trycua/cua/releases).
+
+| System | Needs |
+|---|---|
+| macOS | macOS 26 or later |
+| Windows (preview) | Windows on x64 or Arm |
+| Linux | Ubuntu 24.04 on x64 or arm64 for the supported package. Other distributions and desktops are untested. |
<Tabs items={['macOS', 'Windows (preview)', 'Linux']}>
<Tab value="macOS">
@@ -17,7 +23,7 @@ the [GitHub releases](https://github.com/trycua/cua/releases).
curl -fsSL https://cua.ai/install.sh | sh
```
- Or open the universal `.dmg` (or `.pkg`) from the release. macOS 26 or later.
+ Or open the universal `.dmg` (or `.pkg`) from the release.
</Tab>
<Tab value="Windows (preview)">
<Callout type="warn">
@@ -38,18 +44,55 @@ the [GitHub releases](https://github.com/trycua/cua/releases).
curl -fsSL https://cua.ai/install.sh | sh
```
- The installer picks the supported **.deb** on Ubuntu 24.04 (x64 and arm64).
- To install it by hand:
- `sudo apt install ./cua-spaces_<version>_<arch>.deb`. A portable
- **AppImage** is also released; it is not supported and has no Keyvault. See
- [Cua Spaces on Linux](/spaces/quickstart#cua-spaces-on-linux).
+ The installer picks the supported **.deb** on Ubuntu 24.04. To install it by
+ hand, run `sudo apt install ./cua-spaces_<version>_<arch>.deb`. See
+ [Linux packages](#linux-packages).
</Tab>
</Tabs>
At a console the installer shows a checklist first. Add `--cli-only`
-(`-CliOnly` on Windows) to install the CLI alone.
+(`-CliOnly` on Windows) to install the CLI alone. Other flags are `--select`,
+`--only`, `--app-only`, `--mode host|client`, `--version`, `--no-onboarding`,
+`--dry-run` and `--yes` (`-Select`, `-CliOnly` and so on on Windows).
+
+## First run
+
+The first time you open the app, it walks you through a few screens. You can
+skip most of them and change every choice later in **Settings**.
+
+| Screen | What it does |
+|---|---|
+| Welcome | Starts the setup. |
+| Command line | Installs the `cua` command and adds it to your PATH. It shows only when the command is missing or out of date. |
+| Where should Cua Spaces show up? | Chooses how the app appears, for example the notch and menu bar, or the menu bar only. |
+| Sign in | Signs you in to reach your computers from other devices. You can skip it. |
+| AI agents | Gives your coding agents the `cua` skills and MCP server. See [Connect your agent](/spaces/guides/connect-your-agent). |
+| This machine | Chooses between reaching other machines, and setting this one up for [unattended access](/spaces/guides/unattended-access). |
+| You're all set | Offers a first Space and three prompts to try with your agent. |
+
+Cua Spaces launches at login by default, so the Spaces this computer provides
+and your persistent agents come back after a restart. Turn it off in **Settings,
+General**.
+
+## Linux packages
+
+The supported package is the **.deb** on Ubuntu 24.04. It is sandboxed and
+installs the confirmation prompt the Keyvault needs. `sudo apt remove cua-spaces`
+turns off what the app set up (see
+[Unattended access](/spaces/guides/unattended-access#check-pause-remove)).
+
+The **AppImage** is a portable build, not a supported one. It cannot use the
+browser sandbox (it starts with `--no-sandbox`), and without the system's
+confirmation prompt the Keyvault is unavailable. Use it to try Cua Spaces
+without installing, and install the .deb to keep it.
+
+For Linux Spaces created on this computer, the `cua` CLI uses Docker (gVisor
+`runsc`, when installed, adds isolation) or QEMU. QEMU needs read and write
+access to `/dev/kvm` to run same-architecture guests quickly. Run
+`cua runtime doctor` to see what this computer has.
## Next
-- [Quickstart](/spaces/quickstart)
+- [Quickstart](/spaces/quickstart): connect an agent and run a first task.
- [Plans](/spaces/guides/plans): what Free, Pro and Teams include.
+- [Updates](/spaces/guides/updates): how the app keeps itself current.
diff --git a/docs/content/docs/spaces/guides/meta.json b/docs/content/docs/spaces/guides/meta.json
index 25d5848027..633c668be7 100644
--- a/docs/content/docs/spaces/guides/meta.json
+++ b/docs/content/docs/spaces/guides/meta.json
@@ -1,23 +1,34 @@
{
"title": "Guides",
"pages": [
+ "---Get started---",
"install",
- "plans",
- "add-a-space",
- "unattended-access",
+ "connect-your-agent",
+ "add-a-machine",
+ "---Share, Pro and Teams---",
"share-a-space",
+ "plans",
"teams",
+ "---Computers---",
+ "unattended-access",
+ "host-spaces-on-your-spare-mac",
+ "---Work in a Space---",
+ "add-a-space",
+ "create-a-space-with-the-sdk",
"stream-a-desktop",
"send-files",
"teleport-an-app",
+ "site-login",
+ "cua-volume",
+ "---Agents---",
+ "use-from-an-agent",
"persistent-agents",
"agent-keys",
"keyvault",
- "site-login",
+ "---Keep it working---",
+ "updates",
+ "troubleshoot-create",
"relay-security",
- "mesh",
- "cua-volume",
- "use-from-an-agent",
- "updates"
+ "mesh"
]
}
diff --git a/docs/content/docs/spaces/guides/plans.mdx b/docs/content/docs/spaces/guides/plans.mdx
index 006feecc4c..87decb4efa 100644
--- a/docs/content/docs/spaces/guides/plans.mdx
+++ b/docs/content/docs/spaces/guides/plans.mdx
@@ -1,6 +1,6 @@
---
title: Plans
-description: 'Cua Spaces Free, Pro and Teams: price, live sessions and relay hours.'
+description: 'Cua Spaces Free, Pro and Teams: what each includes, how to see your usage, how to upgrade, and what happens at a limit.'
---
Cua Spaces is bring-your-own compute: you connect your own machines, and Cua
@@ -10,20 +10,55 @@ that lets your devices reach your machines. Current prices are on
| Plan | Price | Live sessions | Relay hours |
| --- | --- | --- | --- |
-| Free | $0 | 2 | about 20 a month |
+| Free | $0 | 2 | 20 a month |
| Pro | $18 a month or $180 a year, one person | 5 | 200 a month |
| Teams | $30 per seat a month or $300 per seat a year, 1 to 100 seats | 5 per seat | 200 per seat a month, pooled across the team |
-A **live session** is one person viewing or driving a Space through the relay,
-such as a desktop view, a terminal or an agent's process stream. A **relay
-hour** is an hour with at least one live session, counted per calendar month
-(UTC). Spaces you reach directly, for example on your own network, do not use
-the relay.
+Every plan includes Spaces on every computer you connect, Teleport and sharing a
+Space with named people. Pro adds more live sessions and relay hours. Teams adds
+team-owned machines, roles and device approval. SSO and audit export are not
+included yet.
-Teams starts at 1 seat. Each seat adds to the team pool, so 2 seats give 10
-live sessions and 400 relay hours a month. To set up a team, see [Teams](/spaces/guides/teams).
+## What counts toward the limits
+
+A **live session** is one person or agent holding a stream open to a machine
+through the relay, such as a desktop view, a terminal or an agent's process
+stream. A **relay hour** is an hour with at least one live session, counted per
+calendar month (UTC).
+
+Spaces you reach directly, for example on your own network, don't use the relay
+and don't count.
+
+## See your usage
+
+Open **Settings** in Cua Spaces. **Relay usage** reads like "Live sessions 1 of
+2 · Relay hours 6.5 of 20 this month", and the plan card shows your plan. To read
+the same numbers in a terminal, run `cua usage`.
+
+When you have used 80% of your relay hours, the app shows a notice with an
+**Upgrade** button. Nothing stops at the limit: your Spaces keep working.
+
+## Upgrade to Pro
+
+1. Press **Upgrade** or **Get Pro** in the app, or open
+ [cua.ai/pricing](https://cua.ai/pricing) and choose **Get Pro**.
+2. Sign in or create a Cua account.
+3. Pay with Stripe Checkout.
+
+Pro has no trial, and Free stays available. On a yearly plan, you can cancel
+within 14 days of the first yearly charge for a full refund. Monthly plans have
+no refund for partial months. Change or cancel a plan at any time on the
+[billing page](https://app.cua.ai/billing).
+
+## Start a team
+
+Teams starts at 1 seat, so you can begin with just yourself. Each seat adds to
+one pool the whole team shares: 2 seats give 10 live sessions and 400 relay hours
+a month. To buy Teams, invite people and manage seats, see
+[Teams](/spaces/guides/teams).
## Next
-- [Install](/spaces/guides/install)
- [Teams](/spaces/guides/teams)
+- [Teams FAQ](/spaces/guides/teams/faq)
+- [Share a Space](/spaces/guides/share-a-space)
diff --git a/docs/content/docs/spaces/guides/share-a-space.mdx b/docs/content/docs/spaces/guides/share-a-space.mdx
index 1f7347f0a5..b85867bafc 100644
--- a/docs/content/docs/spaces/guides/share-a-space.mdx
+++ b/docs/content/docs/spaces/guides/share-a-space.mdx
@@ -6,8 +6,17 @@ description: 'Let another cua.ai account watch or use one of your Spaces through
import { Callout } from 'fumadocs-ui/components/callout';
Share a Space with another cua.ai account by email or account ID. A **viewer**
-joins with their own named cursor and watches; an **editor** can also use the
-Space. They open it as `relay:<machine>` from `cua spaces ls` or the app.
+joins with their own named cursor and watches. An **editor** can also use the
+Space. They open it from their own app or terminal as `relay:<machine>`.
+
+To share from the app, press **Share** in the Space's toolbar, enter an email
+address or account ID, and choose **Viewer** or **Editor**. The same list shows
+who has access and who is connected. Cua Spaces asks you to confirm with Touch
+ID or your login password first.
+
+To share a whole machine with your team, see [Teams](/spaces/guides/teams).
+
+From a terminal:
```bash test="cli-shape" id="cua-spaces-share"
cua spaces share local:studio [email protected] # viewer
@@ -17,8 +26,6 @@ cua spaces unshare local:studio [email protected] # at once
cua spaces unshare local:studio --all # nobody; leaves the relay
```
-In the app, **Share** in a Space's toolbar opens the same list.
-
## What each role can do
| | Viewer | Editor |
@@ -99,7 +106,7 @@ tools are `relay_register_space` and `relay_unregister_space`.
|---|---|---|
| Host (`relay:<id>`) | yes | Already on the relay. |
| Local container or VM | yes, while this machine runs it | Its driver dials the relay. Suspending it disconnects everyone. |
-| Cloud | yes | Its driver dials the relay from the cloud. |
+| In your own cloud (AWS, Google Cloud, Modal) | yes | Its driver dials the relay from the cloud. |
| Added by address (`direct:`) | yes, if its driver supports `relay_attach` | Older drivers report `capability_missing`. |
| A Space shared with you | no | Only the owner can share (`permission_denied`). |
diff --git a/docs/content/docs/spaces/guides/teams/index.mdx b/docs/content/docs/spaces/guides/teams/index.mdx
index cc63fd1123..5006aab186 100644
--- a/docs/content/docs/spaces/guides/teams/index.mdx
+++ b/docs/content/docs/spaces/guides/teams/index.mdx
@@ -30,13 +30,15 @@ the Cua Spaces app shows a notice with an Upgrade button.
Prices and usage are on [cua.ai/pricing](https://cua.ai/pricing).
+{/* VIDEO: Create a team, invite a teammate and share a machine with them (about 60 seconds) */}
+
## Buy Teams
1. Open [app.cua.ai/buy/teams](https://app.cua.ai/buy/teams) and sign in or
create a Cua account.
2. Name your team and choose the number of seats and monthly or yearly billing.
-3. Pay with Stripe Checkout. Teams is for business use, so checkout asks for
- your business name and tax ID.
+3. Pay with Stripe Checkout. Teams is for business use: Stripe asks for your
+ company name and address, and you can add your company's VAT or GST ID.
There is no trial. The person who buys is the team's owner.
@@ -57,6 +59,13 @@ not see checkout.
- Until the first payment completes, a new team can invite up to 5 people.
- Revoke a pending invitation from the same page.
+## Teams in the app
+
+Cua Spaces shows your teams in **Settings, Teams**: each team with its members,
+their roles and pending invitations marked "(Invited)". The app only shows teams.
+Press **Manage team** to invite people and change roles in the account app, or
+**Billing and plans** to change seats and billing.
+
## Roles
A team has one owner, and any number of admins and members.
diff --git a/docs/content/docs/spaces/guides/teams/machines.mdx b/docs/content/docs/spaces/guides/teams/machines.mdx
index 6c4c2d4784..2955324089 100644
--- a/docs/content/docs/spaces/guides/teams/machines.mdx
+++ b/docs/content/docs/spaces/guides/teams/machines.mdx
@@ -25,9 +25,10 @@ members. To let someone only watch, share a Space with them as a viewer instead.
Pairing needs Cua Spaces 0.8.0 or later. An owner or admin does this.
-1. In the Cua Spaces app, choose **Add a machine** for your team. The app
- shows a link, a QR code and a one-time pairing code that looks like
- `K7QM-4XPB-2RHD`.
+1. In the Cua Spaces app, open **Machines**, press **Add a machine** and choose
+ your team next to **Add it for**. The app shows a link, a QR code and a
+ one-time pairing code that looks like `K7QM-4XPB-2RHD`. For the personal
+ version of these steps, see [Add a machine](/spaces/guides/add-a-machine).
2. On the computer you are adding, open the link, or run the install command the
app shows. With the `cua` CLI installed, the code alone is enough:
@@ -58,8 +59,8 @@ remove it from the team. Removing a machine does not delete anything on it.
| Linux | Windows and Linux apps: see the [download page](https://cua.ai/download) | Yes |
Mac, Windows and Linux machines all join with `cua host setup`, as in
-[unattended access](/spaces/guides/unattended-access); see the
-[quickstart](/spaces/quickstart) to install the `cua` CLI.
+[unattended access](/spaces/guides/unattended-access). See
+[Install](/spaces/guides/install) to get the `cua` CLI.
## Device approval
diff --git a/docs/content/docs/spaces/guides/troubleshoot-create.mdx b/docs/content/docs/spaces/guides/troubleshoot-create.mdx
new file mode 100644
index 0000000000..fd7d698e32
--- /dev/null
+++ b/docs/content/docs/spaces/guides/troubleshoot-create.mdx
@@ -0,0 +1,79 @@
+---
+title: Troubleshoot a failed create
+description: 'Fix a Space that does not create: the common causes (disk, container engine, virtualization, the two-VM limit, Local Network), how to retry, and how to ask for help.'
+---
+
+import { Callout } from 'fumadocs-ui/components/callout';
+
+When a Space can't be created, Cua Spaces shows **Couldn't create this Space**
+with the reason, a **Try again** button and a **Remove from list** button. This
+page explains the usual reasons and what to do about each.
+
+{/* VIDEO: Fix a Space that fails to create: read the reason, retry, and send a report (about 45 seconds) */}
+
+## Try these first
+
+1. Press **Try again**. A retry reuses the image that already downloaded, so it
+ is usually much faster than the first attempt.
+2. Update Cua Spaces to the latest version. See [Updates](/spaces/guides/updates).
+3. Run the checks in a terminal:
+
+```bash test="cli-shape" id="cua-doctor-host"
+cua runtime doctor # which container engines and VM runtimes this computer has
+cua doctor # host checks in one report
+```
+
+## Find your reason
+
+Match the reason the app shows to the rows below. The word in parentheses is the
+fixed name Cua uses for the cause. See [Create failure kinds](/cua-sdk/concepts/telemetry-error-kinds)
+for the full list.
+
+| What it means | What to do |
+|---|---|
+| The image download failed, was refused or stopped partway (`image_pull_network`, `image_pull_not_found`, `image_pull_auth`, `image_pull_rate_limited`, `image_pull`) | Check your network and try again. Finished image layers are kept, so the next attempt resumes. If the registry rate-limited you, wait a few minutes. If you use your own image, check its name and that you can pull it. |
+| Not enough disk space (`insufficient_disk`) | The New Space screen shows how much space is needed and available. A macOS Space needs about 50 GB. Free some space, or delete Spaces you no longer need with `cua spaces delete`. |
+| No container engine is running (`runtime_missing`, `runtime_not_running`, `runtime_permission`) | Start Docker Desktop, or install a container engine such as Docker, Colima or Podman. If the message says permission denied, give your user access to the engine. Run `cua runtime doctor` to check. |
+| This computer can't run virtual machines (`virtualization_unavailable`) | macOS Spaces need an Apple silicon Mac. On Linux and Windows, turn on hardware virtualization in the firmware settings. Or create a Linux container Space instead. |
+| Two macOS VMs already run (`vm_limit`) | Apple allows two macOS VMs at a time on one Mac. Stop or delete one, then try again. |
+| The VM started but never answered (`vm_boot_timeout`, `services_unreachable`) | The first macOS Space unpacks a large image and can run out of time. Try again: the image is already downloaded, so it is much faster. |
+| macOS blocked the connection to the new VM (`local_network`) | Open **System Settings, Privacy & Security, Local Network**, turn on Cua Spaces, then try again. |
+| "The Cua daemon isn't running. Start Cua, or run `cua daemon start`." | Open Cua Spaces, or run `cua daemon start`. |
+
+## Creating on another machine
+
+To create a Space on one of your other machines, that machine must be online,
+provide Spaces, and be set up for your account. If the create fails with a name
+such as `ambiguous_host` or `host_capability_missing`, see the
+[troubleshooting table](/spaces/guides/host-spaces-on-your-spare-mac#troubleshooting).
+
+## Stop a create that is stuck
+
+Press **Cancel** in the toolbar of a Space that is being created. Cua Spaces
+removes the partial Space and keeps the finished image layers, so the next
+attempt resumes. See [Cancel a create](/spaces/guides/add-a-space#cancel-a-create).
+
+## Ask for help
+
+Versions of Cua Spaces after 0.9.4 add **Send a report...** to a failed Space.
+It builds a report from the error, the phase it failed in, the image and the app
+and system versions. Before anything leaves your computer:
+
+- You review the report and can edit it or leave parts out.
+- Cua removes tokens, email addresses, home folders, hostnames and public IP
+ addresses.
+- **Open email** starts a message to Cua support ([email protected]) in your
+ mail app. Nothing is sent until you press Send there.
+
+On any version, you can email [email protected] with the reason shown, your
+system, and the Cua Spaces version from **Settings, About**.
+
+<Callout type="info">
+ Reports are private: they go to Cua support by email, never to a public issue.
+ Remove anything you don't want to share before you send.
+</Callout>
+
+## Next
+
+- [Create a Space](/spaces/guides/add-a-space): images, progress, GPUs.
+- [Install](/spaces/guides/install): requirements for each system.
diff --git a/docs/content/docs/spaces/guides/unattended-access.mdx b/docs/content/docs/spaces/guides/unattended-access.mdx
index 1d8f518eb1..7ac5bb20c4 100644
--- a/docs/content/docs/spaces/guides/unattended-access.mdx
+++ b/docs/content/docs/spaces/guides/unattended-access.mdx
@@ -5,6 +5,11 @@ description: 'Make this machine a Space you reach from your other devices: cua h
import { Callout } from 'fumadocs-ui/components/callout';
+Unattended access makes a computer reachable from your other devices without
+anyone sitting at it, so your agents can use it any time. For the quick path with
+a link or a code, see [Add a machine](/spaces/guides/add-a-machine). This page
+has every option and the details.
+
`cua host setup` installs cua-spacesd as a service. By default it joins the
cua.ai relay over outbound WSS as your account: no port forwarding, no token to
copy. Your other devices, once [enrolled](#reach-it-from-your-devices), then see
@@ -29,7 +34,7 @@ machine is shared with, or enroll devices.
| `--name NAME` | Display name (default: host name). |
| `--allow ACCOUNT` | Also allow this account (id or email). Repeatable. |
| `--runner KIND` | `auto`, `systemd`, `launchd`, `windows-task` or `process`. |
-| `--profile spare` | A spare machine: do not share its desktop, create Spaces for your devices (`--no-desktop --provide-spaces`). See [Host Spaces on your spare Mac](/start-here/host-spaces-on-your-spare-mac). |
+| `--profile spare` | A spare machine: do not share its desktop, create Spaces for your devices (`--no-desktop --provide-spaces`). See [Host Spaces on a spare Mac](/spaces/guides/host-spaces-on-your-spare-mac). |
| `--no-desktop` / `--provide-spaces` | Each of the two settings on its own. `cua host config` changes them later. |
Running `setup` again updates the configuration and rotates the machine token.
@@ -74,7 +79,7 @@ Spaces and data under `~/.cua` stay on the machine (the Spaces are turned off).
`cua host stop` turns sharing off locally first, so it holds even when the
relay is unreachable. In direct mode `cua host status` prints the URL and the
env token's path; add the machine elsewhere with
-[`spaces.add(url, token)`](/spaces/quickstart#run).
+[`spaces.add(url, token)`](/spaces/guides/add-a-space#add-an-existing-machine-by-address).
<Callout type="warn">
Everyone on the allowlist gets full control of this desktop. Keep the list
diff --git a/docs/content/docs/spaces/guides/updates.mdx b/docs/content/docs/spaces/guides/updates.mdx
index 6289d4878d..35d1ebfce1 100644
--- a/docs/content/docs/spaces/guides/updates.mdx
+++ b/docs/content/docs/spaces/guides/updates.mdx
@@ -1,47 +1,53 @@
---
title: Updates
-description: 'How the Cua Spaces app for macOS updates itself, how to pick the Stable or Beta channel, and what it refreshes after an update.'
+description: 'How the Cua Spaces app updates itself on macOS, Windows and Linux, how to pick the Stable or Beta channel, and what it refreshes after an update.'
---
-The Cua Spaces app for macOS checks for new versions and installs them for
-you. Everything is in **Settings, About**.
+Cua Spaces checks for new versions and downloads them in the background on
+macOS, Windows and Linux. Everything is in **Settings, About**, which also shows
+your version.
## How updates work
-The app checks when it starts and again every few hours, and downloads a
-new version in the background. When one is ready, a line appears at the
-bottom of the sidebar: **Update ready**, with **Restart to update** and a
-**What's new** link to the release notes. Nothing restarts until you click.
-If an agent is still working, the app asks first. **Check Now** checks right
-away, and **Last check** says when it last looked. Turn off **Automatically
-check for updates** to only check by hand. With **Install updates
-automatically** on (Windows and Linux), a downloaded update is also installed
-when you quit the app.
+The app checks when it starts and again every few hours. When a new version is
+ready, a line appears at the bottom of the sidebar: **Update ready**, with
+**Restart to update** and a **What's new** link to the release notes. Nothing
+restarts until you click. If an agent is still working, the app asks first.
-Every update is the same notarized disk image as the download on the
-release page, and the app installs it only when its signature matches the
-key built into the app.
+In **Settings, About**:
+
+- **Check for and download updates automatically** turns the background checks on
+ or off. With it off, press **Check Now** to check by hand.
+- **Install a downloaded update when Cua Spaces quits** installs a downloaded
+ update when you quit the app. It needs automatic checks.
+- **Last check** says when the app last looked.
+
+On macOS, every update is the same notarized disk image as the download on the
+release page, and the app installs it only when its signature matches the key
+built into the app. Windows and Linux update through their own updater.
## Channels
-**Update to** picks what you get:
+**Update to:** picks what you get:
-- **Stable**: releases.
-- **Beta**: releases and prereleases, with new features sooner and rough
- edges.
+- **Stable**: tested releases.
+- **Beta**: releases and prereleases, with new features sooner and rough edges.
-Going back to Stable from a newer beta keeps the version you have until a
-newer stable release is out.
+Going back to Stable from a newer beta keeps the version you have until a newer
+stable release is out.
## After an update
-The first time the new version opens, it refreshes what Cua installed into
-your AI agents, the way `cua agents update` does: the Cua skill folders and
-the Cua MCP entries in Claude Code, Cursor and the other agents you set up.
-A skill folder you edited is left as you left it. It also restarts the Cua
-daemon when the app started it, so the daemon runs the new version too.
+The first time the new version opens, it refreshes what Cua installed into your
+AI agents, the way `cua agents update` does: the Cua skill folders and the Cua
+MCP entries in Claude Code, Cursor and the other agents you set up. A skill
+folder you edited is left as you left it. It also restarts the Cua daemon when
+the app started it, so the daemon runs the new version too.
+
+This happens without any window. If something fails, the app shows one notice
+with what to run.
-This happens without any window. If something fails, the app shows one
-notice with what to run.
+## Next
-On Linux and Windows, the Tauri app updates through its own updater.
+- [Install](/spaces/guides/install): download a version by hand.
+- [Troubleshoot a failed create](/spaces/guides/troubleshoot-create): update first, then retry.
diff --git a/docs/content/docs/spaces/guides/use-from-an-agent.mdx b/docs/content/docs/spaces/guides/use-from-an-agent.mdx
index 3ea7318559..01dfb99f6a 100644
--- a/docs/content/docs/spaces/guides/use-from-an-agent.mdx
+++ b/docs/content/docs/spaces/guides/use-from-an-agent.mdx
@@ -1,6 +1,6 @@
---
title: Use Spaces from an agent
-description: 'Give an AI coding agent the Spaces tools through cua daemon mcp, and run agents inside a Space as long-lived threads.'
+description: 'The Spaces tools an AI coding agent gets through cua daemon mcp, and how to run agents inside a Space as long-lived threads.'
---
import { Callout } from 'fumadocs-ui/components/callout';
@@ -10,29 +10,11 @@ The cua MCP server gives an agent 33 Spaces tools plus sandbox and computer
tools. For the machine the agent runs on, use
[Cua Driver](/cua-driver/quickstart) instead.
-## Connect the agent
+## Tools your agent gets
-`cua agents setup` adds the cua skills and MCP server to detected agents
-([supported agents](/cua-cli/guides/mcp-server#supported-agents); the
-installer offers it after sign-in):
-
-```bash test="cli-shape" id="cua-agents-detect"
-cua agents detect # read-only
-cua agents setup --agents claude,codex --yes
-cua agents status
-cua agents remove # removes only what cua added
-```
-
-By hand:
-
-```bash skip="third-party-cli"
-claude mcp add cua -- cua daemon mcp
-codex mcp add cua -- cua daemon mcp
-```
-
-`cua daemon mcp` starts `cua daemon` if needed, so every agent on the machine
-shares the same Spaces, sandboxes and streams. Narrow the grant with
-`--permissions spaces:readonly` ([permissions](/cua-cli/guides/mcp-server#permissions)).
+To connect an agent, see [Connect your agent](/spaces/guides/connect-your-agent).
+Narrow what it can do with `--permissions spaces:readonly`
+([permissions](/cua-cli/guides/mcp-server#permissions)).
```text output
list_spaces / create_space {reuse} -> pick, reuse or create a Space
diff --git a/docs/content/docs/spaces/index.mdx b/docs/content/docs/spaces/index.mdx
index 4343059f80..d4c8c1e9d3 100644
--- a/docs/content/docs/spaces/index.mdx
+++ b/docs/content/docs/spaces/index.mdx
@@ -1,45 +1,54 @@
---
title: Cua Spaces
-description: 'The Cua Spaces app and SDK: register any sandbox or machine once, then stream it, run agents in it and teleport apps into it.'
+description: 'Computers for you and your agents. Install the Cua Spaces app, connect an AI agent, and watch it work on a computer you own.'
landing:
- summary: 'The Mac app for working alongside your agents. Watch, take over, share files and teleport apps.'
+ summary: 'Computers for you and your agents. Install the app, connect an agent and watch it work.'
cta: Explore Cua Spaces
---
-A Space is a desktop your agents can use and you can watch: a container or VM
-on your own Mac, one of your team's machines, or
-[your own cloud](/cua-sdk/guides/your-cloud) (AWS, Google Cloud or Modal). Each runs cua-spacesd, which streams the screen, takes input through
-Cua Driver, and receives teleported apps and files. Cua Spaces is
-source-available under the FSL-1.1-MIT. For teams, see [Teams](/spaces/guides/teams).
-
-The **Cua Spaces app** puts your Spaces in the menu bar and notch, so you can
-watch them, open them and teleport apps in with a drag.
-It launches at login (**Settings > General > Launch Cua Spaces at login**, on
-after setup unless you untick it), so the Spaces this machine provides, your
-persistent agents and Cua Volume come back after a restart.
-
-The **Cua SDK** gives your own apps the same Spaces: create them, stream them and
-run agents in them from Python, TypeScript, Swift or Rust.
-
-| Kind | Id | Comes from |
-|------|----|------------|
-| Local | `local:<name>` | `spaces.create(options)`: a new Space, on this machine by default |
-| Direct | `direct:<host:port>` | `spaces.add(url, token)`: an existing machine |
-| Relay | `relay:<machine-id>` | Your machines set up with `cua host setup`, listed automatically |
-
-The app, the `cua` CLI, the SDKs and `cua daemon` share one registry (`~/.cua/spaces.json`). Relay machines come from the account's directory and are never written to `spaces.json`.
-
-## What you can do with a Space
-
-| Task | Guide |
-|------|-------|
-| Create or add a Space, from any image | [Add a Space](/spaces/guides/add-a-space) |
-| Reach this machine from your other devices | [Unattended access](/spaces/guides/unattended-access) |
-| Watch a desktop or one window, with audio | [Stream a desktop](/spaces/guides/stream-a-desktop) |
-| Send a file or folder into a Space | [Send files](/spaces/guides/send-files) |
-| Move a signed-in app session into a Space | [Teleport an app](/spaces/guides/teleport-an-app) |
-| Give an AI agent Spaces tools, or run agents inside a Space | [Use from an agent](/spaces/guides/use-from-an-agent) |
-| See an app built on the Spaces SDK | [Cua Bots](/spaces/examples/cua-bots), [infinite canvas](/spaces/examples/infinite-canvas), [examples in other languages](/spaces/examples/other-languages) |
-
-Start with the [Quickstart](/spaces/quickstart): install the app and CLI, then
-add your first Space.
+Cua Spaces gives your AI agents their own computers to work on, and lets you
+watch, step in and share them. You bring the computers: a Mac on your desk, a
+spare Linux box, a VM in your own cloud account. Cua does not rent them.
+
+A **Space** is one desktop on one of those computers, set up for a task. Your
+agent runs commands in it and uses its apps and browser. You see the same
+screen, take over when you want, and give a teammate access.
+
+## Get started
+
+1. [Quickstart](/spaces/quickstart): install the app, connect your agent and
+ run a first task. About five minutes.
+2. [Connect your agent](/spaces/guides/connect-your-agent): add Spaces to
+ Claude Code, Codex, Cursor and other agents.
+3. [Add a machine](/spaces/guides/add-a-machine): connect another Mac, Linux
+ or Windows computer you own.
+
+## What do you want to do?
+
+| I want to | Go to |
+|---|---|
+| Install on Mac, Windows or Linux | [Install](/spaces/guides/install) |
+| Let my agent use Spaces | [Connect your agent](/spaces/guides/connect-your-agent) |
+| Use another computer I own | [Add a machine](/spaces/guides/add-a-machine) |
+| Reach my computers from my other devices | [Set up unattended access](/spaces/guides/unattended-access) |
+| Let a teammate watch or work in a Space | [Share a Space](/spaces/guides/share-a-space) |
+| Compare Free, Pro and Teams | [Plans](/spaces/guides/plans) |
+| Set up a team with shared machines | [Teams](/spaces/guides/teams) |
+| Fix a Space that won't create | [Troubleshoot a failed create](/spaces/guides/troubleshoot-create) |
+| Move a signed-in app into a Space | [Teleport an app](/spaces/guides/teleport-an-app) |
+| Understand how it fits together | [How Spaces works](/spaces/concepts/how-spaces-works) |
+
+## For developers
+
+The `cua` CLI, the MCP server and the SDKs (Python, TypeScript, Swift and
+Rust) use the same Spaces as the app.
+
+- [Use Spaces from an agent](/spaces/guides/use-from-an-agent): the Spaces
+ tools your agent gets over MCP.
+- [Create a Space with the Cua SDK](/spaces/guides/create-a-space-with-the-sdk):
+ create, use and delete a Space from code.
+- [Reference](/spaces/reference): every Spaces tool, its parameters and its
+ errors.
+- [Examples](/spaces/examples/cua-bots): apps built on the Spaces SDK.
+
+Cua Spaces is source-available under the FSL-1.1-MIT license.
diff --git a/docs/content/docs/spaces/meta.json b/docs/content/docs/spaces/meta.json
index 1251ef9572..94e2271d39 100644
--- a/docs/content/docs/spaces/meta.json
+++ b/docs/content/docs/spaces/meta.json
@@ -6,6 +6,7 @@
"quickstart",
"guides",
"examples",
+ "concepts",
"reference"
]
}
diff --git a/docs/content/docs/spaces/quickstart.mdx b/docs/content/docs/spaces/quickstart.mdx
index e06faf4959..2590848606 100644
--- a/docs/content/docs/spaces/quickstart.mdx
+++ b/docs/content/docs/spaces/quickstart.mdx
@@ -1,131 +1,88 @@
---
title: Quickstart
-description: 'Install the cua CLI and the Cua Spaces app, run a local Space in Docker, and register it from code.'
+description: 'Install Cua Spaces, connect your AI agent, and ask it to work on a computer you can watch. About five minutes.'
---
+import { Callout } from 'fumadocs-ui/components/callout';
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-Install the cua CLI and the Cua Spaces app (macOS, Windows or Linux), run a Linux desktop
-locally, and register it as your first Space.
+In about five minutes you install Cua Spaces, connect your AI coding agent, and
+ask it to run a task in a Space while you watch.
-## Prerequisites
+{/* VIDEO: Install Cua Spaces, connect an agent and watch it work in a Space (about 60 seconds) */}
-- macOS, Linux or Windows. The Cua Spaces app for macOS needs macOS 26 or
- later. On Windows the app is a preview. See [Install](/spaces/guides/install).
-- Docker, for the local Space.
+## Before you start
-### Cua Spaces on Linux
+- A Mac (macOS 26 or later), a Windows PC (preview) or a Linux PC (Ubuntu 24.04).
+- An AI coding agent, such as Claude Code, Codex or Cursor. See the
+ [supported agents](/cua-cli/guides/mcp-server#supported-agents).
+- Enough room for a first Space. A Linux Space needs a container engine such as
+ Docker running on this computer. A macOS Space needs an Apple silicon Mac and
+ about 50 GB of free disk, and its first image is a large download, so a Linux
+ Space is the faster way to see it work.
-The supported Linux package is the **.deb** on Ubuntu 24.04 (x64 and arm64),
-installed with `sudo apt install ./cua-spaces_<version>_<arch>.deb`. It is
-sandboxed, installs the confirmation prompt the Keyvault needs, and
-`sudo apt remove cua-spaces` turns off what the app set up (see
-[Unattended access](/spaces/guides/unattended-access#check-pause-remove)).
-Other distributions and desktops are untested.
+You don't need an account to start. Sign in later to reach your computers from
+other devices.
-The **AppImage** is a portable build, not a supported one. It cannot use the
-browser sandbox (it starts with `--no-sandbox`), and without the system's
-confirmation prompt the Keyvault is unavailable. Use it to try Cua Spaces
-without installing; install the .deb to keep it.
+## 1. Install Cua Spaces
-For CLI-managed local Linux Spaces, use Docker (gVisor `runsc`, when installed, adds
-isolation) or QEMU. QEMU needs read/write access to `/dev/kvm` for hardware
-acceleration of same-architecture guests. The managed runtime is macOS-only.
-
-## Run
-
-<Tabs items={['macOS and Linux', 'Windows']}>
+<Tabs items={['macOS and Linux', 'Windows (preview)']}>
<Tab value="macOS and Linux">
```bash skip="host-install"
curl -fsSL https://cua.ai/install.sh | sh
```
</Tab>
- <Tab value="Windows">
+ <Tab value="Windows (preview)">
```powershell skip="host-install"
irm https://cua.ai/install.ps1 | iex
```
</Tab>
</Tabs>
-In a terminal it first shows a checklist: the `cua` CLI, the Cua Spaces app
-(selected by default on macOS, Linux and Windows), the cua-driver MCP and skill
-for your agents, and hosting this machine. Then it signs you in and offers to set up your AI coding agents.
-Flags: `--select ITEMS`, `--only ITEMS`, `--cli-only`, `--app-only`,
-`--mode host|client`, `--version X`, `--no-onboarding`, `--dry-run`, `--yes`
-(`-Select`, `-CliOnly`, ... on Windows). GUI installers are on
-[GitHub releases](https://github.com/trycua/cua/releases). See [Install](/spaces/guides/install) for
-per-platform steps.
-
-Start the canonical Linux image with a token:
-
-```bash skip="no-runner"
-TOKEN=$(openssl rand -hex 24)
-docker run -d --name my-space -e CUA_ENV_TOKEN=$TOKEN -p 127.0.0.1:3211:3211 \
- ghcr.io/trycua/linux:24.04
-```
-
-Register it and run a command in it (use `http://127.0.0.1:3211` and your
-`$TOKEN`):
-
-<Tabs items={['Python', 'TypeScript', 'Swift']}>
- <Tab value="Python">
- ```python test="docs" id="add-direct" session="add-direct" prelude="space-url"
- import asyncio
- import cua
-
- async def main():
- spaces = cua.embedded().spaces() # or cua.connect().spaces()
- info = await spaces.add("http://10.0.0.5:3211", "TOKEN", "lab")
- space = await spaces.space(info.id)
- out = await space.bash("uname -a", None)
- print(info.id, out.stdout)
-
- asyncio.run(main())
- ```
- </Tab>
- <Tab value="TypeScript">
- ```ts test="docs" id="add-direct-ts" prelude="space-url"
- import { embedded } from "@trycua/cua"
-
- const spaces = embedded().spaces() // or connect().spaces()
- const info = await spaces.add("http://10.0.0.5:3211", "TOKEN", "lab")
- const space = await spaces.space(info.id)
- console.log(info.id, (await space.bash("uname -a", undefined)).stdout)
- ```
- </Tab>
- <Tab value="Swift">
- ```swift test="swift" id="add-direct-space"
- import Cua
-
- let spaces = try Cua.embedded().spaces() // or Cua.connect(address: nil, token: nil)
- let info = try await spaces.add(url: "http://10.0.0.5:3211", token: "TOKEN", name: "lab")
- let space = try await spaces.space(space: info.id)
- print(try await space.bash(command: "uname -a", timeoutMs: nil).stdout)
- ```
- </Tab>
-</Tabs>
+The command installs the `cua` command and the app. You can also download the
+app from the [download page](https://cua.ai/download). [Install](/spaces/guides/install)
+has the details for each system.
+
+## 2. Connect your agent
+
+Open Cua Spaces. The app walks you through a few first-run screens.
+
+1. On **Sign in**, sign in or skip.
+2. On **AI agents**, tick the agents you use and press **Set up**. When you see
+ "Your AI agents are set up", press **Continue**. The app gave each agent the
+ `cua` skills and MCP server.
+3. On **This machine**, keep **Access other machines** and continue. Pick the
+ other option only for a computer you want to reach from elsewhere.
+
+If your agent was already running, start a new session so it loads the new
+tools. To connect an agent later, see [Connect your agent](/spaces/guides/connect-your-agent).
+
+## 3. Create your first Space
+
+On the last screen, choose **Create** next to a system. Cua Spaces shows the
+download progress, and the Space appears in your list when it is ready. You can
+also create one later with **New Space**.
-## Result
+## 4. Ask your agent to use it
-The program prints the Space id (`direct:127.0.0.1:3211`) and the guest's
-`uname -a`. The Space is now in the shared registry, so the app and the CLI see
-it too:
+The last screen has a **Try asking your agent** list. Press a prompt to copy it,
+then paste it into your agent:
-```bash test="cli-shape" id="cua"
-cua --version
-cua auth status
-cua spaces ls
-```
+- "Open a Linux Space and run my test suite in it"
+- "Use my Space's browser to finish the checkout test and show me"
+- "Share this Space with a teammate as a viewer"
-## Clean up
+Open the Space from Cua Spaces to watch the agent work. You can take over at any
+time by using the desktop yourself.
-```bash skip="no-runner"
-docker rm -f my-space
-```
+<Callout type="info">
+ A Space that fails to create shows the reason and a **Try again** button. See
+ [Troubleshoot a failed create](/spaces/guides/troubleshoot-create).
+</Callout>
## Next
-- [Add a Space](/spaces/guides/add-a-space): create one locally or in your own cloud, from any image.
-- [Stream a desktop](/spaces/guides/stream-a-desktop).
-- [Use Spaces from an agent](/spaces/guides/use-from-an-agent).
-- [Cua Bots](/spaces/examples/cua-bots): an example app of persistent bots, each with its own Space.
+- [Add a machine](/spaces/guides/add-a-machine): use another computer you own.
+- [Share a Space](/spaces/guides/share-a-space): let a teammate watch or work in it.
+- [Plans](/spaces/guides/plans): what Free, Pro and Teams include.
+- Using code instead? [Create a Space with the Cua SDK](/spaces/guides/create-a-space-with-the-sdk).
diff --git a/docs/content/docs/start-here/meta.json b/docs/content/docs/start-here/meta.json
index b3c0fd3fb4..2bbc2f5773 100644
--- a/docs/content/docs/start-here/meta.json
+++ b/docs/content/docs/start-here/meta.json
@@ -3,8 +3,6 @@
"icon": "GraduationCap",
"pages": [
"sandbox-images",
- "create-a-space-with-the-sdk",
- "host-spaces-on-your-spare-mac",
"drive-your-first-app",
"create-a-local-macos-sandbox",
"run-in-github-actions",
diff --git a/docs/content/docs/start-here/run-in-github-actions.mdx b/docs/content/docs/start-here/run-in-github-actions.mdx
index dd7b371f2b..f66e1bef21 100644
--- a/docs/content/docs/start-here/run-in-github-actions.mdx
+++ b/docs/content/docs/start-here/run-in-github-actions.mdx
@@ -24,7 +24,7 @@ jobs:
- `run` runs on the runner; `guest-run` runs inside the sandbox.
- `cua-version` defaults to `source` (builds the CLI from the action's ref, hence the Rust step).
-- No Docker or KVM on the runner: set `on: cloud` and pass `CUA_CLIENT_ID` and `CUA_CLIENT_SECRET` from secrets in the step `env`.
+- No Docker or KVM on the runner: use a runner that has Docker (GitHub-hosted Linux runners do), or a [contrib provider](/cua-sdk/guides/contrib-providers) such as `on: e2b`. Cua Cloud (`on: cloud`) has ended.
## The same steps locally
diff --git a/docs/next.config.mjs b/docs/next.config.mjs
index efeed00e50..e965f5e116 100644
--- a/docs/next.config.mjs
+++ b/docs/next.config.mjs
@@ -88,12 +88,12 @@ const config = {
},
{
source: '/tutorials/your-first-cloud-sandbox',
- destination: '/start-here/create-a-space-with-the-sdk',
+ destination: '/spaces/guides/create-a-space-with-the-sdk',
permanent: true,
},
{
source: '/tutorials/your-first-local-sandbox',
- destination: '/start-here/create-a-space-with-the-sdk',
+ destination: '/spaces/guides/create-a-space-with-the-sdk',
permanent: true,
},
{
diff --git a/docs/scripts/product-structure.test.ts b/docs/scripts/product-structure.test.ts
index 88da253626..28624d8b38 100644
--- a/docs/scripts/product-structure.test.ts
+++ b/docs/scripts/product-structure.test.ts
@@ -11,13 +11,15 @@ const docs = path.resolve(__dirname, '..');
const repo = path.resolve(docs, '..');
const content = path.join(docs, 'content/docs');
+// In sidebar order: Cua Spaces first, then the products it builds on, then the
+// developer tools (SDK, CLI, Bench).
const PRODUCTS: Array<[string, string]> = [
- ['cua-sdk', 'Cua SDK'],
- ['cua-driver', 'Cua Driver'],
['spaces', 'Cua Spaces'],
- ['cua-bench', 'Cua Bench'],
+ ['cua-driver', 'Cua Driver'],
['lume', 'Lume'],
+ ['cua-sdk', 'Cua SDK'],
['cua-cli', 'Cua CLI'],
+ ['cua-bench', 'Cua Bench'],
];
// Sections in their only allowed order; `examples` and `concepts` are optional.
const SECTIONS = ['index', 'quickstart', 'guides', 'examples', 'concepts', 'reference'];
@@ -28,7 +30,8 @@ const SECTION_TITLES: Record<string, string> = {
concepts: 'Concepts',
reference: 'Reference',
};
-// The one non-product section: curated end-to-end walkthroughs, listed first.
+// The one non-product section: end-to-end walkthroughs for the Cua Driver, Lume,
+// SDK and Bench products, listed first. Spaces walkthroughs live in Spaces.
const START_HERE: [string, string] = ['start-here', 'Start here'];
// The docs home is the designed landing; its frontmatter feeds it.
// Each example: a title, a page, alt text and its media (an image, or a