AI Services Market
AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with Codex Oct 23, 2026

Let Codex operate an Android phone locally

The poster built an Android app that gives Codex computer use on the phone itself, so the agent can operate the device without adb. · Oct 23, 2026

Let Codex operate an Android phone locally preview
What They Did
The poster built Buddy, an Android app whose accessibility service exposes the phone as a local MCP server with tools like read_screen, tap, type_text, scroll, open_app, screenshot, and confirm. Codex CLI runs locally in Termux through `codex exec`; after one `codex mcp add` setup, Codex could operate apps on-device, while the person watched live, could hit Stop, and had to approve sensitive actions.
How It Went
In the first Codex test, it opened Amazon, found a Nintendo Switch 2, and added it to the cart without buying. The poster says sends, purchases, and deletes originally relied on the agent choosing to call confirm, which they later changed to a hard Buddy-enforced limit.
Worth Knowing
No PC, adb, or root were needed; the main catch is that high-risk actions needed human approval, and the safety model was tightened after feedback.
Try it yourself with Codex

Help me build an Android app that lets an AI agent operate the phone it runs on, such as tapping, scrolling, typing and reading the screen, using Android's accessibility APIs rather than adb. Set up the project in [folder], implement a basic action loop, and build a debug APK. Stop when I can install it and have the agent complete one simple task like [example task, e.g. open Settings and turn on dark mode], and list the permissions I need to grant.

Read the original ↗