sim-use
A Swift command-line tool from LY Corporation that lets AI agents read and tap the screen of the iOS Simulator and Android emulators, using compact accessibility outlines instead of screenshots. Real iPhone support is experimental.
View on GitHub ↗- Stars
- ★ 1,569
- Last commit
- 2 Dec 2026
- Maintenance
- Active
- Licence
- Apache-2.0
- Category
- Other
- GitHub
- lycorp-jp/
sim-use
Overview
sim-use gives an agent a read, act and verify loop on a device screen. sim-use ui prints the screen as a short outline in which each element has an alias such as @9, and sim-use tap @9 taps it, so the agent needs no coordinates. The same commands work on the iOS Simulator and on Android emulators and devices. Its output is built for agents: the outline is compact and the --json envelopes carry hints on errors.
sim-use began as a fork of AXe (MIT) and links XCFrameworks built from Meta's idb (MIT). It is licensed under the Apache License 2.0, and the repo includes NOTICE and THIRD_PARTY_LICENSES files.
Features
- A compact outline of the whole accessibility tree, with @N and #id aliases. The README says it is about 16 times more compact than a raw JSON tree (the author's figure).
- Several ways to select an element: alias, accessibility identifier, label, or coordinates as a last resort.
- Commands for tap, long press, swipe, touch, multi-touch, gestures, typing, IME-safe Unicode paste, hardware buttons and keyboard state, plus iOS-only key, key combo, batching, rotate and fold commands.
- Screenshots, H.264 streaming and MP4 or GIF recording.
- App state and crash detection: it watches the target process between commands and shows a banner on the next ui call if the app has gone.
- A per-device background daemon that keeps repeated calls fast. It exits after 600 seconds idle.
- Android through a small bridge app on the device. On Linux it builds for Android only.
- Experimental physical iPhone and iPad support, limited to ui, tap and screenshot, for apps signed with a development profile that allows get-task-allow.
- sim-use viewer, a local web app that draws the accessibility tree over a scaled screen so you can see what the tree exposes.
- Xcode 27 beta support, including iPhone Duo folding and Resize Mode, as described in the README.
Requirements
- macOS 14 or later and Xcode. The README says building from source needs the latest Xcode toolchain.
- For Android: adb, and a one-off sim-use android init --device <serial> to install the bridge app.
- For a real iPhone: Developer Mode, a paired and unlocked device, and a development-signed app. Distribution, TestFlight and system apps do not expose the needed hierarchy.
Install
Run brew tap lycorp-jp/tap, then brew install lycorp-jp/tap/sim-use. On Homebrew 6.0.5 or later, if you see an "untrusted tap" error, run brew trust lycorp-jp/tap first.
To install the bundled agent skill, run sim-use init (it detects your clients), or sim-use init --client claude.
To build from source, clone the repo, run ./scripts/build.sh dev once to build the idb frameworks, then make build.
Example
Boot a simulator and ask your agent to open Settings and tap General. The agent runs sim-use ui to read the screen, taps with sim-use tap @9 (the alias the outline printed), then runs sim-use ui again to check the result. For stable scripts it can tap by identifier, for example sim-use tap #settingsButton.
Works with
Listed in
- github.com/lycorp-jp/sim-use
- github.com/lycorp-jp/sim-use/blob/main/README.md
- github.com/lycorp-jp/sim-use/blob/main/CHANGELOG.md
Read the code before you install anything. SwiftAgents doesn't review or endorse the tools listed here. Active: a commit in the last 90 days. Slowing: last commit within the past year. Stale: older than a year, or archived.
More in this category
Osaurus
A native Swift agent harness for macOS on Apple silicon, with local MLX or Foundation Models, optional cloud providers, persistent memory, skills, tools, automations and a local OpenAI-compatible server.
serve-sim
Streams a booted iOS Simulator to your browser, with touch, keyboard, screen recording and accessibility refs, so agents such as Codex, Cursor and Claude can see and drive it. By Evan Bacon, who develops Expo.
MCP Swift SDK
The official Swift SDK for building MCP clients and servers.
SwiftAgents