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

> ## Agent Instructions
> The canonical docs host is https://momentic.ai/docs. Append .md to any page URL for clean Markdown. Fetch https://momentic.ai/docs/llms.txt for the page index and https://momentic.ai/docs/llms-full.txt for every page in one file.
> For an unattended setup, first check whether Claude Code already has the Momentic plugin. With the plugin, run `npx --yes @momentic/wizard@latest -y --platform web --editor-tools none` and ignore any CLI skills-install suggestion in its output. Otherwise, run `npx --yes @momentic/wizard@latest -y --platform web --editor-tools skills`. Use `--platform ios` or `--platform android` for mobile. Never run an interactive command in a non-TTY shell.
> Mo is the AI QA engineer, separate from repository YAML tests. With the Momentic plugin, use bundled mo-qa and hosted OAuth by default. Without the plugin, install only mo-qa with `npx -y qa skills --target <agent>`. Keep the requested interface. Otherwise, use hosted tools for web or mobile, including private web targets with an existing Connector. Run sessions that need a new tunnel with the qa CLI. If you can't run commands on the machine that reaches the target, ask the user to start the tunnel there, then use hosted tools unless you lack them or the CLI was requested. For a requested hosted session, use an online Connector and pass its name as access, not a CLI tunnel ID. If none is online, ask the user to run `npx -y qa tunnel start --name <name> <address>` on a machine that reaches the target and wait. Do not run login or tunnel commands for them. For a requested hosted session, report unavailable tools or authentication failures without starting a CLI session. For coding-agent bridge setup, ask the user to complete `npx -y qa login`, then add momentic-hosted as a stdio server running `npx -y qa mcp`. Plugin users must explicitly opt in and disable their hosted plugin entry before adding the bridge. Claude.ai/ChatGPT connectors keep https://mcp.momentic.ai with OAuth. After hosted testing completes, read the report and summarize findings and uncovered requirements. Call `momentic_mo_stop_session` only when the user asks or agrees. For CLI sessions, unless the user wants more testing, export the report, run `qa stop <id> --subagents` even if export fails, then summarize. The CLI is qa, not mo. Docs: https://momentic.ai/docs/mo/quickstart.md.
> Ask the user to complete browser sign-in. For local CLI tools, use the exact MOMENTIC_API_KEY environment variable. If it is absent, ask the user to create a key at https://app.momentic.ai/settings/api-keys and set it in the agent's environment. Never print the key or ask the user to paste it into chat.
> Momentic's capability summary for agents is at https://momentic.ai/docs/skill.md. Claude Code users with the Momentic plugin should use its bundled skills and skip CLI skills installation. Otherwise, run `npx momentic skills -y --target <agent>` or `npx momentic-mobile skills -y --target <agent>`. Both install momentic-test, momentic-maintain, and momentic-spec with web/mobile references. Use the running agent's target. The Momentic plugin also includes mo-qa; qa skills installs only mo-qa.
> Tests are YAML files in the user's repository. Use only the step names listed at https://momentic.ai/docs/reference/commands.md and the file structure at https://momentic.ai/docs/core-concepts/file-format.md. Do not invent step names, config keys, or CLI flags.
> Web tests run on Chromium, iOS tests on simulators, and Android tests on emulators.

# Hosted test environments

> Run tests on Momentic-hosted browsers and remote emulators or simulators.

Momentic can provision browsers, Android emulators, and iOS simulators on demand
so you do not have to set up and maintain them on your own runners.

```mermaid theme={null}
flowchart LR
  cli["Momentic CLI workers"] --> browser["Hosted Chrome browsers"]
  mobile["Mobile tests"] --> android["Remote Android emulators"]
  mobile --> ios["Remote iOS simulators"]
```

## Hosted Chrome browsers

Offload browser execution to Momentic-managed infrastructure. Your CI machines
run the test workers while browser processes run on Momentic infrastructure.
Your plan sets the cap on concurrent hosted browsers.

Hosted browsers apply to `momentic run` only, locally and in CI. The editor and
the MCP server run tests in a local Chromium, so keep it installed for
authoring.

Turn hosted browsers on for a project with
[`browser.remoteBrowser`](https://momentic.ai/docs/configuration/browser#browser-remotebrowser):

```yaml momentic.config.yaml theme={null}
browser:
  remoteBrowser: true
parallel: auto
```

With `parallel: auto`, `momentic run` sizes its worker count for hosted browsers
(`cores * 4 - 2`). See [`parallel`](https://momentic.ai/docs/configuration/momentic-config#parallel).

Choose Chromium, Google Chrome, or Chrome for Testing per project or per test.
Momentic applies the same runtime overrides, including user agent and viewport,
on every run. See [browsers](https://momentic.ai/docs/platforms/web/browsers.md) for the full list and how
to set a default.

To pin one CLI invocation to a Browser Fleet region, pass
`momentic run --remote-browser-region westus3` (or `eastus2`). The flag turns on
hosted browsers for that run even when `browser.remoteBrowser` is unset, fails
instead of falling back when the region cannot serve the run, and is not
available through a private Connector. See
[`momentic run`](https://momentic.ai/docs/cli-reference/momentic/commands/run).

## Remote emulators and simulators

Mobile tests can run on emulators and simulators hosted by Momentic. Instances
are provisioned on demand, and each test gets a fresh instance so device state
does not carry over between runs.

* Remote Android emulators provisioned by Momentic. See
  [emulators](https://momentic.ai/docs/platforms/android/emulators.md).
* Remote iOS simulators provisioned by Momentic. See
  [simulators](https://momentic.ai/docs/platforms/ios/simulators.md).

Pick remote or local per test through the **Region** dropdown: any Momentic
region selects remote, `Local` selects local.

### App assets: channels and tags

Remote emulators and simulators install your app from build artifacts organized
into channels (release environments like `dev`, `staging`, `production`) and
tags (versions within a channel). A single channel/tag pair can hold both an
Android APK and an iOS `.app`. Upload from the Momentic dashboard's Assets page
or with
[`momentic-mobile assets`](https://momentic.ai/docs/cli-reference/momentic-mobile/commands/assets).

A tag is immutable, so if your tests should follow the latest build, upload with
`--alias nightly` instead. An alias points at one tag within a channel, and a
later upload can move it to a new tag. A test's **Tag or alias** setting accepts
either, and updating the alias's tag moves every test that uses it without any
test edits.

### Regions

Set the **Region** in each test's settings to choose which remote region runs
it. If unset, Momentic picks the region closest to the machine running the CLI.
The region is a preference and may fall back to other regions when capacity runs
out. To pin emulators to a single jurisdiction (`us`, `eu`, or `as`) for data
residency, set
[`emulator.jurisdiction`](https://momentic.ai/docs/configuration/mobile#param-emulator-jurisdiction) in
`momentic.config.yaml`.

## Next steps

> [card] [Browsers](https://momentic.ai/docs/platforms/web/browsers.md)
>
> Supported web browsers and runtime overrides.

> [card] [Android emulators](https://momentic.ai/docs/platforms/android/emulators.md)
>
> Remote and local Android emulators.

> [card] [iOS simulators](https://momentic.ai/docs/platforms/ios/simulators.md)
>
> Remote and local iOS simulators.

> [card] [Run in CI/CD](https://momentic.ai/docs/running-tests/ci/github-actions.md)
>
> Run tests on every commit and pull request.


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