Version 1.4.0 (current)
On-device Codex CLI and low-level shell · agent.cli
Execute code, generate apps, and call open capabilities on the device
Purpose and status
Execute code, generate apps, and call open capabilities on the device
Inventory status as of 2026-10-10: Verified within the recorded emulator scope (emulator_verified).
The CLI version was read in this run. Historical device logs for JSX source writes and build commands were reviewed. Authentication directories were not read.
Before calling
Source descriptions below retain their original language; identifiers and commands are unchanged.
| Field | Source value |
|---|---|
| apiMin | 36 |
| minimumBasis | Key methods used by the example / this project’s target version |
| publicSdkClass | false |
| exampleApiMin | 36 |
| declaredVersionNotes | API declarations are not device guarantees; recheck per targetSdk / OEM branch. |
| Device conditions (source record as of 2026-10-10) | Historical source wording, 2026-10-10: Public APIs need matching hardware / OEM support; this project has only AgentOS_ImageCheck ARM64, with no verified physical device |
| Environments recorded as of 2026-10-10 | Android 16 / API 36 / ARM64 / AgentOS_ImageCheck / emulator-5582 |
ROM requirement: Requires appropriate Root or system signing/preinstall; may be deployed via OEM Root; this project has not verified that distribution path
Permissions and authorization
| Permission or qualification | Authorization condition |
|---|---|
| Current root CLI; sign in to the Agent account yourself; SELinux remains Enforcing | CLI binaries are preinstalled and authentication lives only in device data; Android /system/bin/sh is mksh, not GNU Bash; authentication cannot be packaged into the system image |
Entry points
| Entry point | Availability |
|---|---|
| /system_ext/bin/codex exec / Android shell | Existing experimental entry point |
Call examples
device_shell
Environment: Phone root shell
Prerequisites: CLI binaries are preinstalled and authentication lives only in device data; Android /system/bin/sh is mksh, not GNU Bash; authentication cannot be packaged into the system image
/system_ext/bin/codex --version
# The new-task example calls the model; choose a test scenario explicitly
/system_ext/bin/codex exec --skip-git-repo-check -C /data/local/agentos/work "Read the Android system version and report it. Do not operate any apps." </dev/nullExpected result: Version output; model success requires a real task result and command results, not the process exit code
Executed in the source record’s run: Not executed in that run; see the validation scope below.
Limitations
- Only --version ran in this run; historical model calls are not new verification in this run.
- A version, login, or executable program does not establish that all Codex functionality, phone hardware, and app permissions are available.
Validation records
Research
| Field | Source value |
|---|---|
| status | documented |
| scope | Upstream mechanism and research variants; see limitations for unimplemented parts |
Emulator
| Field | Source value |
|---|---|
| status | passed_in_scope |
| target | AgentOS_ImageCheck / API36 / ARM64 |
| scope | The CLI version was read in this run. Historical device logs for JSX source writes and build commands were reviewed. Authentication directories were not read. |
| date | 2026-10-10 |
Physical device
| Field | Source value |
|---|---|
| status | not_verified |
| date | — |
| devices | [] |
Not yet verified on a physical device as of 2026-10-10. See current progress for later status.
Look up agent.cli in capabilities.en.json for the complete record. See current progress for later project evidence.
Upstream references
- AOSP SELinux — audit:
web_content_reviewed
Version and sources
Generated from the Taku OS specification 0.1.0. The inventory records 2026-10-10; see Current progress for later device support. Detailed source prose can remain in its original language.
Research preview · Current availability
Report an issue or give feedback
Delivery to the maintenance queue does not mean it has been handled. Feedback is retained for 90 days.
Built with Fumadocs
Expose generated-app business functions / external calls · apps.business-api
Let agents call functions and state directly, with UI synchronization after external calls
System version and execution identity · system.info
Help agents choose compatible commands and assess UID, ABI, SELinux, and system-service prerequisites