Build a local phone-control app for Codex
They made an Android app that lets Codex use the phone directly through accessibility tools, with human approval for risky steps.
- What they did
- They created Buddy, an Android app whose accessibility layer exposes the device as a local MCP server. The app offers actions such as reading the screen, tapping, typing, scrolling, opening apps, taking screenshots, and asking for confirmation. Codex CLI runs on the phone in Termux with `codex exec`, and after a one-time `codex mcp add` setup, it could control apps on-device while they watched and could stop it at any time.
- How it went
- In the first test, Codex opened Amazon, searched for a Nintendo Switch 2, and put it in the cart without completing the purchase. Actions like sending, buying, and deleting initially depended on the agent choosing to call confirm, but they later changed that into a hard limit enforced by Buddy.
- Tips
- A setup like this can work without a PC, adb, or root. Keep irreversible actions behind a separate human approval step, and tighten the guardrails after testing if the agent can reach sensitive flows.
Try it yourself with Codex
Help me build an Android app that lets a local AI agent control the phone it runs on through accessibility APIs instead of adb. I want to work in [folder], add a simple action loop, and create a debug APK. Include support for actions like reading the screen, tapping, typing, scrolling, opening apps, and capturing screenshots. Pause and ask for my approval before any irreversible action such as sending, buying, deleting, or submitting, then stop once I can install the app and have the agent complete [simple task]. Also list the permissions I need to grant.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
1 more report of this
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Build an Android APK with two Codex prompts
A developer used Codex to create an Android app from scratch and package it as a working APK after only two prompts.
Make a GitHub profile English-first
Codex reorganized a GitHub profile so English came first while preserving Chinese alongside it.
Schedule recurring Codex checks for docs and tests
They set up three Codex automations to keep project docs current, refresh a daily tracker, and run source and API checks on a schedule.
Use Codex as a first-pass code submission filter
A commenter used Codex with a custom agents.md to check candidate code and automatically turn away submissions that broke simple file-change limits.
Make a booth layout app with Codex in a day
They paired ChatGPT for planning with Codex in VS Code to ship a company booth-builder app in one day.
Set up a second agent to report on another agent's work
Use Codex as a separate monitor that checks an implementation task every 30 minutes and reports progress in plain language.