BOT ARCHIVE · UNVERIFIED

Let Codex operate an Android phone locally

2026-11-29

About this use case

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

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.

Prompt

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.

Reported outcome

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.

Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.