Developing-Gamer/agent-sim
Developer ToolsRun iOS simulators on Linux so AI agents can install, inspect and drive apps for testing.
This project ships 1 agent skillsSkill list and install →What it does
agent-sim brings Apple's iOS simulator runtime to ordinary x86-64 Linux machines, with no Mac and no GPU required. It packages that runtime into something agents can use: install an .ipa, read the current screen as a text accessibility tree, tap, type, scroll, swipe, launch and terminate apps, then see the resulting screen after every action. A single CLI covers scripts and CI, an MCP server exposes the same tools to Claude Code, Cursor, Codex and similar agents, and a browser page streams the live screen for human watching.
It sits on top of x86Sim, which runs Apple's arm64 simulator runtime on Linux through Darling, dynarmic and metal2vulkan. agent-sim adds a speed-tuned phone image, fixes carried in patches/x86sim, accessibility and permission hooks inside the phone, .ipa conversion, a device pool and the agent interface.
Quick start
On x86-64 Ubuntu 24.04 with at least 8 CPUs, 16 GB of memory and 60 GB of free disk:
curl -fsSL https://raw.githubusercontent.com/Developing-Gamer/agent-sim/main/install.sh | bash
agent-sim setup # once, about half an hour: x86Sim, Apple's iOS runtime (8 GB, from Apple), a first phone
agent-sim up # boot it: 12-30 s, depending on the CPU
agent-sim snapshot
The setup step downloads Apple's runtime onto your own machine; it is not bundled in the repository. From a checkout, run cargo build --release, then scripts/setup-vm.sh and target/release/agent-sim instead.
To give an agent access, register the MCP server:
claude mcp add agent-sim -- agent-sim mcp
For a simulator on another machine, prefix the command with SSH: claude mcp add agent-sim -- ssh my-linux-vm agent-sim mcp. Shell-based agents can follow skills/agent-sim/SKILL.md. The available tools are snapshot, tap, type, scroll, swipe, press, launch, terminate, install, uninstall, apps, open_url, wait_for, screenshot and boot.
Everyday commands
agent-sim install MyApp.ipa # a device build is converted for the simulator; a simulator .app works too
agent-sim launch com.example.myapp
agent-sim snapshot # screen as text, one element per line (--json for frames, ids, states)
agent-sim tap @e4 # or: tap "Sign in"; or: tap 201 320
agent-sim type "hello@example.com"
agent-sim scroll down
agent-sim wait "Welcome" --timeout 20
agent-sim screenshot -o screen.png
agent-sim press home
agent-sim open https://example.com
snapshot covers the foreground app's accessibility tree, its web views and SpringBoard, so system alerts, the home screen and the status bar appear too. Simulator controls comparable to Apple's simctl are also present, including appearance, status bar, clipboard, recording, erase and logs; docs/PARITY.md maps them against Apple's Simulator. To watch the screen in a browser, run agent-sim serve --listen 0.0.0.0:7979, open the printed token URL in a recent Chrome, Edge or Safari, and keep the token private.
Constraints
- The project is early-stage; rough edges are expected and docs/KNOWN_ISSUES.md lists what does not work yet.
- Host requirements are x86-64 Ubuntu 24.04, 8+ CPUs, 16 GB RAM and 60 GB free disk. Setup takes roughly half an hour because Apple's iOS runtime is about 8 GB.
- Device builds run only when unencrypted. App Store downloads are FairPlay-protected, so use an Ad Hoc, Development or Enterprise export, or a simulator build.
- The default phone draws at 2x with reduced effects;
agent-sim setup --fidelity high --device hifiadds a 3x Apple-like phone for screenshots. - Several phones can run as a pool (
agent-sim pool up 3,take,release). Three phones share about 6.8 GB through KSM instead of 8.7 GB, and VM memory snapshots can restore a booted phone in around 20 seconds where the provider supports them. - The project is Apache-2.0; patches in
patches/x86simfollow x86Sim's GPL-3.0-or-later.
HotRepo's take
agent-sim entered HotRepo's new-project list on 2026-11-24, recording 35 stars within an hour of its growth window and reaching 145 stars and 15 forks. That is a short observation, so it supports only the fact of early attention, not a trend. What stands out technically is the pairing: an x86-to-ARM translation stack running Apple's runtime on Linux, plus an accessibility-tree interface that turns screen state into something an agent can act on with a single snapshot and tap. The main open question for adopters is how far the early-stage feature set has caught up with Apple's Mac Simulator, which the project itself tracks in its parity and known-issues documents.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- jo-duchan/tapflowSelf-hosted relay and macOS agent that stream iOS simulators and Android emulators to a browser for team QA.
- mobile-next/mobile-mcpAn MCP server that lets AI agents inspect and control iOS and Android apps on simulators, emulators and real devices.
- callstack/agent-deviceA CLI, MCP server, and typed Node.js API that let AI coding agents inspect, control, and verify apps on mobile, TV, web, and desktop devices.
- pierridotite/mobile-agent-testersRun parallel Claude Code QA agents on iOS simulators and Android emulators to explore mobile apps and file bug reports.
- hridaya423/phonedriverMCP server and CLI that let AI agents read and control Android phones and iPhones with a confirmation step before payments.