# @mmmbuto/codex-cli-termux

OpenAI Codex CLI v0.55.4 pre-compiled for Android Termux (ARM64)

## 🔧 v0.55.4 - Agent Mode Bash Execution Fix (Patch #8)

**Critical fix for Termux/Android**: Codex Agent can now execute bash commands correctly

### What was broken
- Bash commands in Agent mode failed with "Permission denied"
- Affected all Termux installations (issue existed since upstream)

### What's fixed
- ✅ Disabled unsupported sandbox on Android (landlock/seccomp)
- ✅ Preserved LD_* environment variables required by Termux
- ✅ Fixed shell detection to use $SHELL instead of getpwuid()

### Impact
Agent mode now works fully on Termux - can execute pkg, git, npm, and all bash commands.

---

## Installation

```bash
npm install -g @mmmbuto/codex-cli-termux
```

## Usage

```bash
codex --help
codex --version
codex login        # Authenticate with OpenAI
codex              # Start interactive Agent mode
```

## Requirements

- **Platform**: Android with Termux
- **Architecture**: ARM64
- **Node.js**: ≥ 14.0.0

## Source

This package contains a pre-compiled binary of [OpenAI Codex](https://github.com/openai/codex) for ARM64 Termux.

- **Upstream**: [github.com/openai/codex](https://github.com/openai/codex)
- **Fork**: [github.com/DioNanos/codex-termux](https://github.com/DioNanos/codex-termux)

## License

Apache 2.0 - See [LICENSE](https://github.com/DioNanos/codex-termux/blob/main/LICENSE)

## Maintainer

Davide A. Guglielmi <dev@mmmbuto.com>
