@mmmbuto/codex-cli-termux 0.55.7-termux → 0.56.3-termux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +100 -30
  2. package/bin/codex +0 -0
  3. package/bin/codex.js +18 -0
  4. package/package.json +19 -15
package/README.md CHANGED
@@ -1,57 +1,127 @@
1
- # @mmmbuto/codex-cli-termux
1
+ # 🤖 Codex CLI - Termux Edition
2
2
 
3
- OpenAI Codex CLI v0.55.7 pre-compiled for Android Termux (ARM64)
3
+ > **Pre-compiled OpenAI Codex for Android Termux (ARM64)**
4
4
 
5
- ## 🔧 v0.55.7 - Stable Release (Patch #8)
5
+ ## What This Is
6
6
 
7
- **Critical fix for Termux/Android**: Codex Agent can now execute bash commands correctly
7
+ Official OpenAI Codex CLI compiled for Android Termux. Since Termux is not officially supported by upstream, we apply minimal patches only for critical compatibility issues.
8
8
 
9
- ### What was broken
10
- - Bash commands in Agent mode failed with "Permission denied"
11
- - Affected all Termux installations (issue existed since upstream)
9
+ ### What We Do:
10
+ **Use official OpenAI Codex source** (https://github.com/openai/codex)
11
+ **Compile for ARM64** (Android Termux native)
12
+ ✅ **Apply minimal patches** only for Termux-specific issues not addressed upstream
13
+ ✅ **Package as npm** for easy installation
14
+ ✅ **Maintain full Apache 2.0 compliance** with OpenAI attribution
12
15
 
13
- ### What's fixed
14
- - Disabled unsupported sandbox on Android (landlock/seccomp)
15
- - Preserved LD_* environment variables required by Termux
16
- - Fixed shell detection to use $SHELL instead of getpwuid()
16
+ ### What We DON'T Do:
17
+ **NO new features**
18
+ **NO behavior modifications** (works exactly like upstream)
19
+ **NO replacement** of official Codex
17
20
 
18
- ### Impact
19
- Agent mode now works fully on Termux - can execute pkg, git, npm, and all bash commands.
21
+ ### 🔧 Compatibility Patches
22
+
23
+ We only apply patches for issues that:
24
+ - **Prevent Codex from working on Termux**
25
+ - **Are not addressed by upstream** (Termux is not officially supported)
26
+ - **Are minimal and well-documented**
27
+
28
+ **Current patches**: See [patches/](./patches/) directory for full documentation.
29
+
30
+ **Found an issue?** Well-documented bug reports with reproduction steps are welcome! Open an [issue](https://github.com/DioNanos/codex-termux/issues).
31
+
32
+ ---
33
+
34
+ ## 📋 Prerequisites
35
+
36
+ ```bash
37
+ # Update Termux packages
38
+ pkg update && pkg upgrade -y
39
+
40
+ # Install Node.js
41
+ pkg install nodejs-lts -y
42
+
43
+ # Verify
44
+ node --version # v14+
45
+ npm --version # v6+
46
+ ```
47
+
48
+ **Requirements:**
49
+ - Android 7+ (Termux)
50
+ - ARM64 architecture
51
+ - Node.js ≥ 14.0.0
52
+ - ~50MB storage
20
53
 
21
54
  ---
22
55
 
23
- ## Installation
56
+ ## 📦 Installation
57
+
58
+ ### Via npm (Recommended)
24
59
 
25
60
  ```bash
26
61
  npm install -g @mmmbuto/codex-cli-termux
27
62
  ```
28
63
 
29
- ## Usage
64
+ ### Verify Installation
30
65
 
31
66
  ```bash
32
- codex --help
33
67
  codex --version
34
- codex login # Authenticate with OpenAI
35
- codex # Start interactive Agent mode
68
+ # Output: codex-cli 0.56.0
69
+
70
+ codex login
71
+ # Opens browser for authentication
36
72
  ```
37
73
 
38
- ## Requirements
74
+ **Links:**
75
+ - npm: https://www.npmjs.com/package/@mmmbuto/codex-cli-termux
76
+ - Releases: https://github.com/DioNanos/codex-termux/releases
77
+ - Upstream: https://github.com/openai/codex
39
78
 
40
- - **Platform**: Android with Termux
41
- - **Architecture**: ARM64
42
- - **Node.js**: ≥ 14.0.0
79
+ ---
43
80
 
44
- ## Source
81
+ ## 🚀 Usage
45
82
 
46
- This package contains a pre-compiled binary of [OpenAI Codex](https://github.com/openai/codex) for ARM64 Termux.
83
+ Same as official Codex CLI:
47
84
 
48
- - **Upstream**: [github.com/openai/codex](https://github.com/openai/codex)
49
- - **Fork**: [github.com/DioNanos/codex-termux](https://github.com/DioNanos/codex-termux)
85
+ ```bash
86
+ # Login to OpenAI
87
+ codex login
50
88
 
51
- ## License
89
+ # Start chat
90
+ codex
52
91
 
53
- Apache 2.0 - See [LICENSE](https://github.com/DioNanos/codex-termux/blob/main/LICENSE)
92
+ # Help
93
+ codex --help
94
+ ```
95
+
96
+ For full documentation, see [OpenAI Codex docs](https://github.com/openai/codex).
97
+
98
+ ---
99
+
100
+ ## 🔨 Building from Source
101
+
102
+ See [BUILDING.md](./BUILDING.md) for compilation instructions.
103
+
104
+ ---
105
+
106
+ ## 📝 License
54
107
 
55
- ## Maintainer
108
+ This project maintains full compliance with the Apache 2.0 license from OpenAI Codex.
109
+
110
+ **Original work**: Copyright OpenAI (https://github.com/openai/codex)
111
+ **Termux port**: Minimal patches for Android compatibility
112
+
113
+ See [LICENSE](./LICENSE) file for details.
114
+
115
+ ---
116
+
117
+ ## 🙏 Credits
118
+
119
+ - **OpenAI** for the amazing Codex CLI
120
+ - **Termux** community for Android terminal environment
121
+ - All contributors to upstream Codex project
122
+
123
+ ---
56
124
 
57
- Davide A. Guglielmi <dev@mmmbuto.com>
125
+ **Version**: Based on OpenAI Codex 0.56.0
126
+ **Platform**: Android Termux ARM64
127
+ **Maintained**: Community-driven, not affiliated with OpenAI
package/bin/codex CHANGED
Binary file
package/bin/codex.js ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ import { spawn } from 'child_process';
3
+ import { fileURLToPath } from 'url';
4
+ import { dirname, join } from 'path';
5
+
6
+ const __filename = fileURLToPath(import.meta.url);
7
+ const __dirname = dirname(__filename);
8
+
9
+ const binaryPath = join(__dirname, 'codex');
10
+
11
+ const child = spawn(binaryPath, process.argv.slice(2), {
12
+ stdio: 'inherit',
13
+ windowsHide: true,
14
+ });
15
+
16
+ child.on('exit', (code) => {
17
+ process.exit(code);
18
+ });
package/package.json CHANGED
@@ -1,21 +1,25 @@
1
1
  {
2
2
  "name": "@mmmbuto/codex-cli-termux",
3
- "version": "0.55.7-termux",
4
- "description": "OpenAI Codex CLI v0.55.7 - Stable release with Patch #8 (Android ARM64)",
5
- "main": "bin/codex",
3
+ "version": "0.56.3-termux",
4
+ "description": "OpenAI Codex CLI v0.56.0 pre-compiled for Android Termux (ARM64)",
5
+ "type": "module",
6
+ "main": "bin/codex.js",
6
7
  "bin": {
7
- "codex": "./bin/codex"
8
- },
9
- "scripts": {
10
- "postinstall": "echo '✅ @mmmbuto/codex-cli-termux installed successfully'"
8
+ "codex": "bin/codex.js"
11
9
  },
10
+ "files": [
11
+ "bin/codex.js",
12
+ "bin/codex"
13
+ ],
12
14
  "keywords": [
13
15
  "codex",
14
16
  "openai",
15
17
  "termux",
16
18
  "android",
17
19
  "arm64",
18
- "cli"
20
+ "cli",
21
+ "ai",
22
+ "coding-agent"
19
23
  ],
20
24
  "author": "Davide A. Guglielmi <dev@mmmbuto.com>",
21
25
  "license": "Apache-2.0",
@@ -23,18 +27,18 @@
23
27
  "type": "git",
24
28
  "url": "https://github.com/DioNanos/codex-termux.git"
25
29
  },
30
+ "homepage": "https://github.com/DioNanos/codex-termux#readme",
26
31
  "bugs": {
27
32
  "url": "https://github.com/DioNanos/codex-termux/issues"
28
33
  },
29
- "homepage": "https://github.com/DioNanos/codex-termux#readme",
34
+ "engines": {
35
+ "node": ">=14.0.0"
36
+ },
30
37
  "os": [
31
- "linux",
32
- "android"
38
+ "android",
39
+ "linux"
33
40
  ],
34
41
  "cpu": [
35
42
  "arm64"
36
- ],
37
- "engines": {
38
- "node": ">=14.0.0"
39
- }
43
+ ]
40
44
  }