@mmmbuto/codex-cli-termux 0.77.1-termux → 0.79.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 +108 -80
- package/bin/codex +0 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 🤖 Codex CLI - Termux Edition
|
|
2
2
|
|
|
3
|
-
> **
|
|
3
|
+
> **Built from upstream OpenAI Codex source, compiled for Android Termux (ARM64)**
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@mmmbuto/codex-cli-termux)
|
|
6
6
|
[](https://www.npmjs.com/package/@mmmbuto/codex-cli-termux)
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
## What This Is
|
|
12
12
|
|
|
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
16
|
✅ **Use official OpenAI Codex source** (https://github.com/openai/codex)
|
|
@@ -33,9 +33,9 @@ We only apply patches for issues that:
|
|
|
33
33
|
|
|
34
34
|
**Current patches**: See [patches/](./patches/) directory for full documentation.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
[docs/termux-upgrade-checks.md](./docs/termux-upgrade-checks.md)
|
|
38
|
-
|
|
36
|
+
Need help debugging upgrade alerts? See
|
|
37
|
+
[docs/termux-upgrade-checks.md](./docs/termux-upgrade-checks.md) for known causes
|
|
38
|
+
and fix strategies.
|
|
39
39
|
|
|
40
40
|
**Found an issue?** Well-documented bug reports with reproduction steps are welcome! Open an [issue](https://github.com/DioNanos/codex-termux/issues).
|
|
41
41
|
|
|
@@ -51,14 +51,14 @@ pkg update && pkg upgrade -y
|
|
|
51
51
|
pkg install nodejs-lts -y
|
|
52
52
|
|
|
53
53
|
# Verify
|
|
54
|
-
node --version #
|
|
54
|
+
node --version # v18+ (recommended v22+)
|
|
55
55
|
npm --version # v6+
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
**Requirements:**
|
|
59
59
|
- Android 7+ (Termux)
|
|
60
60
|
- ARM64 architecture
|
|
61
|
-
- Node.js
|
|
61
|
+
- Node.js >=18 (recommended >=22)
|
|
62
62
|
- ~50MB storage
|
|
63
63
|
|
|
64
64
|
---
|
|
@@ -75,7 +75,7 @@ npm install -g @mmmbuto/codex-cli-termux
|
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
codex --version
|
|
78
|
-
# Output: codex-cli 0.
|
|
78
|
+
# Output: codex-cli 0.79.0-termux
|
|
79
79
|
|
|
80
80
|
codex login
|
|
81
81
|
# Opens browser for authentication
|
|
@@ -89,6 +89,70 @@ codex login
|
|
|
89
89
|
|
|
90
90
|
---
|
|
91
91
|
|
|
92
|
+
## ⚡ 2-Minute Quickstart / ⚡ 2分钟快速开始
|
|
93
|
+
Get a first session running fast. Choose the path that matches your account.
|
|
94
|
+
快速完成首次运行。选择与你的账号/网关匹配的路径。
|
|
95
|
+
|
|
96
|
+
### Path 1 — OpenAI (default)
|
|
97
|
+
```bash
|
|
98
|
+
codex login
|
|
99
|
+
codex
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Path 2 — GLM-4.7 (Zhipu ZAI) / GLM-4.7 (智谱 ZAI)
|
|
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)
|
|
126
|
+
|
|
127
|
+
### Path 3 — OpenRouter & gateways / OpenRouter 与兼容网关
|
|
128
|
+
For OpenRouter or other OpenAI-compatible providers.
|
|
129
|
+
适用于 OpenRouter 或其他 OpenAI 兼容的提供商。
|
|
130
|
+
|
|
131
|
+
See [docs/openrouter-quickstart.md](./docs/openrouter-quickstart.md) for detailed configuration.
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
# Quick example (see docs for full setup)
|
|
135
|
+
source ~/.codex/.env
|
|
136
|
+
codex --profile or-fast
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Caution: model slugs/names can change on providers—verify the current model list first.
|
|
140
|
+
注意:模型名称可能变化,请以提供商模型列表为准。
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 🧭 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
|
+
|
|
150
|
+
For detailed setup guides, see:
|
|
151
|
+
- **GLM-4.7**: [docs/GLM4.7-quickstart.md](./docs/GLM4.7-quickstart.md)
|
|
152
|
+
- **OpenRouter**: [docs/openrouter-quickstart.md](./docs/openrouter-quickstart.md)
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
92
156
|
## 🚀 Usage
|
|
93
157
|
|
|
94
158
|
Same as official Codex CLI:
|
|
@@ -111,7 +175,7 @@ For full documentation, see [OpenAI Codex docs](https://developers.openai.com/co
|
|
|
111
175
|
The `codex` binary is a multitool that includes the `exec` subcommand for automation and scripting:
|
|
112
176
|
|
|
113
177
|
```bash
|
|
114
|
-
# Enable web search tool
|
|
178
|
+
# Enable web search tool (⚠️ avoid pasting secrets; be mindful of prompt injection from untrusted content)
|
|
115
179
|
codex --search
|
|
116
180
|
|
|
117
181
|
# Run non-interactively with JSON output
|
|
@@ -137,13 +201,29 @@ codex exec --json -o output.json "describe this project"
|
|
|
137
201
|
|
|
138
202
|
See the [Execpolicy quickstart](./docs/execpolicy.md) to set up rules that govern what commands Codex can execute.
|
|
139
203
|
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## 🔧 Troubleshooting (Termux) / 🔧 故障排查(Termux)
|
|
207
|
+
Common Termux issues and the fastest places to check.
|
|
208
|
+
常见 Termux 问题与最快排查入口。
|
|
209
|
+
|
|
210
|
+
- Upgrade alerts or shared library errors: see [docs/termux-upgrade-checks.md](./docs/termux-upgrade-checks.md)
|
|
211
|
+
- Basic usage/setup: see [docs/getting-started.md](./docs/getting-started.md)
|
|
212
|
+
- Authentication/login problems: see [docs/authentication.md](./docs/authentication.md)
|
|
213
|
+
- GLM-4.7 setup: see [docs/GLM4.7-quickstart.md](./docs/GLM4.7-quickstart.md)
|
|
214
|
+
- Still stuck? Open an issue with repro steps: [GitHub Issues](https://github.com/DioNanos/codex-termux/issues)
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
140
218
|
## 🧪 Testing & Validation
|
|
141
219
|
|
|
142
|
-
|
|
220
|
+
Latest validation (2026-01-08): 47 passed / 0 failed / 2 skipped — see [CODEX_TEST_REPORT_v0.79.0.md](./CODEX_TEST_REPORT_v0.79.0.md).
|
|
143
221
|
|
|
144
|
-
|
|
222
|
+
<details>
|
|
223
|
+
<summary>Details: automated test suite, coverage, and sample report</summary>
|
|
145
224
|
|
|
146
|
-
|
|
225
|
+
### Automated Test Suite
|
|
226
|
+
[CODEX_TEST_SUITE.md](./CODEX_TEST_SUITE.md) - Universal test suite compatible with all Codex versions
|
|
147
227
|
|
|
148
228
|
**Coverage**:
|
|
149
229
|
- ✅ **82 automated tests** across 12 categories (including prep/cleanup)
|
|
@@ -196,29 +276,36 @@ Codex will automatically:
|
|
|
196
276
|
- ✅ Browser opener availability (Patch #1 validation)
|
|
197
277
|
- ✅ Architecture detection (aarch64/ARM64)
|
|
198
278
|
|
|
199
|
-
**Suite size**: 82 tests defined (includes optional/manual). Automated run on Termux executes 49 applicable tests; last run (2026-01-
|
|
279
|
+
**Suite size**: 82 tests defined (includes optional/manual). Automated run on Termux executes 49 applicable tests; last run (2026-01-08) completed with 47 ✅ / 0 ❌ / 2 ⚠️ skipped (WebSearch unavailable, git info skipped in non-repo workspace).
|
|
200
280
|
|
|
201
281
|
**Success Criteria**:
|
|
202
282
|
- All System, Files, Shell, and Termux tests must pass
|
|
203
283
|
- At least 80% overall pass rate
|
|
204
284
|
- No critical crashes
|
|
205
285
|
|
|
206
|
-
**Example Report** (v0.
|
|
286
|
+
**Example Report** (v0.79.0-termux, 2026-01-08):
|
|
207
287
|
```
|
|
208
288
|
CODEX CLI TEST SUITE - FINAL REPORT
|
|
209
289
|
====================================
|
|
210
|
-
Platform: Android Termux ARM64
|
|
211
|
-
Codex Version: 0.
|
|
290
|
+
Platform: Android Termux ARM64
|
|
291
|
+
Codex Version: 0.79.0-termux
|
|
212
292
|
Total Tests: 49
|
|
213
293
|
✅ Passed: 47
|
|
214
294
|
❌ Failed: 0
|
|
215
|
-
⚠️ Skipped: 2 (WebSearch
|
|
295
|
+
⚠️ Skipped: 2 (WebSearch unavailable, git info skipped in non-repo workspace)
|
|
216
296
|
|
|
217
297
|
Termux-Specific: 10/10 passed ✅
|
|
218
298
|
Package & Binary: 8/8 passed ✅
|
|
219
299
|
|
|
220
300
|
VERDICT: ✅ PASS
|
|
221
301
|
```
|
|
302
|
+
|
|
303
|
+
</details>
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## 📚 Documentation
|
|
308
|
+
|
|
222
309
|
- [**Getting started**](./docs/getting-started.md)
|
|
223
310
|
- [CLI usage](./docs/getting-started.md#cli-usage)
|
|
224
311
|
- [Slash Commands](./docs/slash_commands.md)
|
|
@@ -289,7 +376,7 @@ See [LICENSE](./LICENSE) file for details.
|
|
|
289
376
|
|
|
290
377
|
---
|
|
291
378
|
|
|
292
|
-
**Version**: Based on OpenAI Codex main (
|
|
379
|
+
**Version**: Based on OpenAI Codex main (rust-v0.79.0) with Termux compatibility patches
|
|
293
380
|
**Platform**: Android Termux ARM64
|
|
294
381
|
**Maintained**: Community-driven, not affiliated with OpenAI
|
|
295
382
|
|
|
@@ -297,68 +384,9 @@ See [LICENSE](./LICENSE) file for details.
|
|
|
297
384
|
|
|
298
385
|
## 📜 Changelog
|
|
299
386
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
- ⬆️ Upstream merge: 63 commits after rust-v0.77.0. Highlights:
|
|
304
|
-
- Config sources: in-repo `.codex/config.toml` (8ff16a7), `/etc/codex/config.toml` (e27d9bd), `project_root_markers` (314937f).
|
|
305
|
-
- ExecPolicyManager wiring: add (96fdbdd), load from ConfigLayerStack (277babb).
|
|
306
|
-
- TUI2 selection/copy/perf: multi-click selection (0130a2f), copy shortcut (414fbe0), cache transcript (90f37e8), reduce redraws (3cfa4bc), scroll stickiness fix (279283f).
|
|
307
|
-
- Unified exec output cap (fb24c47), SandboxUsers group for ACLs (79ce79a).
|
|
308
|
-
- Remove reasoning format (40de81e), remove model family from TUI (2de7314).
|
|
309
|
-
- 🔧 Termux patches #1–6, #8, #9 revalidated after merge (`verify-patches.sh`).
|
|
310
|
-
- ✅ Tests: CODEX_TEST_SUITE v1.2 on Termux (2026-01-04) → 47 passed / 0 failed / 2 skipped; Package & Binary 8/8 passed; Termux-Specific 10/10 passed.
|
|
311
|
-
|
|
312
|
-
### v0.77.0-termux (2025-12-21)
|
|
313
|
-
**Dist-tag**: `previous`
|
|
314
|
-
|
|
315
|
-
- ⬆️ Upstream bump to OpenAI Codex rust-v0.77.0.
|
|
316
|
-
- 🧭 Single entrypoint confirmed: `codex` with no args opens TUI; `codex <prompt>` routes to exec; `codex-exec` kept as JS wrapper (no symlink).
|
|
317
|
-
- 🔧 Termux patches #1–6, #8, #9 revalidated after merge (`verify-patches.sh`).
|
|
318
|
-
- 📦 npm package bumped to 0.77.0-termux; packaged binary includes `codex` plus `codex-exec` wrapper (no symlink).
|
|
319
|
-
- ✅ Tests: CODEX_TEST_SUITE v1.2 on Termux (2025-12-21) → 48 passed / 0 failed / 2 skipped (WebSearch disabled, git info skipped in non-repo workspace); Package & Binary 8/8 passed; Termux-Specific 10/10 passed.
|
|
320
|
-
- 🌟 **Official Upstream Highlights**:
|
|
321
|
-
- Introducing gpt-5.2-codex our latest frontier model
|
|
322
|
-
- Projects are now collapsed to a single folder in the file explorer
|
|
323
|
-
- Hide collapsed folders from the file explorer
|
|
324
|
-
- Initial support for desktop notifications on macOS and Linux
|
|
325
|
-
- MCP improvements: Better error handling and resource management
|
|
326
|
-
- TUI improvements: Better visual feedback and performance
|
|
327
|
-
|
|
328
|
-
### v0.73.0-termux (2025-12-16)
|
|
329
|
-
**Dist-tag**: `latest`
|
|
330
|
-
|
|
331
|
-
- ⬆️ Upstream bump to OpenAI Codex rust-v0.73.0 (skills manager rework, ghost snapshots v2, config ghost commits, wrap algorithm now FirstFit, OTEL tracing).
|
|
332
|
-
- 🧭 Single entrypoint confirmed: `codex` with no args opens TUI; `codex <prompt>` routes to exec; `codex-exec` kept as alias wrapper.
|
|
333
|
-
- 🔧 Termux patches #1–6, #8, #9 revalidated after merge (verify-patches.sh).
|
|
334
|
-
- 📦 npm package bumped to 0.73.0-termux; binary rebuilt and packaged once with symlinked `codex-exec`.
|
|
335
|
-
- ✅ Build: `cargo build -p codex-cli --release --locked` on Termux; npm wrapper binary updated. Install + test suite run still pending.
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
### v0.72.0-termux (2025-12-13) – stable
|
|
339
|
-
**Dist-tag**: `stable`
|
|
340
|
-
|
|
341
|
-
- ⬆️ Upstream bump to OpenAI Codex rust-v0.72.0 (OTEL tracing, config loader rewrite, notifications).
|
|
342
|
-
- 🧭 Single entrypoint confirmed: `codex` with no args opens TUI; `codex <prompt>` routes to exec; `codex-exec` kept as alias wrapper.
|
|
343
|
-
- 🔧 Termux patches #1–6, #8, #9 revalidated after merge (verify-patches.sh).
|
|
344
|
-
- 📦 npm package bumped to 0.72.0-termux; binary packaged once with symlinked `codex-exec`.
|
|
345
|
-
- ✅ Tests: build + install on Termux pending (will run in this session).
|
|
346
|
-
|
|
347
|
-
### v0.71.0-termux (2025-12-12) – stable
|
|
348
|
-
**Dist-tag**: `stable`
|
|
349
|
-
|
|
350
|
-
- ⬆️ Upstream bump to OpenAI Codex rust-v0.71.0 (gpt-5.2 models, TUI2 refinements, policy refresh).
|
|
351
|
-
- 🔧 Termux patches #1–6, #8, #9 revalidated; release profile kept RAM-friendly (lto=false, codegen-units=16).
|
|
352
|
-
- 🖥️ Single entrypoint confirmed: `codex` serves both TUI and automation; `codex-exec` remains alias wrapper (JS launcher unchanged).
|
|
353
|
-
- 📦 Package verification: bin includes `codex`, symlinked `codex-exec`, JS wrappers; `LD_LIBRARY_PATH` preserved; termux-open-url login path intact.
|
|
354
|
-
- ✅ Tests: CODEX_TEST_SUITE v1.2 quick run → 37 passed / 0 failed / 12 skipped (web search, AI, some git/Termux-API); critical package checks 8/8.
|
|
355
|
-
|
|
356
|
-
### v0.64.1-termux (2025-12-03) – stable
|
|
357
|
-
**Dist-tag**: `stable`
|
|
358
|
-
|
|
359
|
-
- Maintenance follow-up to 0.64.0: docs/test report refresh and npm package verification (codex-exec symlink + bin entries).
|
|
360
|
-
- Base upstream: rust-v0.64.0; Termux patches #1-6, #8, #9 revalidated.
|
|
361
|
-
- ✅ Tests: CODEX_TEST_SUITE v1.2 → 47/49 pass (Git optional skipped), Package & Binary 8/8 pass, Termux-Specific 10/10 pass.
|
|
387
|
+
Upstream Codex releases: https://github.com/openai/codex/releases
|
|
388
|
+
|
|
389
|
+
Termux-specific changes: see [CHANGELOG.md](./CHANGELOG.md).
|
|
362
390
|
|
|
363
391
|
---
|
|
364
392
|
|
package/bin/codex
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.79.0-termux",
|
|
4
|
+
"description": "OpenAI Codex CLI (upstream main, post rust-v0.79.0) packaged as 0.79.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": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "https://github.com/DioNanos/codex-termux.git"
|
|
32
|
+
"url": "git+https://github.com/DioNanos/codex-termux.git"
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/DioNanos/codex-termux#readme",
|
|
35
35
|
"bugs": {
|