MAI-Gym: An Open All-in-One Platform for GUI Agent Evaluation and RL Training across Mobile and Computer Environments
Organizations: Alibaba Token Hub, Alibaba Group
Abstract
Online reinforcement learning (RL) with verifiable rewards has driven rapid progress in mathematics, coding, and tool use, but scaling this success to GUI agents remains challenging due to the high cost of interactive environments and the scarcity of realistic training tasks. We introduce MAI-Gym, an open all-in-one platform that unifies GUI agent evaluation, data collection, and online RL training across mobile, computer, and web environments. Through a shared rollout pipeline, MAI-Gym ensures consistent agent behavior across evaluation and training, supports ten established benchmarks, and scales to 20,000 parallel environment instances. Beyond scalable infrastructure, MAI-Gym enables automated synthesis of diverse GUI applications and challenging tasks, including resettable mocked apps and coherent cross-app worlds with execution-validated task verifiers. Using MAI-Gym, we train MAI-Gym-9B, a unified 9B agent for mobile and computer use, achieving state-of-the-art performance among open GUI agents under 10B parameters: 78.4% on MobileWorld and 76.2% on OSWorld-Verified. Importantly, RL in a mocked train-ticketing app transfers to its real-world counterpart, improving task success on a phys- ical phone from 28.8% to 48.1%. We release the framework, synthesis skills, mocked apps, 2,000 verified tasks, and the model checkpoint to support repro- ducible research and further advances in scalable GUI agent training.
Figures & tables
| System | Scope | Open-source Infrastructure | Tasks & Environments | |||
| Platforms | Benchmark evaluation | Online RL (# envs) | New environments | New World (files & app state) | Reward | |
| BrowserGym [ Le Sellier De Chezelles et al., 2025 ] | ( ) | Code | ||||
| WebGym [ Bai et al., 2026 ] | VLM | |||||
| MobileGym [ Wu et al., 2026 ] | s | Mocked apps | Pre-defined World | Code | ||
| GUI-Genesis [ Cao et al., 2026 ] | s | † | Mocked apps | Generated per task, in app code | Code | |
| PhoneWorld [ Liu et al., 2026 ] | † | Mocked apps | Pre-defined World | Code | ||
| Agent | Observation | Context | Actions |
| GUI agent | Screenshot | Last screenshots + text history | Click, type, drag, … |
| CLI agent | Command output | Text history, often summarized | Shell commands |
| MAI-Gym | Screenshot + command output | Customized by the harness | Batched GUI + CLI actions |
| Domain | Benchmark | Tasks | Max steps | Metric |
| Mobile | MobileWorld (GUI-only) [ MobileWorld Team, 2025 ] | Success rate | ||
| AndroidWorld [ Rawles et al., 2025 ] | Task-dependent | Success rate | ||
| MobileGym [ Wu et al., 2026 ] | binary / partial | |||
| Computer | OSWorld-Verified [ Xie et al., 2024 ] | Success rate | ||
| OSWorld 2.0 [ Yuan et al., 2026 ] | binary / partial | |||
| MacAgentBench [ Fu et al., 2026 ] | Success rate |
| Model | Size | Access | Mobile | Computer | |||||
| Task OOD | Env OOD | Task OOD | Env OOD | ||||||
| MobileWorld GUI-only | Android World | Mobile Gym | OSWorld Verified | OSWorld 2.0 | MacAgent Bench | MyPC Bench | |||
| Frontier models | |||||||||
| Claude Opus 4.8 | – | API | 69.2 | 75.0 | 50.7 | 83.4 | 20.3/54.8 | 58.4 | 62.0 |
| GPT-5.5 | – | API | 62.4 | 74.1 | 48.1 | 78.7 | 13.9/47.5 | 66.7 | 47.3 |
| Qwen3.8-Max | 2.4T-A95B | API | 77.8 | 85.3 | 61.3 | 86.1 | 19.4/46.7 | 74.3 | 48.6 |
| Environment | Bring-up time for 1k envs (s) | Reset p50 / p95 (s) | Unscored aborts (%) |
| Mobile | 328.4 ( faster) | 165.0 / 184.0 | 1.2 |
| Computer | 88.9 | 37.2 / 100.1 | 1.9 |
| Browser | 94.2 | 6.0 / 27.0 | 0.0 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Concern | Environment adapter | MAI-Gym |
| Capacity | Reports health and available instances | Leases sessions, reclaims expired capacity, and assigns attempts |
| Isolation | Initializes task state and isolates concurrent instances | Keeps one attempt bound to one session for its lifetime |
| Observation | Returns screenshots, command output, and metadata | Selects the transport and records observations in trajectories |
| Action | Executes the declared action vocabulary | Parses model output, dispatches actions, and records results |
| Task | Installs task state and invokes its verifier | Samples tasks, forms rollout groups, and delivers rewards to training |
| Action | Definition |
| GUI Actions | |
| click | Clicks at coordinates . |
| double_click | Double-clicks at coordinates ; on touch screens, a double tap. |
| long_press | Long-presses at coordinates . |
| type | Types the specified text content. |
| hotkey | Presses a key combination, such as ctrl+c . |
RL for GUI Agents
Reinforcement learning for GUI agents trains screen-based AI to complete multi-step tasks across mobile, web, and desktop interfaces.
See all 47 papers