Start here
How to install, set up and use MonkeyTester and its plugins, and how to rebuild the current lab: a Linux host, a Mac and two phones.
MonkeyTester tests apps on real phones. You write a test as plain-English steps (AI: CLICK the sign in button), a vision model looks at the phone's screen, finds what each step describes, taps it and checks the result. A web viewer shows the phone live, with a marker wherever the test presses. Device plugins bring in other hardware, so the app has a real device to talk to and the test controls how that device behaves.
The system is split into several services, each in its own repository. These pages bring their setup guides together into one walkthrough.
Pick a path
Run it locally
Try the viewer on any Linux or Mac in two commands, or run the whole stack — viewer, controller, vision model, plugins — on one Mac with your phones plugged in. No tokens, nothing on the network.
Rebuild the current lab
Linux host for the viewer, a Mac for the phones, the vision model and the build-local plugin building the app. This is the setup in use today.
Build and test a branch
A build plugin fetches your branch from Gitea or GitHub and builds it on its own machine — a Mac for Android + iOS, a Linux host Android only — then every case runs on every connected phone.
Write a test
Test file format, setup headers, variables, platform-only steps, plugin steps and snapshots.
The pieces
Every service except the viewer is a plugin: the viewer finds it by address and reads its name from GET /health.
| Component | What it does | Runs on | Port |
|---|---|---|---|
| MonkeyTester (viewer + runner) | Web UI, run queue, test runner, Build & Test, upload endpoint. Talks to everything else over HTTP. | Linux host (or any Linux/macOS) | 8089 |
| MonkeyTester-Plugin-Mobile-Controller (controller plugin) | Owns every iPhone and Android phone: Appium/XCUITest, devicectl, adb, recording, installs. | Mac | 8090 |
MonkeyTester-Plugin-AI (test plugin AI) | The vision model. Local Qwen2.5-VL through a private Ollama, or forwards to a remote OpenAI-compatible server or GitHub Copilot. | Mac (Apple silicon) | 8091 |
MonkeyTester-Plugin-Diff (test plugin DIFF) | Compares DIFF: SNAPSHOT baselines and checks DIFF: ASSERT_LAYOUT positions. Stateless. | Next to the viewer, loopback | 8095 |
| MonkeyTester-Plugin-Build-Local (build plugin) | Builds your app on its own host: fetches the branch from Gitea or GitHub with a read-only token, runs the repo's .monkeytester/build-<platform>.sh scripts, uploads the apps to the viewer. | Mac (Android + iOS) or Linux host (Android only) | 8094 |
| Device plugins (optional) | Other hardware a test drives, e.g. the lab's ESP32-SENSOR and ESP32-SERVER (MonkeyTester-Plugin-Esp32, MonkeyTester-Plugin-Server). | Where the hardware is plugged in | 8091, 8093 |
Setup order
Each step only depends on the ones above it. To try it on one machine first, see Run it locally.
- Linux host: the viewer. Install MonkeyTester, run its unit tests, start it as a systemd user service, plus the DIFF plugin next to it.
- Mac: the Mobile Controller. Xcode, Appium + XCUITest, the Android SDK, ffmpeg, then the controller as a LaunchAgent.
- Mac: the vision model.
bin/monkeytester-ai setup, then serve it on the LAN with a pairing token. - Phones. Connect the iPhone (trusted, Developer Mode) and the Android phone (USB or wireless debugging paired with the Mac).
- Connect the viewer. Sign in as
admin/adminand change that password at once, then add the controller, the AI plugin and the DIFF plugin on Settings → Plugins, and the controller's token in Settings → Configuration → Service tokens. See Security. - Build & Test (optional). Install the
build-localplugin on the Mac (or a Linux host for Android only), add it in Settings → Plugins → Build Plugin with a Gitea or GitHub code host, and add your repos in Settings → Build & Test.
These pages describe the code on each repository's master/main branch and the machines as they run today. Addresses such as 192.168.125.70 and 192.168.125.71 are this lab's; substitute your own.