simulator-use
The fastest, most token-efficient way for an AI agent to use the iOS Simulator. simulator-use gives Claude Code, Codex, Cursor and any other MCP client a phone: it builds and runs your Xcode project, reads the screen as a few lines of text, taps and types by label, and runs your tests case by case. Its own native engine stays connected to the Simulator, so reading the whole screen takes about 250 ms and a tap goes out in under a millisecond, with no process started per call (AXe 2.0.4's command line, which starts one for each, took about 0.4 s a read or a tap in our November 2026 run). Free and open source (MIT), on any Mac with Xcode, and from Linux, Windows or a Mac without Xcode through a cloud iPhone.
- Fast: a whole-screen read in about 250 ms, a tap sent in under 1 ms, a screenshot in about 60 ms (measured on an M6 Mac mini, October 2026).
- Token-efficient: one line per element the agent can use, nothing else; a dozen tools with short descriptions.
- Complete: build, install, launch, XCTest and XCUITest per case, logs and crashes, video, permission prompts, in-app purchases, iPhone and iPad.
- Continuously improved: weekly releases driven by thousands of daily sessions.
- Anywhere:
npx simulator-use cloud start gives a cloud iPhone with Xcode to any machine.
It builds, runs and tests Xcode projects, reads and uses the screen of any app (SwiftUI, UIKit, React Native), answers iOS's permission prompts, reads the app's logs and crashes, and records video.
What the agent sees
Demo · Sign In · iPhone 17 Pro (iOS 27.0)
textfield "Email" #email @201,194
securefield "Password" #password @201,246
switch "Remember me" #remember off @341,298
button "Sign In" #signIn @201,350
text "Not signed in" #status @201,402
tabs: Login (selected) @158,822, Items @244,822
- One line per element: kind, label,
#id (the app's accessibility identifier), state and @x,y, the center in points.
- Groups, icons inside buttons, scroll bars, the status bar and the keyboard's keys are folded away. The tab bar, scrolling and the keyboard are one line each.
- Only what can be tapped is listed. An alert, a sheet, a menu or a full-screen view in front hides the screen behind it, and iOS's own permission prompts read as alerts over the app. Rows under the navigation bar, the tab bar or the keyboard are counted as hidden (above, below, to the left or right), not listed.
- A web page is read from the page itself: Safari's pages, and the web views of the apps simulator-use launches (Capacitor, React Native's WebView, a WKWebView hosted by UIKit or by SwiftUI). The page says what it shows, its links, buttons, fields, checkboxes, headings and text, each with its place and state, in a few milliseconds, through the Simulator's own Web Inspector; they are listed like the rest, and tapped and filled the same way (
tap "Sign in", fill #email [email protected], a page's element ids work as #id). Maps, games, custom drawing and iOS's out-of-process pickers have nothing to read: they come back as one unreadable line with their place, so the agent knows to take a screenshot and tap by point. SIMULATOR_USE_WEB=off goes back to reading a page point by point through accessibility.
- A screenshot, when asked for, is sized to points, so a point in the picture is a point to tap.
screenshot_file saves the screen at full resolution as a PNG for a person, a report or the App Store; in cloud mode it is saved on your machine too. Either waits for the screen to hold still (up to 2 s), so it shows the screen, not an animation into it.
- The sign-in screen above is about 70 tokens. The full accessibility tree it comes from is about 40,000.
Using the screen
ui_act takes steps in the same words ui_look prints, runs them in order, and answers with what changed:
ui_act steps: ["fill #email [email protected]", "fill #password secret1", "tap #signIn", "wait \"Welcome\""]
4 steps done in 4.5 s
changed: #email "[email protected]" · #password "•••••••" · #status "Welcome, [email protected]"
Steps: