AXedocs
Install

AXe documentation

AXe is a command-line toolbox for building iOS apps with agents. It automates iOS simulators, including the dual-screen iPhone Duo simulator, and connected iPhones and iPads: it reads the accessibility tree, sends taps, typing, gestures and hardware buttons, captures screenshots and video, and changes device settings. Agent mode gives AI agents checked, stateful control of the UI. AXe Mirror puts a simulator on your iPhone or iPad, and Builds installs your app on it.

AXe 2macOS 14+Xcode 26 and 27GPL-3.0

What AXe does#

AXe is one binary you install with Homebrew. It has three tools:

  • UI automation. Read the screen and drive it. Every command names its target with --udid, and the same commands work on a simulator, an iPhone Duo simulator and a paired iPhone or iPad. Use it from a terminal, a shell script, a CI job or an AI agent, so your agent can test its own work.
  • Mirror. axe remote shows your Mac's simulators in the free AXe Mirror app on an iPhone or iPad and sends your touches back, so the simulator your agent is using is in your hand wherever you are.
  • Builds. axe remote build builds your app, signs it for your devices and offers it in AXe Mirror, which installs the real app on your phone.

AXe works with any agent that can run a command, and needs none.

Read

Inspect the UI

describe-ui prints the accessibility tree as JSON, or the element at one point. Agent mode returns compact rows with a ref for each control.

Act

Tap, type, swipe and draw

Tap by point or by --id, --label or --value, long press, double tap, scroll until an element appears, pinch, rotate, drag, draw and type.

Capture

Screenshots and video

Save PNGs, record H.264 MP4s, stream MJPEG, JPEG or BGRA frames, and native H.264 from a physical device.

Configure

Change device settings

Set dark mode, text size, accessibility display settings, VoiceOver, a simulated location and the simulator status bar.

Devices

Simulators and hardware

Automate connected iPhones and iPads, and every screen, fold and orientation of the iPhone Duo simulator.

Agents

Built for AI agents

--agent checks every action against the screen the agent saw and returns the settled screen. The AXe skill teaches agents to use it.

Mirror

Your simulator, in your hand

axe remote streams a simulator to the AXe Mirror app on an iPhone or iPad, live, with touch. Encrypted from end to end.

Builds

The real app, on your phone

axe remote build archives, signs and publishes your app, and AXe Mirror installs it over the pairing alone.

A first session#

shell
axe list-simulators                       # find a booted simulator's UDID
export UDID=<UDID>
axe describe-ui --udid "$UDID"            # accessibility tree as JSON
axe tap --label "Continue" --udid "$UDID"
axe type 'Hello world' --udid "$UDID"
axe screenshot --udid "$UDID" --output screen.png

For a physical device, use axe list-devices and axe doctor instead of list-simulators; the rest is the same. See Physical iPhone & iPad.

Coordinates are points, not pixels

Coordinates are logical points in the current orientation, the units axe displays reports. A screenshot contains pixels. AXe handles rotation and letterboxing for you.

Two ways to drive the UI#

RouteUse it forHow it works
Plain commandsScripts, CI and known flowsSend input by point or selector. Fast and simple; you check the result with a separate read.
Agent mode (--agent)AI agents and flows that must not hit the wrong controlCapture the screen as rows with refs, act on a ref, and get the settled screen back. AXe refuses input if the control changed.

Read Agent Mode before connecting an AI agent to AXe, and install the AI skill so the agent knows the workflow.

Where to go next#