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

# naive mobile

> Provision and drive cloud Android phones and iPhones.

Manage [mobile devices](https://vetta.sh/docs/computer/mobile.md) — cloud phones you look at, tap, type into and destroy. The third member of the computer suite beside [`naive computer`](https://vetta.sh/docs/cli/computer).

## Commands

| Command | Description |
| - | - |
| `naive mobile create` | Create a device. |
| `naive mobile list` | List devices (terminated ones excluded). |
| `naive mobile show <id>` | Show a device, reconciled with the provider. |
| `naive mobile update <id>` | Rename a device. |
| `naive mobile act <id>` | Run one action: tap, type, press a key, scroll, open a URL, install an app, look. |
| `naive mobile install <id> <app>` | Install an app from the platform's app catalogue on the running phone. |
| `naive mobile screenshot <id>` | Take a screenshot; `--out` writes the JPEG. |
| `naive mobile live-view <id>` | Print the device's dashboard link, where its live stream plays. |
| `naive mobile delete <id>` | End the device. |

`naive mobile list --session-id ses_…` lists only the phone that agent session opened.

## create

```bash theme={"system"}
naive mobile create --name pixel --os-version 15 --idle-timeout-minutes 15
naive mobile create --name iphone --platform ios --apps com.burbn.instagram
```

| Flag | Description |
| - | - |
| `--name` | Human-readable name (default `device`). |
| `--platform` | `android` (the default) or `ios`. |
| `--os-version` | Android only: `13`, `14` or `15` (default `15`). An iPhone has no version to choose; passing one with `--platform ios` is `validation_failed` (400). |
| `--model` | `phone` (the default, and today the only value). |
| `--jurisdiction` | `us`, `eu` or `as` (default `us`): the phone runs in the US, Germany or Singapore, and its traffic exits through a residential IP in that country, with GPS, timezone, locale and carrier to match. |
| `--idle-timeout-minutes` | Inactivity after which the device ends, 1–180 (default `10`). |
| `--max-duration-minutes` | Hard ceiling on its life, 1–1440 (default `120`). |
| `--apps` | Comma-separated app ids, installed from the platform's app catalogue when the device starts: package names on Android (`com.spotify.music`), App Store bundle ids on iOS (`com.burbn.instagram`). |

The command waits up to about 45 seconds for the phone and answers with whatever is true then, usually `"status": "creating"`: an Android phone is usually ready in under a minute (a few with apps at create) and an iPhone in up to about three, and `naive mobile show` follows it. There is no pause: the two timers are how idle cost is controlled.

There is no limit on how many phones you run, only on the balance: a create needs 10 minutes for every live phone and the new one at their rates (2,500 credits for one Android phone, 4,000 for one iPhone), plus what the live ones have run, or it fails with `insufficient_credits` (402). When the platform's phones are all in use it fails with `rate_limited` (429); try again shortly.

## act

One verb over the whole action surface. `--type` picks the action; the other flags belong to it.

```bash theme={"system"}
naive mobile act mob_01H8YZ... --type tap --x 360 --y 1100
naive mobile act mob_01H8YZ... --type tap --text "Sign in"
naive mobile act mob_01H8YZ... --type type --text "hello"
naive mobile act mob_01H8YZ... --type press_key --key KEYCODE_BACK
naive mobile act mob_01H8YZ... --type scroll --direction down --amount 400
naive mobile act mob_01H8YZ... --type open_url --url https://example.com
naive mobile act mob_01H8YZ... --type launch_app --package com.android.settings
naive mobile act mob_01H8YZ... --type element_tree
naive mobile act mob_01H8YZ... --type install_app --app com.spotify.music
```

| Flag | Used by |
| - | - |
| `--type` | Required: `screenshot`, `element_tree`, `tap`, `type`, `press_key`, `scroll`, `open_url`, `launch_app`, `install_app`. |
| `--x`, `--y` | `tap` by coordinates; screenshot pixels map 1:1. |
| `--text` | `tap` by visible text, or the text for `type`. |
| `--resource-id`, `--content-desc` | `tap` by element id or accessibility label. |
| `--key` | `press_key`: `HOME`, `BACK`, `RECENTS`, `NOTIFICATIONS`, `ENTER`, `DEL`, `TAB`, `ESCAPE`, `SPACE`, arrows (`DPAD_*`), volume, `POWER`, or a numeric key code; case-insensitive, a `KEYCODE_` prefix is accepted. These are Android's keys: an iPhone has no `BACK` or `RECENTS`, so navigate it with taps and `HOME`. |
| `--direction`, `--amount` | `scroll`: `up`, `down`, `left`, `right`; `--amount` is optional, in screenshot pixels (default: 40% of the screen). |
| `--url` | `open_url`. |
| `--package` | `launch_app`: an installed app's package name, e.g. `com.android.settings`. |
| `--app` | `install_app`: a package name (Android) or App Store bundle id (iOS). |

A `tap` with neither coordinates nor a selector is a usage error, not a request.

## install

```bash theme={"system"}
naive mobile install mob_01H8YZ... com.spotify.music
```

The same as `act --type install_app --app …`: installs the app from the platform's app catalogue onto the running phone, with no upload and no store account. The catalogue carries many but not all store apps and cannot be listed; an app it lacks fails in a second or two (`400`, `param: app`), so this is also how to check one before naming it in `--apps`. It waits up to about a minute and prints `{ "object": "mobile_action_result", "type": "install_app", "output": { "app": "com.spotify.music", "status": "installed", "error": null }, "image": null }`. `status` is `installed`, `failed` (with `error`), or `installing` when a large app is still going: run the same command again to check on it.

## screenshot

```bash theme={"system"}
naive mobile screenshot mob_01H8YZ... --out shot.jpg
```

Without `--out` the JSON result is printed, the image bytes base64-encoded in `image.data`. With it, the JPEG bytes are written to the path and the command prints `{ "path": "shot.jpg", "content_type": "image/jpeg" }`.

## live-view

```bash theme={"system"}
naive mobile live-view mob_01H8YZ...
```

Prints `{ "object": "mobile_live_view", "url": "https://…/mobile/mob_…", "expires_at": null }`. `url` is the device's dashboard page, where the stream plays. The CLI never prints the `stream` half of the answer: it is a bearer credential (anyone holding it drives the device until it ends), and a terminal's output ends up in scrollback and CI logs. Each mint is recorded in the audit log without the credential.

## show, update, delete

```bash theme={"system"}
naive mobile show mob_01H8YZ...
naive mobile update mob_01H8YZ... --name "qa phone"
naive mobile delete mob_01H8YZ...
```

`show` asks the provider and reports the truth — a device ended by its idle timer comes back `terminated` with `termination_reason: "idle_timeout"`. `list` reads stored rows only and can lag until a `show`.


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