Prerequisites
Momentic supports local and remote iOS simulators. Real devices are not
supported. Local simulators need macOS; remote simulators run from any host.
- Node.js 22.12.0 or later in the 22.x series, or 24.0.0 or later
(
node -v) - A
package.jsonin your project. Runnpm init -yif you do not have one. Commit it with the lockfile, so CI and local runs use the same Momentic version. - A Momentic account. Sign up to create one.
Setup with coding agent
Open Claude Code, Cursor, Codex, Copilot, or another coding agent in your project directory and paste the prompt below. It uses the wizard’s noninteractive API-key setup, then writes your first test.Copy the setup prompt
Copy the setup prompt
Set up with the wizard
Run the wizard in your terminal:momentic-mobile, writes
momentic.config.yaml plus a sample test under ios/, runs the sample test on
a remote simulator, and asks which coding agents to set up.
A passing sample verifies setup. To test your own app, provide a simulator
.app build and continue at Build your app. The wizard has
already completed the install, authentication, and configuration steps.
Manual setup
1
Install
npx. With pnpm, use pnpm exec momentic-mobile; with
yarn, use yarn momentic-mobile.2
Authenticate
Sign in with your browser:The CLI saves the credentials to Check which account and organization the CLI uses:
~/.momentic/auth.json and uses them when
MOMENTIC_API_KEY is not set.In CI, or in a shell without a browser, use an API key instead. Create one in
the dashboard and export it:3
Initialize
momentic.config.yaml to your project root. In an interactive
terminal, it also offers to install the coding agent skills and the MCP server.
init --yes accepts the defaults without prompts, so it works in agent shells
and CI.init does not create tests. You write your first one in the editor below. For
a sample test, use the wizard above instead.4
Build your app
Momentic installs a simulator
.app bundle. Build it with the tab that matches
your stack. See iOS app setup for full instructions.- Native (Swift)
- React Native
- Expo
- Flutter
In Xcode, select Product, then Build For, then Testing. This
produces a
.app bundle that Momentic can install on a simulator.5
Upload your build (remote simulators)
Momentic manages remote simulators, so you do not need local Xcode after you
upload your build:For local simulators, see iOS simulators for the
LOCAL_IOS_DEVICE_TYPE and LOCAL_IOS_APP_PATH setup.6
Write and run your first test
Open the local editor:Create a test, select the
You write mobile tests in this local editor, not in the web app. The dashboard
at app.momentic.ai shows results. A browser-based
editor for mobile tests is not available yet.
dev channel and the 1.0.0 tag, and add an action
followed by an assertion. For example, tap
Sign in, then assert that the sign-in form is visible. Choose an outcome
that matches your app.Save the test. The editor writes the .test.yaml file to your project. Run it
from the editor, then run the saved file from the CLI. Replace <test-file>
with its path relative to your current directory:--upload-results sends the result artifacts to the dashboard. Without it,
those artifacts stay on your machine. See AI data use
for the data sent to Momentic while a test runs.If the run fails, inspect its failed step and screenshot in the dashboard. Check
the selected build, sign-in state, and assertion, then rerun. See
Common problems for setup errors.7
Verify
- Check that the
.test.yamlfile exists in your project. - Open the dashboard and check Runs for the result.
- Confirm the run passed and inspect the screenshot at the assertion step to check that it matches the expected state.
8
Connect your coding agent (optional)
Skip this step if Both commands detect the coding agents on your machine and ask which ones to
configure. Pass
init already did it. The two commands are independent:
skills are local instruction files. The MCP server is a live process that gives
the agent a device and Momentic tools.--yes to skip the prompt. See
Building with AI for what each command does.iOS versions
Remote simulators run iOS 26. For a different iOS version, contact the Momentic team. Local simulators run the latest iOS runtime installed in Xcode. To run a test on another installed runtime, pass--local-ios-version:
LOCAL_IOS_VERSION next to
LOCAL_IOS_DEVICE_TYPE in momentic.config.yaml. The flag overrides the
environment variable. See iOS simulators for the
environment setup.
Next steps
iOS app setup
Xcode build, .app bundling, required signing
Simulators
Local vs. remote simulators and device types
Building with AI
Skills, the MCP server, and a prompt for your coding agent
CI/CD
Run mobile tests on every pull request