@mmmbuto/codex-cli-termux 0.80.0-termux → 0.88.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 +71 -76
- package/bin/codex +0 -0
- package/bin/codex-exec +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
Built from upstream OpenAI Codex source, compiled for Android Termux. Since Termux is not officially supported by upstream, we apply minimal patches only for critical compatibility issues.
|
|
14
14
|
|
|
15
15
|
### What We Do:
|
|
16
|
-
✅ **Use official OpenAI Codex source** (https://github.com/openai/codex)
|
|
17
|
-
✅ **Compile for ARM64** (Android Termux native)
|
|
18
|
-
✅ **Apply minimal patches** only for Termux-specific issues not addressed upstream
|
|
19
|
-
✅ **Package as npm** for easy installation
|
|
20
|
-
✅ **Maintain full Apache 2.0 compliance** with OpenAI attribution
|
|
16
|
+
✅ **Use official OpenAI Codex source** (https://github.com/openai/codex)
|
|
17
|
+
✅ **Compile for ARM64** (Android Termux native)
|
|
18
|
+
✅ **Apply minimal patches** only for Termux-specific issues not addressed upstream
|
|
19
|
+
✅ **Package as npm** for easy installation
|
|
20
|
+
✅ **Maintain full Apache 2.0 compliance** with OpenAI attribution
|
|
21
21
|
|
|
22
22
|
### What We DON'T Do:
|
|
23
|
-
❌ **NO new features**
|
|
24
|
-
❌ **NO behavior modifications** (works exactly like upstream)
|
|
25
|
-
❌ **NO replacement** of official Codex
|
|
23
|
+
❌ **NO new features**
|
|
24
|
+
❌ **NO behavior modifications** (works exactly like upstream)
|
|
25
|
+
❌ **NO replacement** of official Codex
|
|
26
26
|
|
|
27
27
|
### 🔧 Compatibility Patches
|
|
28
28
|
|
|
@@ -52,7 +52,7 @@ pkg install nodejs-lts -y
|
|
|
52
52
|
|
|
53
53
|
# Verify
|
|
54
54
|
node --version # v18+ (recommended v22+)
|
|
55
|
-
npm --version #
|
|
55
|
+
npm --version # v9+
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
**Requirements:**
|
|
@@ -71,11 +71,35 @@ npm --version # v6+
|
|
|
71
71
|
npm install -g @mmmbuto/codex-cli-termux
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
+
### Version policy (Stable vs Latest)
|
|
75
|
+
|
|
76
|
+
For now we keep **two tracks**:
|
|
77
|
+
|
|
78
|
+
- **Stable:** `0.80.0-termux` (recommended for reliability on Termux)
|
|
79
|
+
- **Latest:** newer upstream-based releases (e.g. `0.88.0-termux` and above)
|
|
80
|
+
|
|
81
|
+
Install a specific version when needed:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
# Stable (known-good)
|
|
85
|
+
npm install -g @mmmbuto/codex-cli-termux@0.80.0-termux
|
|
86
|
+
|
|
87
|
+
# Latest (tracks upstream)
|
|
88
|
+
npm install -g @mmmbuto/codex-cli-termux@latest
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Tip: check what npm considers “latest”:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
npm view @mmmbuto/codex-cli-termux dist-tags
|
|
95
|
+
npm view @mmmbuto/codex-cli-termux versions --json
|
|
96
|
+
```
|
|
97
|
+
|
|
74
98
|
### Verify Installation
|
|
75
99
|
|
|
76
100
|
```bash
|
|
77
101
|
codex --version
|
|
78
|
-
#
|
|
102
|
+
# Example: codex-cli 0.80.0-termux
|
|
79
103
|
|
|
80
104
|
codex login
|
|
81
105
|
# Opens browser for authentication
|
|
@@ -90,41 +114,19 @@ codex login
|
|
|
90
114
|
---
|
|
91
115
|
|
|
92
116
|
## ⚡ 2-Minute Quickstart / ⚡ 2分钟快速开始
|
|
117
|
+
|
|
93
118
|
Get a first session running fast. Choose the path that matches your account.
|
|
94
119
|
快速完成首次运行。选择与你的账号/网关匹配的路径。
|
|
95
120
|
|
|
96
121
|
### Path 1 — OpenAI (default)
|
|
122
|
+
|
|
97
123
|
```bash
|
|
98
124
|
codex login
|
|
99
125
|
codex
|
|
100
126
|
```
|
|
101
127
|
|
|
102
|
-
### Path 2 —
|
|
103
|
-
Use Zhipu's GLM-4.7 model optimized for coding scenarios.
|
|
104
|
-
使用智谱的 GLM-4.7 模型(专为编程场景优化)。
|
|
105
|
-
|
|
106
|
-
**Quick setup / 快速配置:**
|
|
107
|
-
```bash
|
|
108
|
-
# 1. Add API key to ~/.zshrc (bash users: use ~/.bashrc)
|
|
109
|
-
echo 'export ZAI_API_KEY="your-zai-api-key"' >> ~/.zshrc
|
|
110
|
-
|
|
111
|
-
# 2. Add alias for GLM-4.7
|
|
112
|
-
cat >> ~/.zshrc << 'ALIAS_EOF'
|
|
113
|
-
|
|
114
|
-
# Codex CLI with GLM-4.7 (Coding Plan - dedicated endpoint)
|
|
115
|
-
alias codex-glm='OPENAI_API_KEY="$ZAI_API_KEY" codex -m "GLM-4.7" -c model_provider="zai"'
|
|
116
|
-
ALIAS_EOF
|
|
117
|
-
|
|
118
|
-
# 3. Reload shell and test
|
|
119
|
-
source ~/.zshrc
|
|
120
|
-
codex-glm "Say hello in Chinese"
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
If your ZAI setup requires a base URL, export `OPENAI_BASE_URL=...` — see [docs/GLM4.7-quickstart.md](./docs/GLM4.7-quickstart.md).
|
|
124
|
-
|
|
125
|
-
**Full docs / 完整文档:** [docs/GLM4.7-quickstart.md](./docs/GLM4.7-quickstart.md)
|
|
128
|
+
### Path 2 — OpenRouter & OpenAI-compatible gateways / OpenRouter 与兼容网关
|
|
126
129
|
|
|
127
|
-
### Path 3 — OpenRouter & gateways / OpenRouter 与兼容网关
|
|
128
130
|
For OpenRouter or other OpenAI-compatible providers.
|
|
129
131
|
适用于 OpenRouter 或其他 OpenAI 兼容的提供商。
|
|
130
132
|
|
|
@@ -136,20 +138,26 @@ source ~/.codex/.env
|
|
|
136
138
|
codex --profile or-fast
|
|
137
139
|
```
|
|
138
140
|
|
|
139
|
-
Caution: model slugs/names can change on providers—verify the current model list first.
|
|
141
|
+
Caution: model slugs/names can change on providers—verify the current model list first.
|
|
140
142
|
注意:模型名称可能变化,请以提供商模型列表为准。
|
|
141
143
|
|
|
144
|
+
#### Gateways that don’t fully match Codex “Responses API” (Codex > 0.80.0)
|
|
145
|
+
|
|
146
|
+
Some gateways may not fully implement the endpoints/event-stream format expected by newer Codex versions.
|
|
147
|
+
If you see issues like unexpected 404/502 on `/v1/responses`, use the community bridge proxy:
|
|
148
|
+
|
|
149
|
+
- **zai-codex-bridge**: https://github.com/DioNanos/zai-codex-bridge
|
|
150
|
+
|
|
151
|
+
This keeps **codex-termux** minimal (no behavior changes) while allowing compatibility fixes to live in a separate project.
|
|
152
|
+
|
|
142
153
|
---
|
|
143
154
|
|
|
144
155
|
## 🧭 OpenRouter & gateways note / 🧭 OpenRouter 与兼容网关说明
|
|
145
|
-
This Termux port only adds Android compatibility; it does not change Codex behavior.
|
|
146
|
-
本 Termux 版本仅提供 Android 兼容性,不改变 Codex 行为。
|
|
147
|
-
Providers/models are determined by your own config and backend.
|
|
148
|
-
提供商与模型由你的配置与后端决定。
|
|
149
156
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
157
|
+
This Termux port only adds Android compatibility; it does not change Codex behavior.
|
|
158
|
+
本 Termux 版本仅提供 Android 兼容性,不改变 Codex 行为。
|
|
159
|
+
Providers/models are determined by your own config and backend.
|
|
160
|
+
提供商与模型由你的配置与后端决定。
|
|
153
161
|
|
|
154
162
|
---
|
|
155
163
|
|
|
@@ -204,25 +212,33 @@ See the [Execpolicy quickstart](./docs/execpolicy.md) to set up rules that gover
|
|
|
204
212
|
---
|
|
205
213
|
|
|
206
214
|
## 🔧 Troubleshooting (Termux) / 🔧 故障排查(Termux)
|
|
215
|
+
|
|
207
216
|
Common Termux issues and the fastest places to check.
|
|
208
217
|
常见 Termux 问题与最快排查入口。
|
|
209
218
|
|
|
210
219
|
- Upgrade alerts or shared library errors: see [docs/termux-upgrade-checks.md](./docs/termux-upgrade-checks.md)
|
|
211
220
|
- Basic usage/setup: see [docs/getting-started.md](./docs/getting-started.md)
|
|
212
221
|
- Authentication/login problems: see [docs/authentication.md](./docs/authentication.md)
|
|
213
|
-
-
|
|
222
|
+
- Provider/gateway incompatibilities on **Codex > 0.80.0**: use **zai-codex-bridge** (link above)
|
|
214
223
|
- Still stuck? Open an issue with repro steps: [GitHub Issues](https://github.com/DioNanos/codex-termux/issues)
|
|
215
224
|
|
|
216
225
|
---
|
|
217
226
|
|
|
218
227
|
## 🧪 Testing & Validation
|
|
219
228
|
|
|
220
|
-
|
|
229
|
+
Stable validation (2026-01-10): 49 passed / 0 failed / 0 skipped — see [CODEX_TEST_REPORT_v0.80.0.md](./CODEX_TEST_REPORT_v0.80.0.md).
|
|
230
|
+
|
|
231
|
+
## 🧪 Testing & Validation
|
|
232
|
+
|
|
233
|
+
Latest validation (2026-01-22): pending — see [CODEX_TEST_REPORT_v0.88.0.md](./CODEX_TEST_REPORT_v0.88.0.md).
|
|
234
|
+
|
|
235
|
+
Previous validation (2026-01-16): 48 passed / 0 failed / 2 skipped — see [CODEX_TEST_REPORT_v0.86.0.md](./CODEX_TEST_REPORT_v0.86.0.md).
|
|
221
236
|
|
|
222
237
|
<details>
|
|
223
238
|
<summary>Details: automated test suite, coverage, and sample report</summary>
|
|
224
239
|
|
|
225
240
|
### Automated Test Suite
|
|
241
|
+
|
|
226
242
|
[CODEX_TEST_SUITE.md](./CODEX_TEST_SUITE.md) - Universal test suite compatible with all Codex versions
|
|
227
243
|
|
|
228
244
|
**Coverage**:
|
|
@@ -276,33 +292,13 @@ Codex will automatically:
|
|
|
276
292
|
- ✅ Browser opener availability (Patch #1 validation)
|
|
277
293
|
- ✅ Architecture detection (aarch64/ARM64)
|
|
278
294
|
|
|
279
|
-
**Suite size**: 82 tests defined (includes optional/manual). Automated run on Termux executes
|
|
295
|
+
**Suite size**: 82 tests defined (includes optional/manual). Automated run on Termux executes the applicable subset; see the report linked above for the last run.
|
|
280
296
|
|
|
281
297
|
**Success Criteria**:
|
|
282
298
|
- All System, Files, Shell, and Termux tests must pass
|
|
283
299
|
- At least 80% overall pass rate
|
|
284
300
|
- No critical crashes
|
|
285
301
|
|
|
286
|
-
**Example Report** (v0.80.0-termux, 2026-01-10):
|
|
287
|
-
```
|
|
288
|
-
CODEX CLI TEST SUITE - FINAL REPORT
|
|
289
|
-
====================================
|
|
290
|
-
Platform: Android Termux ARM64
|
|
291
|
-
Codex Version: 0.80.0-termux
|
|
292
|
-
Total Tests: 49
|
|
293
|
-
✅ Passed: 49
|
|
294
|
-
❌ Failed: 0
|
|
295
|
-
⚠️ Skipped: 0
|
|
296
|
-
✅ Passed: 47
|
|
297
|
-
❌ Failed: 0
|
|
298
|
-
⚠️ Skipped: 2 (WebSearch unavailable, git info skipped in non-repo workspace)
|
|
299
|
-
|
|
300
|
-
Termux-Specific: 10/10 passed ✅
|
|
301
|
-
Package & Binary: 8/8 passed ✅
|
|
302
|
-
|
|
303
|
-
VERDICT: ✅ PASS
|
|
304
|
-
```
|
|
305
|
-
|
|
306
302
|
</details>
|
|
307
303
|
|
|
308
304
|
---
|
|
@@ -313,7 +309,7 @@ VERDICT: ✅ PASS
|
|
|
313
309
|
- [CLI usage](./docs/getting-started.md#cli-usage)
|
|
314
310
|
- [Slash Commands](./docs/slash_commands.md)
|
|
315
311
|
- [Running with a prompt as input](./docs/getting-started.md#running-with-a-prompt-as-input)
|
|
316
|
-
- [Example prompts](./docs/getting-started.md#
|
|
312
|
+
- [Example prompts](./docs/getting-started.md#running-with-a-prompt-as-input)
|
|
317
313
|
- [Custom prompts](./docs/prompts.md)
|
|
318
314
|
- [Memory with AGENTS.md](./docs/getting-started.md#memory-with-agentsmd)
|
|
319
315
|
- [**Configuration**](./docs/config.md)
|
|
@@ -348,10 +344,10 @@ See [BUILDING.md](./BUILDING.md) for compilation instructions.
|
|
|
348
344
|
**Codex-Termux** is a community-maintained port enabling AI-powered coding on Android Termux.
|
|
349
345
|
|
|
350
346
|
**Maintenance activities:**
|
|
351
|
-
- 🔨 **ARM64 compilation** - Building native binaries for each upstream release
|
|
347
|
+
- 🔨 **ARM64 compilation** - Building native binaries for each upstream release
|
|
352
348
|
- 🔄 **Upstream synchronization** - Tracking OpenAI Codex updates and merging changes
|
|
353
349
|
- 🐛 **Compatibility patches** - Maintaining Android-specific fixes for Termux environment
|
|
354
|
-
- 📱 **Device testing** - Verification on real ARM64 hardware
|
|
350
|
+
- 📱 **Device testing** - Verification on real ARM64 hardware
|
|
355
351
|
- 📚 **Documentation & support** - Maintaining docs, responding to GitHub issues
|
|
356
352
|
|
|
357
353
|
**Time investment:** Approximately 20 hours per month for project upkeep.
|
|
@@ -364,7 +360,7 @@ See [BUILDING.md](./BUILDING.md) for compilation instructions.
|
|
|
364
360
|
|
|
365
361
|
This project maintains full compliance with the Apache 2.0 license from OpenAI Codex.
|
|
366
362
|
|
|
367
|
-
**Original work**: Copyright OpenAI (https://github.com/openai/codex)
|
|
363
|
+
**Original work**: Copyright OpenAI (https://github.com/openai/codex)
|
|
368
364
|
**Termux port**: Minimal patches for Android compatibility
|
|
369
365
|
|
|
370
366
|
See [LICENSE](./LICENSE) file for details.
|
|
@@ -379,18 +375,17 @@ See [LICENSE](./LICENSE) file for details.
|
|
|
379
375
|
|
|
380
376
|
---
|
|
381
377
|
|
|
382
|
-
**Version**: Based on OpenAI Codex main (
|
|
383
|
-
**Platform**: Android Termux ARM64
|
|
384
|
-
**Maintained**: Community-driven, not affiliated with OpenAI
|
|
378
|
+
**Version**: Based on OpenAI Codex main (Termux-compatible builds)
|
|
379
|
+
**Platform**: Android Termux ARM64
|
|
380
|
+
**Maintained**: Community-driven, not affiliated with OpenAI
|
|
385
381
|
|
|
386
382
|
---
|
|
387
383
|
|
|
388
384
|
## 📜 Changelog
|
|
389
385
|
|
|
390
|
-
Upstream Codex releases: https://github.com/openai/codex/releases
|
|
391
|
-
|
|
386
|
+
Upstream Codex releases: https://github.com/openai/codex/releases
|
|
392
387
|
Termux-specific changes: see [CHANGELOG.md](./CHANGELOG.md).
|
|
393
388
|
|
|
394
389
|
---
|
|
395
390
|
|
|
396
|
-
**Testing**: Comprehensive test suite
|
|
391
|
+
**Testing**: Comprehensive test suite in [`CODEX_TEST_SUITE.md`](./CODEX_TEST_SUITE.md)
|
package/bin/codex
CHANGED
|
Binary file
|
package/bin/codex-exec
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mmmbuto/codex-cli-termux",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "OpenAI Codex CLI (upstream main, post rust-v0.
|
|
3
|
+
"version": "0.88.0-termux",
|
|
4
|
+
"description": "OpenAI Codex CLI (upstream main, post rust-v0.88.0) packaged as 0.88.0-termux – TUI + automation for Android Termux (ARM64). Use 'codex' for TUI, 'codex exec --json' for automation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/codex.js",
|
|
7
7
|
"bin": {
|