rounak/PhoneAgent
An AI agent that can get things done across iPhone apps.
What it solves
PhoneAgent provides a way for AI agents to interact with and control mobile devices. It bridges the gap between high-level AI reasoning and the low-level technical actions required to operate an iPhone or Android device, allowing an agent to perform tasks like opening apps, tapping elements, and entering text.
How it works
The project operates in two primary modes:
- In-app iPhone agent: A standalone SwiftUI app that uses the OpenAI Responses API to process prompts and execute actions directly on the device.
- External bridge: A JSON-RPC server that allows external AI agents (such as Codex or OpenClaw) to send commands to a mobile device.
For iOS, it uses XCTest-hosted actions against a simulator or physical device. For Android, it uses adb (Android Debug Bridge) combined with UiAutomator to execute commands.
Who it’s for
Developers and AI researchers building mobile automation agents that need a standardized way to control iOS and Android devices via API calls.
Highlights
- Cross-platform support: Works with both iOS (simulators and physical devices) and Android (emulators and physical devices).
- Unified RPC surface: Provides a shared set of actions for both platforms, including
get_tree,get_screen_image,tap, andscroll. - Voice and Text input: The in-app iOS agent supports keyboard input, microphone support, and a custom wake-word mode.
- Localhost-oriented security: The RPC bridge is restricted to
127.0.0.1to maintain control over device access.
Related
- Project
- Project
- Project
- Project
- Project