Skip to content
32 changes: 15 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

DeviceCloud is a third-party Maestro Cloud alternative.

Reasons to switch:
Why teams switch:

* Cheap unit-based pricing
* Up to 100 parallel runs
* Twice as fast as Maestro Cloud for half the cost
* Google Play APIs
* Tablets and iPads
* Fast support response times (via Discord or Slack Connect)
* Per-test-run pricing, with $20 of free credits to start
* Parallel runs: up to 20 iOS and 20 Android tests at once on the Max plan, and more on Enterprise
* Google Play APIs, tablets, iPads and foldables
* Fast support, through Discord or Slack Connect

## Try it

Expand Down Expand Up @@ -50,9 +48,9 @@ Start with the [Quick Start](getting-started/quickstart.md) to install the CLI a
### Automate with AI & code

* [Agent Devices](mcp/agent-devices.md) - give your AI agent a cloud iOS or Android device to drive, with a person on hand when it gets stuck (beta)
* [MCP Server](mcp/overview.md) - let Claude, Cursor and other MCP clients run your tests
* [Connect an AI Agent](mcp/connect.md) - let Claude Code, Cursor and other MCP clients run your tests
* [CLI Reference](cli/overview.md) - every `dcd` command and flag
* [REST API](api/overview.md) - uploads, results and flows over HTTP
* [REST API](api/overview.md) - uploads, results, flow analytics, device sessions and IP addresses over HTTP

### Pricing & plans

Expand All @@ -69,19 +67,19 @@ For most projects, yes. The CLI mimics the Maestro Cloud API, so you change `mae

### How much does it cost?

DeviceCloud bills per test run i.e. a single top-level flow on a single device and are charged at $0.11 for standard iOS and $0.09 for standard Android. iPad, iPhone Duo, Pixel 10 Pro Fold, Google Play, tablet and `m4` and `m1` runner flows are charged at the advanced rate of $0.15. New accounts get $20 of free credits. The Pro and Max plans include a set amount of usage each month, and usage beyond that is billed as [overage](billing/overage.md), up to a limit you control. See [Test Run Billing](billing/test-run-billing.md).
DeviceCloud bills per test run: one top-level flow on one device. A standard run costs $0.11 on iOS and $0.09 on Android. Runs on an iPad, the iPhone Duo, the Pixel 10 Pro Fold, the generic tablet or a Google Play image, and runs on the `m4` and `m1` runner types, cost the advanced rate of $0.15. New accounts get $20 of free credits. The Pro and Max plans include a set amount of usage each month, and usage beyond that is billed as [overage](billing/overage.md), up to a limit you control. See [Test Run Billing](billing/test-run-billing.md).

### How many tests can I run in parallel?

It depends on your plan: Pro runs up to 5 iOS and 5 Android tests at once, and Max up to 20 of each. Enterprise concurrency is arranged to fit your requirements. Once you hit your maximum, further tests queue and start automatically as capacity frees up. See [Concurrency & Parallel Runs](getting-started/concurrency-and-parallel-runs.md) and [Subscriptions](billing/subscriptions.md).
It depends on your plan: on the standard runners, Pro runs up to 5 iOS and 5 Android tests at once, and Max up to 20 of each. Enterprise concurrency is arranged to fit your requirements. Once you hit your maximum, further tests queue and start automatically as capacity frees up. See [Concurrency & Parallel Runs](getting-started/concurrency-and-parallel-runs.md) and [Subscriptions](billing/subscriptions.md).

### Which devices and OS versions can I run on?

Android runs cover a range of Google Pixel phones plus a generic tablet, and iOS runs cover recent iPhones and the iPad Pro. Not every device supports every OS version, and older devices and versions are retired over time, so check [Devices & OS Versions](getting-started/devices-configuration.md) for the current devices, Android API levels and iOS versions.

### Which Maestro versions are supported?

We always support the latest version of Maestro with backwards compatibility up to v2.2.0. Runs default to v2.10.0, and you can use `--maestro-version latest` to always use the most up to date version. We periodically remove support for older versions, and these will be announced with plenty of warning. See [Maestro Versions](configuration/maestro-versions.md).
We always support the latest version of Maestro, and older versions back to v2.2.0. We're targeting v2.2.0 for removal on 23 November 2026, after which v2.6.1 is the oldest. Runs default to v2.10.0, and `--maestro-version latest` always uses the newest version we support. We announce removals of older versions well in advance. See [Maestro Versions](configuration/maestro-versions.md).

### Do I need an API key, or can I just log in?

Expand All @@ -93,23 +91,23 @@ There are first-class integrations for GitHub Actions, Bitrise, Bitbucket Pipeli

### How do I get videos, logs and test reports?

Pass `--download-artifacts ALL` (or `FAILED`) to a `dcd cloud` run, or fetch them after the fact with `dcd artifacts --upload-id <uuid> --download-artifacts ALL`. Each result in the console also has a download menu for its logs, reports, app binary and workspace. Reports are available as `junit` and `html` via `--report`. `html-detailed` and `allure` are deprecated and will be removed on 7 December 2026. See [Artifacts & Downloads](artifacts/artifacts.md) and [Report Formats](artifacts/report-formats.md).
Pass `--download-artifacts ALL` (or `FAILED`) to a `dcd cloud` run, or fetch them after the fact with `dcd artifacts --upload-id <uuid> --download-artifacts ALL`. Each result in the console also has a download menu for its logs, reports, app binary and workspace. Reports are available as `junit` and `html` via `--report`. `html-detailed` and `allure` are deprecated, and we're targeting their removal on 7 December 2026. See [Artifacts & Downloads](artifacts/artifacts.md) and [Report Formats](artifacts/report-formats.md).

### Is there a time limit on a test?

Yes. Every flow has a 10-minute execution limit. A flow that is still running when it reaches the limit is stopped and marked as failed, with a "Test run timed out after 10 minutes" error. A flow that needs longer can opt into [extended runtime](configuration/extended-runtime.md), which gives it up to 20 minutes and is charged at 2×. Failed tests can be retried up to twice, giving a maximum of three total runs, free of charge. See [Quick Start](getting-started/quickstart.md#limits) and [Retry Strategies](advanced/retry-strategies.md).
Yes. Every flow has a 10-minute execution limit. A flow that is still running when it reaches the limit is stopped and marked as failed, with a "Test run timed out after 10 minutes" error. A flow that needs longer can opt into [extended runtime](configuration/extended-runtime.md), which gives it up to 20 minutes and is charged at 2×. `--retry` re-runs a failed test up to twice, free of charge, and you can also retry failed tests from the console. See [Quick Start](getting-started/quickstart.md#limits) and [Retry Strategies](advanced/retry-strategies.md).

### Can I allow-list DeviceCloud in our firewall?

Yes. Test runner egress comes from a published set of IP ranges, and the same list is served from an unauthenticated endpoint — `GET https://api.devicecloud.dev/ip-addresses` so your tooling can poll it rather than watching a docs page. See [IP Addresses](security/ip-addresses.md).
Yes. Test runner egress comes from a published set of IP ranges, and the same list is served from an unauthenticated endpoint, `GET https://api.devicecloud.dev/ip-addresses`, so your tooling can poll it rather than watching a docs page. See [IP Addresses](security/ip-addresses.md).

