iOS simulators for AI agents, on Linux
open sourceApache-2.0self-hostablefreeMCP
agent-sim runs Apple's iOS simulator runtime on an ordinary x86-64 Linux VM, with no Mac and no GPU, so AI agents and CI can test iOS apps in the cloud. It installs an .ipa or a simulator build, reads the screen as text from the accessibility tree (web pages and system alerts included), and taps, types, scrolls and swipes, through a command line or an MCP server for Claude Code, Cursor, Codex and other agents, which can also run over SSH from another machine. It streams the phone live to a browser, keeps a pool of booted phones for parallel agents, and supports simctl-style controls such as dark mode, status bar, location, push and video recording. It builds on x86Sim, which uses Darling, dynarmic and a Metal-to-Vulkan layer; Apple's runtime is downloaded from Apple onto your own machine. It's an early project and an alternative to agent-device, which drives real simulators on a Mac.
Problems it solves
- let my AI coding agent test our iOS app on a Linux cloud VM without a Mac
- run iOS UI tests in Linux CI
- give Claude Code a way to tap through an iOS app and read the screen
- run several iOS simulators in parallel for agents on one Linux server
Features
- Apple's iOS simulator runtime on x86-64 Linux, no Mac or GPU
- install .ipa or simulator builds
- screen as text from the accessibility tree
- tap, type, scroll, swipe and hardware buttons
- MCP server and agent skill
- live browser stream over WebSocket
- pool of booted phones for parallel agents
- dark mode, status bar, location, push and video recording
Limitations
- Needs an x86-64 Linux machine with Ubuntu 24.04, 8 or more CPUs, 16 GB of memory and 60 GB of free disk1
- Encrypted App Store downloads (FairPlay) don't run: use an Ad Hoc, Development or Enterprise export, or a simulator build1
- Early: its own known issues include Safari occasionally freezing and the phone stopping when Darling's server exits2
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has an MCP server | plan not known |
Alternatives
The same job
These do what agent-sim does.
- agent-device Lets coding agents drive apps on phones, simulators and TVs
- Appium Cross-platform test automation for native, hybrid, mobile web and desktop apps
- Maestro Mobile UI testing at agentic velocity