@mmmbuto/codex-cli-termux 0.71.0-termux โ 0.73.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 +66 -42
- package/bin/codex +0 -0
- package/bin/codex.js +6 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -65,9 +65,6 @@ npm --version # v6+
|
|
|
65
65
|
|
|
66
66
|
## ๐ฆ Installation
|
|
67
67
|
|
|
68
|
-
> [!WARNING]
|
|
69
|
-
> **Deprecated versions:** Versions prior to v0.57.0-termux are no longer maintained. Please upgrade to the latest release.
|
|
70
|
-
|
|
71
68
|
### Via npm (Recommended)
|
|
72
69
|
|
|
73
70
|
```bash
|
|
@@ -78,7 +75,7 @@ npm install -g @mmmbuto/codex-cli-termux
|
|
|
78
75
|
|
|
79
76
|
```bash
|
|
80
77
|
codex --version
|
|
81
|
-
# Output: codex-cli 0.
|
|
78
|
+
# Output: codex-cli 0.73.0
|
|
82
79
|
|
|
83
80
|
codex login
|
|
84
81
|
# Opens browser for authentication
|
|
@@ -88,6 +85,7 @@ codex login
|
|
|
88
85
|
- npm: https://www.npmjs.com/package/@mmmbuto/codex-cli-termux
|
|
89
86
|
- Releases: https://github.com/DioNanos/codex-termux/releases
|
|
90
87
|
- Upstream: https://github.com/openai/codex
|
|
88
|
+
- Web UI: [NexusCLI](https://github.com/DioNanos/nexuscli) - Optional web interface for Codex/Claude/Gemini
|
|
91
89
|
|
|
92
90
|
---
|
|
93
91
|
|
|
@@ -113,6 +111,9 @@ For full documentation, see [OpenAI Codex docs](https://github.com/openai/codex)
|
|
|
113
111
|
The `codex` binary is a multitool that includes the `exec` subcommand for automation and scripting:
|
|
114
112
|
|
|
115
113
|
```bash
|
|
114
|
+
# Enable web search tool
|
|
115
|
+
codex --search
|
|
116
|
+
|
|
116
117
|
# Run non-interactively with JSON output
|
|
117
118
|
codex exec --json "list files in current directory"
|
|
118
119
|
|
|
@@ -132,38 +133,9 @@ codex exec --json -o output.json "describe this project"
|
|
|
132
133
|
- `--skip-git-repo-check` - Run outside git repositories
|
|
133
134
|
- `-o, --output-last-message` - Save final response to file
|
|
134
135
|
|
|
135
|
-
### Execpolicy
|
|
136
|
-
|
|
137
|
-
Codex can enforce your own rules-based execution policy before it runs shell commands.
|
|
138
|
-
|
|
139
|
-
1. Create a policy directory: `mkdir -p ~/.codex/policy`.
|
|
140
|
-
2. Create one or more `.codexpolicy` files in that folder. Codex automatically loads every `.codexpolicy` file in there on startup.
|
|
141
|
-
3. Write `prefix_rule` entries to describe the commands you want to allow, prompt, or block:
|
|
142
|
-
|
|
143
|
-
```starlark
|
|
144
|
-
prefix_rule(
|
|
145
|
-
pattern = ["git", ["push", "fetch"]],
|
|
146
|
-
decision = "prompt", # allow | prompt | forbidden
|
|
147
|
-
match = [["git", "push", "origin", "main"]], # examples that must match
|
|
148
|
-
not_match = [["git", "status"]], # examples that must not match
|
|
149
|
-
)
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
- `pattern` is a list of shell tokens, evaluated from left to right; wrap tokens in a nested list to express alternatives (e.g., match both `push` and `fetch`).
|
|
153
|
-
- `decision` sets the severity; Codex picks the strictest decision when multiple rules match (forbidden > prompt > allow).
|
|
154
|
-
- `match` and `not_match` act as (optional) unit tests. Codex validates them when it loads your policy, so you get feedback if an example has unexpected behavior.
|
|
155
|
-
|
|
156
|
-
In this example rule, if Codex wants to run commands with the prefix `git push` or `git fetch`, it will first ask for user approval.
|
|
157
|
-
|
|
158
|
-
Use the `codex execpolicy check` subcommand to preview decisions before you save a rule (see the [`codex-execpolicy` README](./codex-rs/execpolicy/README.md) for syntax details):
|
|
159
|
-
|
|
160
|
-
```shell
|
|
161
|
-
codex execpolicy check --policy ~/.codex/policy/default.codexpolicy git push origin main
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
Pass multiple `--policy` flags to test how several files combine, and use `--pretty` for formatted JSON output. See the [`codex-rs/execpolicy` README](./codex-rs/execpolicy/README.md) for a more detailed walkthrough of the available syntax.
|
|
136
|
+
### Execpolicy
|
|
165
137
|
|
|
166
|
-
|
|
138
|
+
See the [Execpolicy quickstart](./docs/execpolicy.md) to set up rules that govern what commands Codex can execute.
|
|
167
139
|
|
|
168
140
|
## ๐งช Testing & Validation
|
|
169
141
|
|
|
@@ -174,9 +146,10 @@ This project includes a comprehensive test suite specifically designed for Termu
|
|
|
174
146
|
**Test Suite**: [`CODEX_TEST_SUITE.md`](./CODEX_TEST_SUITE.md)
|
|
175
147
|
|
|
176
148
|
**Coverage**:
|
|
177
|
-
- โ
**82 automated tests** across
|
|
149
|
+
- โ
**82 automated tests** across 13 categories
|
|
178
150
|
- โ
**10 Termux-specific tests** validating all 8 compatibility patches
|
|
179
151
|
- โ
**8 Package & Binary tests** for npm installation verification
|
|
152
|
+
- โ
**8 Merge Verification tests** for post-upstream-merge validation
|
|
180
153
|
- โ
File operations, shell execution, environment detection
|
|
181
154
|
- โ
Android permissions, library paths, package manager
|
|
182
155
|
- โ
Error handling and edge cases
|
|
@@ -213,6 +186,7 @@ Codex will automatically:
|
|
|
213
186
|
10. **Termux-Specific (10 tests)** โญ - Validates all Android patches
|
|
214
187
|
11. Cleanup (1 test)
|
|
215
188
|
12. **Package & Binary (8 tests)** โญ - Validates npm installation and binaries
|
|
189
|
+
13. **Merge Verification (8 tests)** ๐ - Validates patches after upstream merge
|
|
216
190
|
|
|
217
191
|
**Termux-Specific Tests Include**:
|
|
218
192
|
- โ
Environment paths (`$PREFIX`, `$HOME`, `$LD_LIBRARY_PATH`)
|
|
@@ -231,12 +205,12 @@ Codex will automatically:
|
|
|
231
205
|
- At least 80% overall pass rate
|
|
232
206
|
- No critical crashes
|
|
233
207
|
|
|
234
|
-
**Example Report** (v0.
|
|
208
|
+
**Example Report** (v0.73.0):
|
|
235
209
|
```
|
|
236
210
|
CODEX CLI TEST SUITE - FINAL REPORT
|
|
237
211
|
====================================
|
|
238
212
|
Platform: Android Termux ARM64 (ROG Phone 3)
|
|
239
|
-
Codex Version: 0.
|
|
213
|
+
Codex Version: 0.73.0
|
|
240
214
|
Total Tests: 49
|
|
241
215
|
โ
Passed: 49
|
|
242
216
|
โ Failed: 0
|
|
@@ -247,6 +221,35 @@ Package & Binary: 8/8 passed โ
|
|
|
247
221
|
|
|
248
222
|
VERDICT: โ
PASS
|
|
249
223
|
```
|
|
224
|
+
- [**Getting started**](./docs/getting-started.md)
|
|
225
|
+
- [CLI usage](./docs/getting-started.md#cli-usage)
|
|
226
|
+
- [Slash Commands](./docs/slash_commands.md)
|
|
227
|
+
- [Running with a prompt as input](./docs/getting-started.md#running-with-a-prompt-as-input)
|
|
228
|
+
- [Example prompts](./docs/getting-started.md#example-prompts)
|
|
229
|
+
- [Custom prompts](./docs/prompts.md)
|
|
230
|
+
- [Memory with AGENTS.md](./docs/getting-started.md#memory-with-agentsmd)
|
|
231
|
+
- [**Configuration**](./docs/config.md)
|
|
232
|
+
- [Example config](./docs/example-config.md)
|
|
233
|
+
- [**Sandbox & approvals**](./docs/sandbox.md)
|
|
234
|
+
- [**Execpolicy quickstart**](./docs/execpolicy.md)
|
|
235
|
+
- [**Authentication**](./docs/authentication.md)
|
|
236
|
+
- [Auth methods](./docs/authentication.md#forcing-a-specific-auth-method-advanced)
|
|
237
|
+
- [Login on a "Headless" machine](./docs/authentication.md#connecting-on-a-headless-machine)
|
|
238
|
+
- **Automating Codex**
|
|
239
|
+
- [GitHub Action](https://github.com/openai/codex-action)
|
|
240
|
+
- [TypeScript SDK](./sdk/typescript/README.md)
|
|
241
|
+
- [Non-interactive mode (`codex exec`)](./docs/exec.md)
|
|
242
|
+
- [**Advanced**](./docs/advanced.md)
|
|
243
|
+
- [Tracing / verbose logging](./docs/advanced.md#tracing--verbose-logging)
|
|
244
|
+
- [Model Context Protocol (MCP)](./docs/advanced.md#model-context-protocol-mcp)
|
|
245
|
+
- [**Zero data retention (ZDR)**](./docs/zdr.md)
|
|
246
|
+
- [**Contributing**](./docs/contributing.md)
|
|
247
|
+
- [**Install & build**](./docs/install.md)
|
|
248
|
+
- [System Requirements](./docs/install.md#system-requirements)
|
|
249
|
+
- [DotSlash](./docs/install.md#dotslash)
|
|
250
|
+
- [Build from source](./docs/install.md#build-from-source)
|
|
251
|
+
- [**FAQ**](./docs/faq.md)
|
|
252
|
+
- [**Open source fund**](./docs/open-source-fund.md)
|
|
250
253
|
|
|
251
254
|
---
|
|
252
255
|
|
|
@@ -292,7 +295,7 @@ See [LICENSE](./LICENSE) file for details.
|
|
|
292
295
|
|
|
293
296
|
---
|
|
294
297
|
|
|
295
|
-
**Version**: Based on OpenAI Codex 0.
|
|
298
|
+
**Version**: Based on OpenAI Codex 0.73.0 (skills manager refresh, ghost snapshots v2, wrap tweaks, OTEL tracing)
|
|
296
299
|
**Platform**: Android Termux ARM64
|
|
297
300
|
**Maintained**: Community-driven, not affiliated with OpenAI
|
|
298
301
|
|
|
@@ -300,20 +303,41 @@ See [LICENSE](./LICENSE) file for details.
|
|
|
300
303
|
|
|
301
304
|
## ๐ Changelog
|
|
302
305
|
|
|
303
|
-
### v0.
|
|
306
|
+
### v0.73.0-termux (2025-12-16) โ latest
|
|
304
307
|
**Dist-tag**: `latest`
|
|
305
308
|
|
|
309
|
+
- โฌ๏ธ Upstream bump to OpenAI Codex rust-v0.73.0 (skills manager rework, ghost snapshots v2, config ghost commits, wrap algorithm now FirstFit, OTEL tracing).
|
|
310
|
+
- ๐งญ Single entrypoint confirmed: `codex` with no args opens TUI; `codex <prompt>` routes to exec; `codex-exec` kept as alias wrapper.
|
|
311
|
+
- ๐ง Termux patches #1โ6, #8, #9 revalidated after merge (verify-patches.sh).
|
|
312
|
+
- ๐ฆ npm package bumped to 0.73.0-termux; binary rebuilt and packaged once with symlinked `codex-exec`.
|
|
313
|
+
- โ
Build: `cargo build -p codex-cli --release --locked` on Termux; npm wrapper binary updated. Install + test suite run still pending.
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
### v0.72.0-termux (2025-12-13) โ stable
|
|
317
|
+
**Dist-tag**: `stable`
|
|
318
|
+
|
|
319
|
+
- โฌ๏ธ Upstream bump to OpenAI Codex rust-v0.72.0 (OTEL tracing, config loader rewrite, notifications).
|
|
320
|
+
- ๐งญ Single entrypoint confirmed: `codex` with no args opens TUI; `codex <prompt>` routes to exec; `codex-exec` kept as alias wrapper.
|
|
321
|
+
- ๐ง Termux patches #1โ6, #8, #9 revalidated after merge (verify-patches.sh).
|
|
322
|
+
- ๐ฆ npm package bumped to 0.72.0-termux; binary packaged once with symlinked `codex-exec`.
|
|
323
|
+
- โ
Tests: build + install on Termux pending (will run in this session).
|
|
324
|
+
|
|
325
|
+
### v0.71.0-termux (2025-12-12) โ stable
|
|
326
|
+
**Dist-tag**: `stable`
|
|
327
|
+
|
|
306
328
|
- โฌ๏ธ Upstream bump to OpenAI Codex rust-v0.71.0 (gpt-5.2 models, TUI2 refinements, policy refresh).
|
|
307
329
|
- ๐ง Termux patches #1โ6, #8, #9 revalidated; release profile kept RAM-friendly (lto=false, codegen-units=16).
|
|
308
330
|
- ๐ฅ๏ธ Single entrypoint confirmed: `codex` serves both TUI and automation; `codex-exec` remains alias wrapper (JS launcher unchanged).
|
|
309
331
|
- ๐ฆ Package verification: bin includes `codex`, symlinked `codex-exec`, JS wrappers; `LD_LIBRARY_PATH` preserved; termux-open-url login path intact.
|
|
310
332
|
- โ
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.
|
|
311
333
|
|
|
312
|
-
---
|
|
313
|
-
|
|
314
334
|
### v0.64.1-termux (2025-12-03) โ stable
|
|
315
335
|
**Dist-tag**: `stable`
|
|
316
336
|
|
|
317
337
|
- Maintenance follow-up to 0.64.0: docs/test report refresh and npm package verification (codex-exec symlink + bin entries).
|
|
318
338
|
- Base upstream: rust-v0.64.0; Termux patches #1-6, #8, #9 revalidated.
|
|
319
339
|
- โ
Tests: CODEX_TEST_SUITE v1.2 โ 47/49 pass (Git optional skipped), Package & Binary 8/8 pass, Termux-Specific 10/10 pass.
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
**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/bin/codex.js
CHANGED
|
@@ -9,9 +9,10 @@ const __dirname = dirname(__filename);
|
|
|
9
9
|
|
|
10
10
|
const binaryPath = join(__dirname, 'codex');
|
|
11
11
|
|
|
12
|
-
// Default behavior:
|
|
13
|
-
//
|
|
14
|
-
//
|
|
12
|
+
// Default behavior:
|
|
13
|
+
// - `codex` (no args) starts the TUI (same as upstream).
|
|
14
|
+
// - `codex <prompt>` runs `codex exec <prompt>` for convenience.
|
|
15
|
+
// - `codex <known-subcommand|--flag>` passes args through unchanged.
|
|
15
16
|
const knownSubcommands = new Set([
|
|
16
17
|
'exec',
|
|
17
18
|
'review',
|
|
@@ -37,7 +38,8 @@ const first = args[0];
|
|
|
37
38
|
const isOption = first?.startsWith('-');
|
|
38
39
|
const isKnownSubcommand = first && knownSubcommands.has(first);
|
|
39
40
|
|
|
40
|
-
const finalArgs =
|
|
41
|
+
const finalArgs =
|
|
42
|
+
args.length === 0 ? [] : isOption || isKnownSubcommand ? args : ['exec', ...args];
|
|
41
43
|
|
|
42
44
|
const child = spawn(binaryPath, finalArgs, {
|
|
43
45
|
stdio: 'inherit',
|
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 v0.
|
|
3
|
+
"version": "0.73.0-termux",
|
|
4
|
+
"description": "OpenAI Codex CLI v0.73.0 (gpt-5.2) - Multitool with TUI + automation mode. Pre-compiled 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": {
|