### Can AI agents drive DeviceCloud?

Yes. The `@devicecloud.dev/dcd` package ships `dcd-mcp`, a Model Context Protocol server that lets Claude, Cursor, VS Code and other MCP clients list devices, submit runs, check status and download artifacts. It's in beta, and the one billable tool can be hidden entirely with `--read-only`. See [MCP Server](mcp/overview.md).
Yes. `dcd mcp`, the Model Context Protocol server built into the CLI, lets Claude Code, Cursor, VS Code, Codex and other MCP clients list devices, run cloud tests, check status and download artifacts. `--read-only` hides the one billable tool. [Agent Devices](mcp/agent-devices.md) (closed beta) also give an agent a cloud device to drive, through DeviceCloud's hosted MCP server. See [Connect an AI Agent](mcp/connect.md).

### How do I get support?

Every account gets community and team support via [Discord](https://discord.gg/gm3mJwcNw8), and you can also email [support@devicecloud.dev](mailto:support@devicecloud.dev). We aim to respond within four hours for urgent queries and three days for non-urgent. Max and Enterprise customers both receive priority email support and Enterprise customers have direct access to the team via Slack Connect. Support hours are 8am–8pm UK time, Monday to Friday. See [Service Level Agreements](legal/service-level-agreements.md).
Every account gets community and team support via [Discord](https://discord.gg/gm3mJwcNw8), and you can also email [support@devicecloud.dev](mailto:support@devicecloud.dev). We aim to respond within four hours for urgent queries, and within one to three business days for other queries, depending on severity. Max and Enterprise customers both receive priority email support and Enterprise customers have direct access to the team via Slack Connect. Support hours are 8am–8pm UK time, Monday to Friday. See [Service Level Agreements](legal/service-level-agreements.md).

::: info
Question not answered here? Ask in our [Discord](https://discord.gg/gm3mJwcNw8) or email [support@devicecloud.dev](mailto:support@devicecloud.dev) and we'll be happy to help.
Expand Down
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@

* [Subscriptions](billing/subscriptions.md)
* [Overage](billing/overage.md)
* [Usage Alerts & Limits](billing/usage-alerts.md)
* [Test Run Billing](billing/test-run-billing.md)

## Legal
Expand Down
10 changes: 6 additions & 4 deletions advanced/async-execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,28 @@ By default, `dcd cloud` waits for all tests to complete before exiting. Async mo
## Basic Usage

```bash
dcd cloud <appFile> <flowFile> --async
dcd cloud <app-file> <flows-dir> --async
```

When tests are submitted successfully, the command exits with code `0` regardless of test outcome. If submission itself fails, it exits with code `1`.

Because the command doesn't wait for the run, `--download-artifacts` and `--report` do nothing with `--async`. Download artifacts and reports with [`dcd artifacts`](../cli/dcd-artifacts.md) once the run has finished. With `--json` or `--json-file`, the result has `status` `PENDING`, and each test has the status it was submitted with (see [JSON output](../cli/dcd-cloud.md#json-output)).

Pair `--async` with `--name` to make it easy to look up results later:

```bash
dcd cloud <appFile> <flowFile> --async --name "build-$GIT_SHA"
dcd cloud <app-file> <flows-dir> --async --name "build-$GIT_SHA"
```

## Checking Results After an Async Run

Use the `dcd status` command to poll for results by upload ID:

```bash
dcd status --upload-id <uploadId>
dcd status --upload-id <id>
```

You can also look a run up by name with `--name` (handy when paired with `--async --name`). See [dcd status](../cli/dcd-status.md) for the full reference.
You can also look a run up by name with `--name` (handy when paired with `--async --name`). A run's status can turn `FAILED` before all its tests have finished, so wait until no test is queued, pending or running before you download anything. See [dcd status](../cli/dcd-status.md#polling-an-async-run) for an example.

## GitHub Actions Pattern

Expand Down
10 changes: 6 additions & 4 deletions advanced/cancel-previous.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,17 @@ dcd cloud --app-file build/app.apk --flows ./.maestro \
```

The CLI doesn't read your CI provider's environment, so pass the context
yourself. `--repo-name` plus `--branch` or `--pr-number` are required; without
them nothing is cancelled. `gh_check_name` scopes the group to this job, and
`gh_run_id` stops jobs of the same CI run from cancelling each other.
yourself. A repository plus a branch or PR are required: `--repo-name` with
`--branch` or `--pr-number`, or the same values as `--metadata gh_repo=…` with
`gh_branch=…` or `gh_pr_number=…`. Without them nothing is cancelled.
`gh_check_name` scopes the group to this job, and `gh_run_id` stops jobs of
the same CI run from cancelling each other.

== Bitbucket
```yaml
- pipe: docker://moropo/device-cloud-for-bitbucket:1.6.1
variables:
API_KEY: $DCD_API_KEY
API_KEY: $DEVICE_CLOUD_API_KEY
APP_FILE: build/app.apk
CANCEL_PREVIOUS: "true"
CHECK_NAME: Android
Expand Down
8 changes: 6 additions & 2 deletions advanced/chrome-onboarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ Chrome Onboarding pre-configures Chrome browser settings before your tests run o

By default we use a config-based Chrome onboarding which adds minimal overhead and works for most scenarios.

If config-based onboarding fails, we automatically switch to Maestro-based onboarding which uses a Maestro script. While more thorough, Maestro-based onboarding adds significant overhead as it runs an additional flow on the device before your tests.
If config-based onboarding can't be confirmed on the device, we automatically switch to Maestro-based onboarding, which runs a Maestro flow that opens Chrome and taps through its first-run screens. It's more thorough, but it adds significant overhead, because the flow runs on the device before your test.

If Maestro-based onboarding fails, the test goes back in the queue to start again on a fresh device. This doesn't use up a [retry](retry-strategies.md) and isn't charged. If onboarding still fails on the last attempt, the test starts anyway, and the test's log notes that Chrome may show its welcome screen first.

### Forcing Maestro-based Onboarding

If you're experiencing issues with Chrome, you can force Maestro-based onboarding using the CLI flag `--maestro-chrome-onboarding`.

**Important:** Using Maestro-based onboarding **will slow your test suite down**. We therefore only recommend using it if you are experiencing issues with the default config-based method.
::: warning
Maestro-based onboarding **will slow your test suite down**. We only recommend it if you're having issues with the default config-based method.
:::
54 changes: 31 additions & 23 deletions advanced/exit-codes.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
# Exit Codes

Device Cloud uses standard exit codes to indicate the status of command execution. Understanding these codes is useful for CI/CD integration and automation.
The `dcd` CLI reports how a command went through its exit code, so a CI job can pass or fail on it.

## Standard Exit Codes
## `dcd cloud`

### Success
| Code | Meaning |
|---|---|
| `0` | The run passed |
| `1` | The CLI couldn't finish: a bad flag or path, a network or API error, or a run the API refused to start |
| `2` | The run failed: at least one of its tests failed or was cancelled |

```bash
0 # Command completed successfully
```

### General Errors

```bash
1 # CLI or infrastructure error (bad workspace, network failure, dcd bug)
2 # Test run explicitly failed
```

A run the API refuses to start also exits `1`. That includes HTTP `402` refusals, when a run would take you over your [Overage Limit](../billing/overage.md#when-a-run-would-go-over-the-limit) or a subscription payment is [overdue](../billing/test-run-billing.md#overdue-payments).
A run the API refuses to start exits `1`. That includes HTTP `402` refusals, when a run would take you over your [Overage Limit](../billing/overage.md#when-a-run-would-go-over-the-limit) or past a [usage alert's hard stop](../billing/usage-alerts.md#hard-stop), or a subscription payment is [overdue](../billing/test-run-billing.md#overdue-payments).

A run fails if any of its tests fails or is cancelled, so a run you cancel from the console also exits `2`. With `--async`, `dcd cloud` exits `0` as soon as the run is submitted, whatever the outcome.

## JSON Output
A run superseded by a newer run through [`--cancel-previous`](cancel-previous.md) exits `0`, even if one of its tests had already failed. With `--json` or `--json-file`, its `status` is `SUPERSEDED`.

### JSON output

The two JSON flags behave differently around test failures:

Expand All @@ -32,15 +27,28 @@ The two JSON flags behave differently around test failures:
Use `--json-file` when you want to inspect the result yourself rather than have a non-zero exit code fail the build. Use `--json` when you still want the exit code to gate your pipeline.
:::

`dcd status --json` exits `0` whenever it prints a result. That includes a `FAILED` run and a failed lookup, which is also reported as `FAILED` but with an `error` field (see [dcd status](../cli/dcd-status.md#json-output)).
On a CLI or infrastructure error, `--json` prints `{"status": "FAILED", "error": "…"}`. That's the same `status` as a failed run, so check the exit code, or look for an `error` field, to tell them apart. See [JSON output](../cli/dcd-cloud.md#json-output).

## Superseded Runs
## `dcd status`

A run superseded by a newer run through [`--cancel-previous`](cancel-previous.md) exits `0`, even if one of its tests had already failed. With `--json` or `--json-file`, its `status` is `SUPERSEDED`.
`dcd status` exits `0` whenever it can read the run, whatever the run's status, so check the status it prints rather than its exit code.

With `--json`, a failed lookup, such as an unknown upload ID or an API it can't reach, is reported as `FAILED` with an `error` field, and still exits `0`. Other errors, such as passing neither `--upload-id` nor `--name`, print the same `status` and `error` but exit `1`. See [dcd status](../cli/dcd-status.md#json-output).

## Other commands

`dcd upload`, `dcd list`, `dcd login` and the other commands exit `0` when they succeed and `1` when they fail. `dcd artifacts` exits `0` even when a download fails, unless you pass `--json`: then it exits `1` when every download failed.

## Device sessions

## Live Sessions
Every [`dcd device`](../cli/dcd-device.md) subcommand uses these codes:

- **`dcd live run`** exits `2` if the flow fails, or if it's still running when `--timeout` is reached.
- **`dcd live exec`** exits `0` even when the commands fail — check the printed result.
| Code | Meaning |
|---|---|
| `0` | Done |
| `1` | Called wrongly: a bad flag or value, no session to pick, or credentials the API rejected |
| `2` | It ran and failed: a flow, action or launch failed, or the API couldn't do it |
| `3` | A limit was hit: concurrent sessions, spend cap or rate limit |
| `4` | The session has ended, or there is no such session |

See [dcd live](../cli/dcd-live.md) for the full reference.
The deprecated [`dcd live`](../cli/dcd-live.md) has no such contract. `dcd live run` exits `2` if the flow fails, or if it's still running when `--timeout` is reached. `dcd live exec` exits `0` even when the commands fail, so check the printed result.
Loading
Loading