@mmmbuto/codex-cli-termux 0.77.1-termux → 0.78.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 +85 -100
- package/bin/codex +0 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -31,11 +31,11 @@ We only apply patches for issues that:
|
|
|
31
31
|
- **Are not addressed by upstream** (Termux is not officially supported)
|
|
32
32
|
- **Are minimal and well-documented**
|
|
33
33
|
|
|
34
|
-
**Current patches**: See [patches/](
|
|
34
|
+
**Current patches**: See [patches/](../patches/) directory for full documentation.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
[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
|
|
|
@@ -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.78.0-termux
|
|
79
79
|
|
|
80
80
|
codex login
|
|
81
81
|
# Opens browser for authentication
|
|
@@ -89,6 +89,34 @@ 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 — For friends using OpenRouter / gateways / OpenAI-compatible providers / 给使用 OpenRouter 或兼容网关的朋友
|
|
103
|
+
Set an API key and a minimal config, then run with a profile:
|
|
104
|
+
[docs/openrouter-quickstart.md](../docs/openrouter-quickstart.md)
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
source ~/.codex/.env
|
|
108
|
+
codex --profile or-fast
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Caution: model slugs/names can change on providers—verify the current model list first.
|
|
112
|
+
注意:模型名称可能变化,请以提供商模型列表为准。
|
|
113
|
+
|
|
114
|
+
## 🧭 OpenRouter & gateways note / 🧭 OpenRouter 与兼容网关说明
|
|
115
|
+
This Termux port only adds Android compatibility; it does not change Codex behavior.
|
|
116
|
+
本 Termux 版本仅提供 Android 兼容性,不改变 Codex 行为。
|
|
117
|
+
Providers/models are determined by your own config and backend.
|
|
118
|
+
提供商与模型由你的配置与后端决定。
|
|
119
|
+
|
|
92
120
|
## 🚀 Usage
|
|
93
121
|
|
|
94
122
|
Same as official Codex CLI:
|
|
@@ -135,15 +163,29 @@ codex exec --json -o output.json "describe this project"
|
|
|
135
163
|
|
|
136
164
|
### Execpolicy
|
|
137
165
|
|
|
138
|
-
See the [Execpolicy quickstart](
|
|
166
|
+
See the [Execpolicy quickstart](../docs/execpolicy.md) to set up rules that govern what commands Codex can execute.
|
|
167
|
+
|
|
168
|
+
## 🔧 Troubleshooting (Termux) / 🔧 故障排查(Termux)
|
|
169
|
+
Common Termux issues and the fastest places to check.
|
|
170
|
+
常见 Termux 问题与最快排查入口。
|
|
171
|
+
|
|
172
|
+
- Upgrade alerts or shared library errors: see [docs/termux-upgrade-checks.md](../docs/termux-upgrade-checks.md)
|
|
173
|
+
- Basic usage/setup: see [docs/getting-started.md](../docs/getting-started.md)
|
|
174
|
+
- Authentication/login problems: see [docs/authentication.md](../docs/authentication.md)
|
|
175
|
+
- Still stuck? Open an issue with repro steps: [GitHub Issues](https://github.com/DioNanos/codex-termux/issues)
|
|
139
176
|
|
|
140
177
|
## 🧪 Testing & Validation
|
|
141
178
|
|
|
179
|
+
Latest validation (2026-01-06): 47 passed / 0 failed / 2 skipped — see [CODEX_TEST_SUITE.md](../CODEX_TEST_SUITE.md).
|
|
180
|
+
|
|
181
|
+
<details>
|
|
182
|
+
<summary>Details: automated test suite, coverage, and sample report</summary>
|
|
183
|
+
|
|
142
184
|
### Automated Test Suite
|
|
143
185
|
|
|
144
186
|
This project includes a comprehensive test suite specifically designed for Termux validation:
|
|
145
187
|
|
|
146
|
-
**Test Suite**: [`CODEX_TEST_SUITE.md`](
|
|
188
|
+
**Test Suite**: [`CODEX_TEST_SUITE.md`](../CODEX_TEST_SUITE.md)
|
|
147
189
|
|
|
148
190
|
**Coverage**:
|
|
149
191
|
- ✅ **82 automated tests** across 12 categories (including prep/cleanup)
|
|
@@ -196,60 +238,62 @@ Codex will automatically:
|
|
|
196
238
|
- ✅ Browser opener availability (Patch #1 validation)
|
|
197
239
|
- ✅ Architecture detection (aarch64/ARM64)
|
|
198
240
|
|
|
199
|
-
**Suite size**: 82 tests defined (includes optional/manual). Automated run on Termux executes 49 applicable tests; last run (2026-01-
|
|
241
|
+
**Suite size**: 82 tests defined (includes optional/manual). Automated run on Termux executes 49 applicable tests; last run (2026-01-06) completed with 47 ✅ / 0 ❌ / 2 ⚠️ skipped (WebSearch unavailable, git info skipped in non-repo workspace).
|
|
200
242
|
|
|
201
243
|
**Success Criteria**:
|
|
202
244
|
- All System, Files, Shell, and Termux tests must pass
|
|
203
245
|
- At least 80% overall pass rate
|
|
204
246
|
- No critical crashes
|
|
205
247
|
|
|
206
|
-
**Example Report** (v0.
|
|
248
|
+
**Example Report** (v0.78.0-termux, 2026-01-06):
|
|
207
249
|
```
|
|
208
250
|
CODEX CLI TEST SUITE - FINAL REPORT
|
|
209
251
|
====================================
|
|
210
252
|
Platform: Android Termux ARM64 (reference device)
|
|
211
|
-
Codex Version: 0.
|
|
253
|
+
Codex Version: 0.78.0-termux
|
|
212
254
|
Total Tests: 49
|
|
213
255
|
✅ Passed: 47
|
|
214
256
|
❌ Failed: 0
|
|
215
|
-
⚠️ Skipped: 2 (WebSearch
|
|
257
|
+
⚠️ Skipped: 2 (WebSearch unavailable, git info skipped in non-repo workspace)
|
|
216
258
|
|
|
217
259
|
Termux-Specific: 10/10 passed ✅
|
|
218
260
|
Package & Binary: 8/8 passed ✅
|
|
219
261
|
|
|
220
262
|
VERDICT: ✅ PASS
|
|
221
263
|
```
|
|
222
|
-
- [**Getting started**](
|
|
223
|
-
- [CLI usage](
|
|
224
|
-
- [Slash Commands](
|
|
225
|
-
- [Running with a prompt as input](
|
|
226
|
-
- [Example prompts](
|
|
227
|
-
- [Custom prompts](
|
|
228
|
-
- [Memory with AGENTS.md](
|
|
229
|
-
- [**Configuration**](
|
|
230
|
-
- [Example config](
|
|
231
|
-
- [**Sandbox & approvals**](
|
|
232
|
-
- [**Execpolicy quickstart**](
|
|
233
|
-
- [**Authentication**](
|
|
234
|
-
- [Auth methods](
|
|
235
|
-
- [Login on a "Headless" machine](
|
|
264
|
+
- [**Getting started**](../docs/getting-started.md)
|
|
265
|
+
- [CLI usage](../docs/getting-started.md#cli-usage)
|
|
266
|
+
- [Slash Commands](../docs/slash_commands.md)
|
|
267
|
+
- [Running with a prompt as input](../docs/getting-started.md#running-with-a-prompt-as-input)
|
|
268
|
+
- [Example prompts](../docs/getting-started.md#example-prompts)
|
|
269
|
+
- [Custom prompts](../docs/prompts.md)
|
|
270
|
+
- [Memory with AGENTS.md](../docs/getting-started.md#memory-with-agentsmd)
|
|
271
|
+
- [**Configuration**](../docs/config.md)
|
|
272
|
+
- [Example config](../docs/example-config.md)
|
|
273
|
+
- [**Sandbox & approvals**](../docs/sandbox.md)
|
|
274
|
+
- [**Execpolicy quickstart**](../docs/execpolicy.md)
|
|
275
|
+
- [**Authentication**](../docs/authentication.md)
|
|
276
|
+
- [Auth methods](../docs/authentication.md#forcing-a-specific-auth-method-advanced)
|
|
277
|
+
- [Login on a "Headless" machine](../docs/authentication.md#connecting-on-a-headless-machine)
|
|
236
278
|
- **Automating Codex**
|
|
237
279
|
- [GitHub Action](https://github.com/openai/codex-action)
|
|
238
|
-
- [TypeScript SDK](
|
|
239
|
-
- [Non-interactive mode (`codex exec`)](
|
|
240
|
-
- [**Skills**](
|
|
241
|
-
- [**Installing & building**](
|
|
242
|
-
- [System Requirements](
|
|
243
|
-
- [DotSlash](
|
|
244
|
-
- [Build from source](
|
|
245
|
-
- [**Contributing**](
|
|
246
|
-
- [**Open source fund**](
|
|
280
|
+
- [TypeScript SDK](../sdk/typescript/README.md)
|
|
281
|
+
- [Non-interactive mode (`codex exec`)](../docs/exec.md)
|
|
282
|
+
- [**Skills**](../docs/skills.md)
|
|
283
|
+
- [**Installing & building**](../docs/install.md)
|
|
284
|
+
- [System Requirements](../docs/install.md#system-requirements)
|
|
285
|
+
- [DotSlash](../docs/install.md#dotslash)
|
|
286
|
+
- [Build from source](../docs/install.md#build-from-source)
|
|
287
|
+
- [**Contributing**](../docs/contributing.md)
|
|
288
|
+
- [**Open source fund**](../docs/open-source-fund.md)
|
|
289
|
+
|
|
290
|
+
</details>
|
|
247
291
|
|
|
248
292
|
---
|
|
249
293
|
|
|
250
294
|
## 🔨 Building from Source
|
|
251
295
|
|
|
252
|
-
See [BUILDING.md](
|
|
296
|
+
See [BUILDING.md](../BUILDING.md) for compilation instructions.
|
|
253
297
|
|
|
254
298
|
---
|
|
255
299
|
|
|
@@ -277,7 +321,7 @@ This project maintains full compliance with the Apache 2.0 license from OpenAI C
|
|
|
277
321
|
**Original work**: Copyright OpenAI (https://github.com/openai/codex)
|
|
278
322
|
**Termux port**: Minimal patches for Android compatibility
|
|
279
323
|
|
|
280
|
-
See [LICENSE](
|
|
324
|
+
See [LICENSE](../LICENSE) file for details.
|
|
281
325
|
|
|
282
326
|
---
|
|
283
327
|
|
|
@@ -289,7 +333,7 @@ See [LICENSE](./LICENSE) file for details.
|
|
|
289
333
|
|
|
290
334
|
---
|
|
291
335
|
|
|
292
|
-
**Version**: Based on OpenAI Codex main (post rust-v0.
|
|
336
|
+
**Version**: Based on OpenAI Codex main (post rust-v0.78.0) with Termux compatibility patches
|
|
293
337
|
**Platform**: Android Termux ARM64
|
|
294
338
|
**Maintained**: Community-driven, not affiliated with OpenAI
|
|
295
339
|
|
|
@@ -297,69 +341,10 @@ See [LICENSE](./LICENSE) file for details.
|
|
|
297
341
|
|
|
298
342
|
## 📜 Changelog
|
|
299
343
|
|
|
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.
|
|
344
|
+
Upstream Codex releases: https://github.com/openai/codex/releases
|
|
345
|
+
|
|
346
|
+
Termux-specific changes: see [CHANGELOG.md](../CHANGELOG.md).
|
|
362
347
|
|
|
363
348
|
---
|
|
364
349
|
|
|
365
|
-
**Testing**: Comprehensive test suite v1.2 with 82 tests (incl. Termux + Package) in [`CODEX_TEST_SUITE.md`](
|
|
350
|
+
**Testing**: Comprehensive test suite v1.2 with 82 tests (incl. Termux + Package) in [`CODEX_TEST_SUITE.md`](../CODEX_TEST_SUITE.md)
|
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.78.0-termux",
|
|
4
|
+
"description": "OpenAI Codex CLI (upstream main, post rust-v0.78.0) packaged as 0.78.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": {
|