@mmmbuto/codex-cli-termux 0.56.3-termux โ 0.57.0-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.
- package/README.md +46 -93
- package/bin/codex +0 -0
- package/package.json +15 -19
- package/bin/codex.js +0 -18
package/README.md
CHANGED
|
@@ -1,127 +1,80 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @mmmbuto/codex-cli-termux
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
OpenAI Codex CLI v0.57.0 pre-compiled for Android Termux (ARM64)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## ๐ v0.57.0 - Latest Release
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Synced with upstream OpenAI Codex rust-v0.57.0 (25 commits)**
|
|
8
8
|
|
|
9
|
-
###
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
### Upstream improvements
|
|
10
|
+
- โจ๏ธ **TUI Navigation**: CTRL-n / CTRL-p for navigating slash commands, files, history
|
|
11
|
+
- ๐ง **Unified Exec**: Improved safe commands handling, process group timeout fixes
|
|
12
|
+
- ๐ช **WSL Support**: Path normalization for Windows Subsystem for Linux
|
|
13
|
+
- ๐ **App-server v2**: New Thread/Turn APIs, account endpoints
|
|
14
|
+
- ๐งน **Refactoring**: Terminal cleanup (deprecated flush logic removed)
|
|
15
15
|
|
|
16
|
-
###
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
16
|
+
### Termux-specific patches (maintained)
|
|
17
|
+
- โ
Android auto-update disabled (manual update instructions shown)
|
|
18
|
+
- โ
`termux-open-url` for browser login (avoids ndk-context crash)
|
|
19
|
+
- โ
RAM optimizations for 16GB devices (lto=false, codegen-units=16)
|
|
20
|
+
- โ
Disabled unsupported sandbox on Android (landlock/seccomp)
|
|
21
|
+
- โ
Preserved LD_* environment variables required by Termux
|
|
22
|
+
- โ
Fixed shell detection ($SHELL instead of getpwuid)
|
|
53
23
|
|
|
54
24
|
---
|
|
55
25
|
|
|
56
|
-
##
|
|
57
|
-
|
|
58
|
-
### Via npm (Recommended)
|
|
26
|
+
## Installation
|
|
59
27
|
|
|
60
28
|
```bash
|
|
61
29
|
npm install -g @mmmbuto/codex-cli-termux
|
|
62
30
|
```
|
|
63
31
|
|
|
64
|
-
|
|
32
|
+
## Usage
|
|
65
33
|
|
|
66
34
|
```bash
|
|
67
|
-
codex --version
|
|
68
|
-
#
|
|
69
|
-
|
|
70
|
-
codex
|
|
71
|
-
#
|
|
35
|
+
codex --version # Show version (0.57.0)
|
|
36
|
+
codex login # Authenticate with OpenAI
|
|
37
|
+
codex # Start interactive TUI
|
|
38
|
+
codex exec "prompt" # Non-interactive mode
|
|
39
|
+
codex --help # Full documentation
|
|
72
40
|
```
|
|
73
41
|
|
|
74
|
-
|
|
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
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
## ๐ Usage
|
|
82
|
-
|
|
83
|
-
Same as official Codex CLI:
|
|
42
|
+
### New in 0.57.0
|
|
84
43
|
|
|
85
44
|
```bash
|
|
86
|
-
#
|
|
87
|
-
codex login
|
|
88
|
-
|
|
89
|
-
# Start chat
|
|
45
|
+
# Try new TUI navigation
|
|
90
46
|
codex
|
|
91
|
-
|
|
92
|
-
# Help
|
|
93
|
-
codex --help
|
|
47
|
+
# Press CTRL-n / CTRL-p to navigate slash commands, files, history
|
|
94
48
|
```
|
|
95
49
|
|
|
96
|
-
|
|
50
|
+
## Requirements
|
|
97
51
|
|
|
98
|
-
|
|
52
|
+
- **Platform**: Android with Termux
|
|
53
|
+
- **Architecture**: ARM64
|
|
54
|
+
- **Node.js**: โฅ 14.0.0
|
|
55
|
+
- **Storage**: ~50MB
|
|
99
56
|
|
|
100
|
-
##
|
|
57
|
+
## Source
|
|
101
58
|
|
|
102
|
-
|
|
59
|
+
This package contains a pre-compiled binary of [OpenAI Codex](https://github.com/openai/codex) for ARM64 Termux.
|
|
103
60
|
|
|
104
|
-
|
|
61
|
+
- **Upstream**: [github.com/openai/codex](https://github.com/openai/codex) (rust-v0.57.0)
|
|
62
|
+
- **Fork**: [github.com/DioNanos/codex-termux](https://github.com/DioNanos/codex-termux)
|
|
63
|
+
- **Changelog**: https://github.com/openai/codex/compare/rust-v0.56.0...rust-v0.57.0
|
|
105
64
|
|
|
106
|
-
##
|
|
65
|
+
## Compatibility
|
|
107
66
|
|
|
108
|
-
|
|
67
|
+
Fully compatible with official OpenAI Codex. Only minimal patches for Android/Termux compatibility. No behavior modifications.
|
|
109
68
|
|
|
110
|
-
|
|
111
|
-
**Termux port**: Minimal patches for Android compatibility
|
|
69
|
+
## License
|
|
112
70
|
|
|
113
|
-
See [LICENSE](
|
|
71
|
+
Apache 2.0 - See [LICENSE](https://github.com/DioNanos/codex-termux/blob/main/LICENSE)
|
|
114
72
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
## ๐ Credits
|
|
73
|
+
**Original work**: Copyright OpenAI
|
|
74
|
+
**Termux port**: Minimal patches for Android compatibility
|
|
118
75
|
|
|
119
|
-
|
|
120
|
-
- **Termux** community for Android terminal environment
|
|
121
|
-
- All contributors to upstream Codex project
|
|
76
|
+
## Maintainer
|
|
122
77
|
|
|
123
|
-
|
|
78
|
+
Davide A. Guglielmi <dev@mmmbuto.com>
|
|
124
79
|
|
|
125
|
-
**
|
|
126
|
-
**Platform**: Android Termux ARM64
|
|
127
|
-
**Maintained**: Community-driven, not affiliated with OpenAI
|
|
80
|
+
**Last updated**: 2025-11-10
|
package/bin/codex
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mmmbuto/codex-cli-termux",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "OpenAI Codex CLI v0.
|
|
5
|
-
"
|
|
6
|
-
"main": "bin/codex.js",
|
|
3
|
+
"version": "0.57.0-termux",
|
|
4
|
+
"description": "OpenAI Codex CLI v0.57.0 - Termux build (Android ARM64)",
|
|
5
|
+
"main": "bin/codex",
|
|
7
6
|
"bin": {
|
|
8
|
-
"codex": "bin/codex
|
|
7
|
+
"codex": "./bin/codex"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"postinstall": "echo 'โ
@mmmbuto/codex-cli-termux installed successfully'"
|
|
9
11
|
},
|
|
10
|
-
"files": [
|
|
11
|
-
"bin/codex.js",
|
|
12
|
-
"bin/codex"
|
|
13
|
-
],
|
|
14
12
|
"keywords": [
|
|
15
13
|
"codex",
|
|
16
14
|
"openai",
|
|
17
15
|
"termux",
|
|
18
16
|
"android",
|
|
19
17
|
"arm64",
|
|
20
|
-
"cli"
|
|
21
|
-
"ai",
|
|
22
|
-
"coding-agent"
|
|
18
|
+
"cli"
|
|
23
19
|
],
|
|
24
20
|
"author": "Davide A. Guglielmi <dev@mmmbuto.com>",
|
|
25
21
|
"license": "Apache-2.0",
|
|
@@ -27,18 +23,18 @@
|
|
|
27
23
|
"type": "git",
|
|
28
24
|
"url": "https://github.com/DioNanos/codex-termux.git"
|
|
29
25
|
},
|
|
30
|
-
"homepage": "https://github.com/DioNanos/codex-termux#readme",
|
|
31
26
|
"bugs": {
|
|
32
27
|
"url": "https://github.com/DioNanos/codex-termux/issues"
|
|
33
28
|
},
|
|
34
|
-
"
|
|
35
|
-
"node": ">=14.0.0"
|
|
36
|
-
},
|
|
29
|
+
"homepage": "https://github.com/DioNanos/codex-termux#readme",
|
|
37
30
|
"os": [
|
|
38
|
-
"
|
|
39
|
-
"
|
|
31
|
+
"linux",
|
|
32
|
+
"android"
|
|
40
33
|
],
|
|
41
34
|
"cpu": [
|
|
42
35
|
"arm64"
|
|
43
|
-
]
|
|
36
|
+
],
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=14.0.0"
|
|
39
|
+
}
|
|
44
40
|
}
|
package/bin/codex.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
});
|