> ## 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.
> Direct agent API registration is a separate integration. Follow https://momentic.ai/auth.md only when the user explicitly asks for direct API access, not for Mo sessions or the Mo Quickstart. Do not use agent identity assertions or access or refresh tokens as MOMENTIC_API_KEY.
> For unattended repository-test CLI setup, use the [web](https://momentic.ai/docs/quickstart/web.md), [iOS](https://momentic.ai/docs/quickstart/ios.md), or [Android](https://momentic.ai/docs/quickstart/android.md) quickstart. These steps are for YAML tests, not Mo sessions. Verify the CLI credential and check any existing project CLI before scaffolding. Do not change an existing CLI pin without the user's approval. When scaffolding, run `npx --yes @momentic/wizard@latest -y --platform <platform> --editor-tools none`, using the selected platform (web, ios, or android). The quickstart handles skills and local MCP separately. Do not run interactive sign-in in a non-TTY shell.
> For Mo CLI sessions by default, use only the `qa` CLI and follow the Setup prompt in the [Mo Quickstart](https://momentic.ai/docs/mo/quickstart.md) as the canonical source for CLI setup and safeguards. Do not duplicate or override its instructions.
> For repository-test CLI setup only, before running `whoami`, set `MOMENTIC_SERVER` to the intended API server. Keep a server the user configured explicitly, even if the credential changes. Otherwise, when using a saved login, choose its saved server URL. If you cannot determine the intended server or the saved login you plan to use targets a different server, ask the user before checking the credential. Use the same `MOMENTIC_SERVER` for the wizard and later CLI commands. For a standalone `whoami` check, you can use `--server` instead. A nonempty `MOMENTIC_API_KEY` overrides the key saved in `~/.momentic/auth.json`. An empty `MOMENTIC_API_KEY` can make `whoami` select the cloud server if you do not set a server explicitly, even though it loads the saved key. If the server rejects the environment key, confirm the intended server and recheck there before asking the user to replace or unset it. If the user unsets the key to use a saved login, apply the same server-selection rules before retrying. If neither a valid environment key nor saved key is available, ask the user to complete browser sign-in or create a key at https://app.momentic.ai/settings/api-keys and set it as `MOMENTIC_API_KEY` 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. For repository-test CLI setup only, Claude Code users with the Momentic plugin should use its bundled skills and skip CLI skills installation. Otherwise, use the verified project CLI launcher from the selected quickstart to run `skills -y --target <agent>`. Do not fetch a different CLI version. Both install momentic-test, momentic-maintain, and momentic-spec with web/mobile references. Use the running agent's target. Only when the user explicitly requests plugin or hosted setup, follow the separate [ChatGPT and Claude setup guide](https://momentic.ai/docs/mo/chatgpt-and-claude.md).
> 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.

# macOS testing

> Choose Mac in Mo to test workflows across the macOS desktop. Use a Mac host for web tests and local iOS or Android simulators or emulators.

In [Mo](https://momentic.ai/docs/mo/index.md), choose **Mac** to run a task on a macOS desktop. Mo controls
the full desktop, so a session can work across apps and windows.

## Start a macOS session in Mo

**1. Choose Mac**

In the Mo composer, choose **Mac** under **Test platform**. The option
appears only when it is available to your workspace.

**2. Describe the desktop task**

You can start on a clean desktop without an app build. If you select a
build, Mo installs and launches its app.

**3. Start the session**

Choose an effort up to `high` and submit the brief with **Send message**.

`max` effort is not available for Mac sessions.

### Example cross-app brief

To try a cross-app task without selecting an app build, use the composer's
**Make a document** starter:

```text theme={null}
Open TextEdit and write a one-page letter with a heading and a bulleted list.
Export it as a PDF to the Desktop, open the PDF in Preview, and check the
heading and the list look right.
```

After the session, review the report, then
[review findings across sessions](https://momentic.ai/docs/mo/triage.md#review-findings-across-sessions).

## Use macOS as a test host

macOS can also host web tests, local iOS simulators, and local Android
emulators.

### Web tests

Run web tests with the Momentic command-line interface. Start with the
[web quickstart](https://momentic.ai/docs/quickstart/web.md).

### iOS tests

Remote simulators work from any supported host. Local simulators require macOS,
Xcode, Xcode Command Line Tools, and idb. See
[iOS app setup](https://momentic.ai/docs/platforms/ios/app-setup.md),
[simulator options](https://momentic.ai/docs/platforms/ios/simulators.md), and the
[iOS quickstart](https://momentic.ai/docs/quickstart/ios.md).

### Android tests

Remote emulators need the Android Debug Bridge (`adb`) and `ANDROID_HOME` or
`ANDROID_SDK_ROOT` set to an Android Software Development Kit (SDK) path. Local
Android Virtual Devices (AVDs) also need Android Studio and Java Development Kit
(JDK) 24 or later. See [Android app setup](https://momentic.ai/docs/platforms/android/app-setup.md),
[emulator options](https://momentic.ai/docs/platforms/android/emulators.md), and the
[Android quickstart](https://momentic.ai/docs/quickstart/android.md).


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