> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tembo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloud devices

> Let the agent build and run your app on cloud iOS simulators, Android emulators, and Macs with Xcode, and watch it live in your session.

Cloud devices let the agent check its work on iOS, Android, and macOS without anything installed on your machine. From a session, the agent can start an iPhone simulator or Android emulator, or a cloud Mac with Xcode to build your iOS app. It then taps through the app, types, and takes screenshots, while you watch and use the device live in the session sidebar. To have the agent work on your own computer instead, see [Devices](https://docs.tembo.io/features/devices.md).

> [!NOTE]
>
> Cloud devices are available on the Max plan. Device time draws from your workspace's usage allowance at the rates in [Pricing](#pricing).

> [card] iOS simulator
>
> Check a web page on an iPhone, or install and try a simulator build of your app.

> [card] Android emulator
>
> Check a web page on Android, or install and try an `.apk`.

> [card] Cloud Mac
>
> Build iOS apps with Xcode, run them on a simulator, and run anything else that needs macOS.

## Use a cloud device in a session

Ask for what you want to see, and the agent picks the right device. For example:

* "Open the preview of this page on an iPhone and check the checkout form."
* "Build the iOS app and show me the new onboarding screen."
* "Make sure the settings screen still works on Android."

The agent starts the device, or reuses the one already running in the session, and can:

* Take screenshots and check them against what you asked for.
* Tap, swipe, drag, type, and press the home button.
* Open a URL, such as a [preview URL](https://docs.tembo.io/features/agent-skills.md#built-in-skills) of a web app running in your sandbox.
* Install an app from a download link, such as a zipped simulator `.app` or an `.apk`, and launch apps.

When it's done, the agent stops the device so it stops costing money.

### Watch and use the device

When the agent starts a simulator or emulator, the **Simulator** tab opens in the session sidebar and streams the device live. You can use it at the same time as the agent:

* Click to tap, and drag to swipe or scroll.
* Click **Keyboard** to type text into the focused field.
* Click **Home** to go to the home screen.
* Click **Stop simulator** to stop the device.

## Build iOS apps on a cloud Mac

Your sandbox runs Linux, so it can't build iOS apps itself. When a change needs Xcode, the agent uses a cloud Mac with macOS, Xcode, and iOS simulators:

**1. Start the Mac**

The agent starts a cloud Mac for the session, or reuses the one already running.

**2. Copy the project**

The agent archives your project in the sandbox and downloads it onto the Mac.

**3. Build**

The agent builds the app for the simulator with `xcodebuild`. Later builds reuse the earlier build output, so they only rebuild what changed.

**4. Show the app**

The agent installs the app on an iPhone simulator running on the Mac and opens it. The simulator streams to the **Simulator** tab like any other device.

After each change, the agent copies the edit to the Mac, rebuilds, and relaunches the app, so you can follow along as it iterates.

Good to know:

* Commands on the Mac run as a standard user without `sudo`, and Homebrew isn't writable. The agent downloads extra tools it needs, such as XcodeGen, into the Mac's home folder.
* Nothing on the Mac is kept after it stops. The next Mac starts fresh.
* The Mac can reach the public internet, but not private networks such as a VPN or Tailscale. An app that loads data from an internal-only API will launch, but can't load that data.

## Pricing

Device time is billed per second while the device runs. Time spent waiting for a device and booting it isn't billed.

| Device | Per minute | Per hour |
| - | -: | -: |
| iOS simulator | \$0.20 | \$12.00 |
| Android emulator | \$0.15 | \$9.00 |
| Cloud Mac (macOS with Xcode) | \$0.07 | \$4.20 |

Simulators running on a cloud Mac are included in the Mac's price, so building and running an iOS app on a Mac costs \$0.07 per minute in total.

Some typical costs:

| Example | Device | Time | Cost |
| - | - | -: | -: |
| Check a page layout on an iPhone | iOS simulator | 10 minutes | \$2.00 |
| Test a sign-up flow on Android | Android emulator | 20 minutes | \$3.00 |
| Build and iterate on an iOS app | Cloud Mac | 1 hour | \$4.20 |

Device time draws from the same [usage allowance](https://docs.tembo.io/resources/pricing.md#how-the-usage-allowance-works) as Tembo Gateway and VM compute, including prepaid balance and overage billing. The session sandbox that runs the agent is billed separately as [VM compute](https://docs.tembo.io/resources/pricing.md#cloud-vm-compute-rates).

In **Settings > Usage**, device time counts toward **Compute**. To see only device usage, filter the usage history by **macOS VMs**.

## Limits

| Limit | Value |
| - | - |
| Devices running at once in a workspace | 2. Simulators running on a cloud Mac don't count. |
| Longest run for a simulator or emulator | 1 hour |
| Longest run for a cloud Mac | 2 hours |
| Idle timeout for simulators and emulators | 5 minutes without an action |

A session's devices also stop as soon as its sandbox stops, for example when you click **Stop VM**, archive the session, or its keep-alive time runs out. Restarting the sandbox keeps them running.

## Availability

* Cloud devices are available on the **Max** plan. They aren't included in the free trial or the Pro plan. See [Pricing](https://docs.tembo.io/resources/pricing.md#plans).
* Your workspace needs available balance: included allowance, prepaid balance, or overage billing.
* Cloud devices aren't available on self-hosted installations.

## Troubleshooting

> [accordion] The agent says cloud devices are only available on the Max plan
>
> Upgrade your workspace to Max in **Settings > Billing**, then ask the agent again.

> [accordion] The agent says the workspace already has 2 cloud devices running
>
> Stop a device you no longer need, either with **Stop simulator** in its session or by asking the agent that started it. Simulators running on a cloud Mac don't count toward the limit.

> [accordion] The agent says the workspace is out of credits
>
> Add prepaid balance or turn on overage billing in **Settings > Billing**.

> [accordion] The app launches but can't load data
>
> Cloud devices can't reach private networks. Point the build at a publicly reachable environment, or use test data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.