@codexapi/codexclaude 2.0.29 → 2.0.31
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/CUSTOMIZATIONS.md +7 -7
- package/README.md +7 -7
- package/bin/codexclaude.js +20 -19
- package/codexclaude.md +37 -24
- package/package.json +3 -3
package/CUSTOMIZATIONS.md
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
## Runtime
|
|
6
6
|
|
|
7
7
|
- Customer-facing app name: `MagnetAPI.org Codex CLI`
|
|
8
|
-
- Local launcher version: `2.0.
|
|
9
|
-
- Bundled official runtime dependency: `@openai/codex@0.
|
|
8
|
+
- Local launcher version: `2.0.31`
|
|
9
|
+
- Bundled official runtime dependency: `@openai/codex@0.146.0`
|
|
10
10
|
- Required install command: `npm install -g @codexapi/codexclaude@latest`
|
|
11
|
-
- Hosted fallback: `npm install -g https://codexapi.pro/downloads/codexapi-codexclaude-2.0.
|
|
11
|
+
- Hosted fallback: `npm install -g https://codexapi.pro/downloads/codexapi-codexclaude-2.0.31.tgz`
|
|
12
12
|
- Bundled runtime version is managed internally and must not be used for customer update prompts.
|
|
13
13
|
- Launcher update checks may call the CodexAPI.pro version endpoint and `@codexapi/codexclaude` npm metadata only.
|
|
14
14
|
- The launcher must never check `@openai/codex` npm metadata or OpenAI GitHub releases for update notices.
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
- Passes unknown commands directly to the bundled runtime after config is applied.
|
|
26
26
|
- Provides `codexclaude changelog` using the managed version endpoint.
|
|
27
27
|
- Does not expose separate `codexclaude status` or `codexclaude usage` commands; wallet information remains a compact pre-launch line.
|
|
28
|
-
- Version `2.0.
|
|
28
|
+
- Version `2.0.31` is forced by the backend minimum version and older clients must show an update-required message.
|
|
29
29
|
- Mandatory updates present `Upgrade Now` in an interactive terminal, invoke npm with an argument array and no shell interpolation, then relaunch the requested action automatically.
|
|
30
30
|
- The npm package manifest exposes only `codexclaude`, preventing npm from colliding with a native `codex` or `claude` command before postinstall runs.
|
|
31
31
|
- Global installation creates optional `codex` and `claude` aliases only when no existing command is present in the npm prefix or anywhere on `PATH`; native clients must never be overwritten.
|
|
@@ -45,7 +45,7 @@ The launcher writes a model provider named `codexapi`:
|
|
|
45
45
|
|
|
46
46
|
## Runtime Defaults
|
|
47
47
|
|
|
48
|
-
- Default model: `
|
|
48
|
+
- Default model: `claude-opus-5` displayed as `Opus 5`
|
|
49
49
|
- Supported launcher choices: `gpt-5.6`, `gpt-5.6-sol-max`, `gpt-5.6-sol-ultra`, `gpt-5.6-sol`, `gpt-5.5`, `claude-opus-5`, `claude-opus-4-8`, `claude-sonnet-5`, `claude-fable-5`, and `gpt-5.6-terra`
|
|
50
50
|
- Default reasoning effort displayed locally: `xhigh`; SOL Max and SOL Ultra retain their explicit premium labels.
|
|
51
51
|
- Reasoning hint sent in launcher env: model-specific
|
|
@@ -65,7 +65,7 @@ Before launching the runtime, the launcher calls `/api/v1/wallet/status`, then `
|
|
|
65
65
|
Expected status line:
|
|
66
66
|
|
|
67
67
|
```text
|
|
68
|
-
MagnetAPI.org Codex CLI v2.0.
|
|
68
|
+
MagnetAPI.org Codex CLI v2.0.31 · Opus 5 xhigh · ~/project · Wallet $20.00
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
## Upgrade Checklist
|
|
@@ -76,7 +76,7 @@ When updating the bundled runtime:
|
|
|
76
76
|
2. Update `@openai/codex` in `package.json` and `package-lock.json`.
|
|
77
77
|
3. Bump the launcher package version.
|
|
78
78
|
4. Keep `APP_DISPLAY_NAME = "MagnetAPI.org Codex CLI"`.
|
|
79
|
-
5. Keep `DEFAULT_MODEL_ID = "
|
|
79
|
+
5. Keep `DEFAULT_MODEL_ID = "claude-opus-5"` unless product explicitly changes the first-run default.
|
|
80
80
|
6. Keep `reasoningEffortForModel()` and model-specific visible reasoning.
|
|
81
81
|
7. Keep Full Access defaults: `approval_policy = "never"` and `sandbox_mode = "danger-full-access"`.
|
|
82
82
|
8. Keep `check_for_update_on_startup = false`.
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# codexclaude
|
|
2
2
|
|
|
3
|
-
`codexclaude` installs the MagnetAPI.org Codex CLI for customers who want one coding CLI that can use
|
|
3
|
+
`codexclaude` installs the MagnetAPI.org Codex CLI for customers who want one coding CLI that can use GPT-5.6, GPT-5.6 Terra, GPT-5.6 SOL, GPT-5.6 SOL Max, GPT-5.6 SOL Ultra, ChatGPT-5.5, Opus 5, Opus 4.8, Sonnet 5, or Fable 5 against the same Token Wallet.
|
|
4
4
|
|
|
5
|
-
Version `2.0.
|
|
5
|
+
Version `2.0.31` bundles the official Codex runtime dependency `@openai/codex@0.146.0` and makes Opus 5 with visible `xhigh` reasoning the default for new or invalid configurations. Existing valid model selections remain unchanged. It preserves the collision-safe updater, platform-native runtime launch, managed account and wallet integration, Full Access defaults, upstream update suppression, and complete model metadata.
|
|
6
6
|
|
|
7
7
|
## Install Or Update
|
|
8
8
|
|
|
@@ -16,7 +16,7 @@ This does not delete local session history. The update replaces the `codexclaude
|
|
|
16
16
|
|
|
17
17
|
The launcher checks CodexAPI.pro's managed version endpoint and the `@codexapi/codexclaude` npm package metadata only. It must never check `@openai/codex` npm metadata or OpenAI GitHub releases for customer update prompts.
|
|
18
18
|
|
|
19
|
-
Version `2.0.
|
|
19
|
+
Version `2.0.31` is enforced as the minimum supported version. A compatible older launcher presents `Upgrade Now`; selecting it installs `@codexapi/codexclaude@latest` and relaunches the requested action automatically. Non-interactive terminals print the same npm command instead of hanging for input.
|
|
20
20
|
|
|
21
21
|
## First Login
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ Version `2.0.29` is enforced as the minimum supported version. A compatible olde
|
|
|
24
24
|
codexclaude login
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
Enter the Dashboard Username or Email Address and password. The launcher can log in to CodexAPI.pro, ChatPlus.chat, MyAPI.world, or MagnetAPI.org, then saves the correct System Token locally, writes `~/.codex/config.toml`, sets Full Access defaults, and lets the customer choose the coding model. If the customer presses Enter at the model prompt,
|
|
27
|
+
Enter the Dashboard Username or Email Address and password. The launcher can log in to CodexAPI.pro, ChatPlus.chat, MyAPI.world, or MagnetAPI.org, then saves the correct System Token locally, writes `~/.codex/config.toml`, sets Full Access defaults, and lets the customer choose the coding model. If the customer presses Enter at the model prompt, Opus 5 with xhigh reasoning is selected by default.
|
|
28
28
|
|
|
29
29
|
## Start Coding
|
|
30
30
|
|
|
@@ -44,7 +44,7 @@ Switch model:
|
|
|
44
44
|
codexclaude model
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
Available model labels are `
|
|
47
|
+
Available model labels are `GPT-5.6`, `GPT-5.6 SOL Max`, `GPT-5.6 SOL Ultra`, `GPT-5.6 SOL`, `ChatGPT-5.5`, `Opus 5`, `Opus 4.8`, `Sonnet 5`, `Fable 5`, and `GPT-5.6 Terra`. All models use a Responses-compatible endpoint and the same customer Token Wallet.
|
|
48
48
|
|
|
49
49
|
## Launch Commands
|
|
50
50
|
|
|
@@ -67,13 +67,13 @@ codexclaude changelog
|
|
|
67
67
|
Before launching the coding runtime, the app prints a compact status line like:
|
|
68
68
|
|
|
69
69
|
```text
|
|
70
|
-
MagnetAPI.org Codex CLI v2.0.
|
|
70
|
+
MagnetAPI.org Codex CLI v2.0.31 · Opus 5 xhigh · ~/project · Wallet $20.00
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
## Preserved Customizations
|
|
74
74
|
|
|
75
75
|
- Dashboard Username or Email Address plus password login for CodexAPI.pro, ChatPlus.chat, MyAPI.world, and MagnetAPI.org.
|
|
76
|
-
-
|
|
76
|
+
- Opus 5, GPT-5.6, GPT-5.6 Terra, GPT-5.6 SOL Max, GPT-5.6 SOL Ultra, GPT-5.6 SOL, ChatGPT-5.5, Opus 4.8, Sonnet 5, or Fable 5 model selection, with Opus 5/xhigh as the default.
|
|
77
77
|
- Service-specific Responses-compatible provider for the dashboard account that logged in.
|
|
78
78
|
- Full Access defaults: approval policy `never` and sandbox mode `danger-full-access`.
|
|
79
79
|
- Model-specific visible reasoning in the local UI while the API server keeps upstream runtime effort server-managed.
|
package/bin/codexclaude.js
CHANGED
|
@@ -12,10 +12,10 @@ import { installSafeCommandAliases } from "../scripts/install-safe-aliases.js";
|
|
|
12
12
|
|
|
13
13
|
const require = createRequire(import.meta.url);
|
|
14
14
|
|
|
15
|
-
const APP_VERSION = "2.0.
|
|
16
|
-
const CODEX_VERSION = "0.
|
|
15
|
+
const APP_VERSION = "2.0.31";
|
|
16
|
+
const CODEX_VERSION = "0.146.0";
|
|
17
17
|
const APP_DISPLAY_NAME = "MagnetAPI.org Codex CLI";
|
|
18
|
-
const DEFAULT_MODEL_ID = "
|
|
18
|
+
const DEFAULT_MODEL_ID = "claude-opus-5";
|
|
19
19
|
const DEFAULT_DISPLAY_REASONING_EFFORT = "xhigh";
|
|
20
20
|
const DEFAULT_SERVER_REASONING_EFFORT = "xhigh";
|
|
21
21
|
const API_ORIGIN = (process.env.CODEXCLAUDE_API_ORIGIN || "https://codexapi.pro").replace(/\/+$/, "");
|
|
@@ -77,39 +77,39 @@ const SUPPORTED_REASONING_LEVELS = [
|
|
|
77
77
|
];
|
|
78
78
|
|
|
79
79
|
const MODELS = {
|
|
80
|
+
"claude-opus-5": {
|
|
81
|
+
id: "claude-opus-5",
|
|
82
|
+
label: "Opus 5",
|
|
83
|
+
aliases: ["1", "opus", "opus-5", "claude", "claude-opus-5"],
|
|
84
|
+
},
|
|
80
85
|
"gpt-5.6": {
|
|
81
86
|
id: "gpt-5.6",
|
|
82
|
-
label: "
|
|
83
|
-
aliases: ["
|
|
87
|
+
label: "GPT-5.6",
|
|
88
|
+
aliases: ["2", "gpt", "gpt-5.6", "chatgpt", "chatgpt-5.6", "gpt56"],
|
|
84
89
|
reasoningEffort: "xhigh",
|
|
85
90
|
},
|
|
86
91
|
"gpt-5.6-sol-max": {
|
|
87
92
|
id: "gpt-5.6-sol-max",
|
|
88
93
|
label: "GPT-5.6 SOL Max",
|
|
89
|
-
aliases: ["
|
|
94
|
+
aliases: ["3", "gpt-5.6-sol-max", "gpt-5.6-max", "gpt56-max", "sol-max", "max"],
|
|
90
95
|
reasoningEffort: "max",
|
|
91
96
|
},
|
|
92
97
|
"gpt-5.6-sol-ultra": {
|
|
93
98
|
id: "gpt-5.6-sol-ultra",
|
|
94
99
|
label: "GPT-5.6 SOL Ultra",
|
|
95
|
-
aliases: ["
|
|
100
|
+
aliases: ["4", "gpt-5.6-sol-ultra", "gpt-5.6-ultra", "gpt56-ultra", "sol-ultra", "ultra"],
|
|
96
101
|
reasoningEffort: "ultra",
|
|
97
102
|
},
|
|
98
103
|
"gpt-5.6-sol": {
|
|
99
104
|
id: "gpt-5.6-sol",
|
|
100
105
|
label: "GPT-5.6 SOL",
|
|
101
|
-
aliases: ["
|
|
106
|
+
aliases: ["5", "gpt-5.6-sol", "sol"],
|
|
102
107
|
reasoningEffort: "xhigh",
|
|
103
108
|
},
|
|
104
109
|
"gpt-5.5": {
|
|
105
110
|
id: "gpt-5.5",
|
|
106
111
|
label: "ChatGPT-5.5",
|
|
107
|
-
aliases: ["
|
|
108
|
-
},
|
|
109
|
-
"claude-opus-5": {
|
|
110
|
-
id: "claude-opus-5",
|
|
111
|
-
label: "Opus 5",
|
|
112
|
-
aliases: ["6", "opus", "opus-5", "claude", "claude-opus-5"],
|
|
112
|
+
aliases: ["6", "gpt-5.5", "chatgpt-5.5"],
|
|
113
113
|
},
|
|
114
114
|
"claude-opus-4-8": {
|
|
115
115
|
id: "claude-opus-4-8",
|
|
@@ -191,7 +191,7 @@ ${APP_DISPLAY_NAME} v${APP_VERSION}
|
|
|
191
191
|
|
|
192
192
|
Commands:
|
|
193
193
|
codexclaude login Login with dashboard username/email and password
|
|
194
|
-
codexclaude model Select
|
|
194
|
+
codexclaude model Select Opus 5, GPT-5.6, Terra, SOL modes, Opus 4.8, Sonnet 5, or Fable 5
|
|
195
195
|
codexclaude changelog Show the latest CodexAPI.pro launcher changes
|
|
196
196
|
codexclaude setup Rewrite ~/.codex/config.toml with Full Access defaults
|
|
197
197
|
codexclaude start Start ${APP_DISPLAY_NAME} with --search
|
|
@@ -371,7 +371,8 @@ async function modelFlow() {
|
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
async function setupFlow() {
|
|
374
|
-
const config = requireConfig();
|
|
374
|
+
const config = normalizeConfig(requireConfig());
|
|
375
|
+
saveConfig(config);
|
|
375
376
|
writeCodexConfig(config);
|
|
376
377
|
console.log(`Configured ${CODEX_CONFIG_FILE} for ${MODELS[config.model].label} with Full Access, model-specific visible reasoning, and server-managed routing.`);
|
|
377
378
|
}
|
|
@@ -790,7 +791,7 @@ function modelCatalogEntry(model, index) {
|
|
|
790
791
|
|
|
791
792
|
function modelCatalogDescription(modelId) {
|
|
792
793
|
if (modelId === "gpt-5.6") {
|
|
793
|
-
return "
|
|
794
|
+
return "GPT-5.6 coding route with local coding tools and wallet billing.";
|
|
794
795
|
}
|
|
795
796
|
if (modelId === "gpt-5.6-sol-max") {
|
|
796
797
|
return "GPT-5.6 SOL Max premium coding route with local coding tools and wallet billing.";
|
|
@@ -1023,7 +1024,7 @@ function formatStatusLine(config, wallet, cwd) {
|
|
|
1023
1024
|
|
|
1024
1025
|
function modelStatusName(model) {
|
|
1025
1026
|
if (model === "gpt-5.6") {
|
|
1026
|
-
return "
|
|
1027
|
+
return "GPT-5.6";
|
|
1027
1028
|
}
|
|
1028
1029
|
if (model === "gpt-5.6-sol-max") {
|
|
1029
1030
|
return "gpt-5.6-sol max";
|
|
@@ -1038,7 +1039,7 @@ function modelStatusName(model) {
|
|
|
1038
1039
|
return "gpt-5.6-terra";
|
|
1039
1040
|
}
|
|
1040
1041
|
if (model === "claude-opus-5") {
|
|
1041
|
-
return "
|
|
1042
|
+
return "Opus 5";
|
|
1042
1043
|
}
|
|
1043
1044
|
if (model === "claude-opus-4-8") {
|
|
1044
1045
|
return "opus-4.8";
|
package/codexclaude.md
CHANGED
|
@@ -5,14 +5,14 @@ This file is the durable handoff for the `@codexapi/codexclaude` package in `/ro
|
|
|
5
5
|
## Current Release
|
|
6
6
|
|
|
7
7
|
- Package name: `@codexapi/codexclaude`
|
|
8
|
-
- Launcher version: `2.0.
|
|
8
|
+
- Launcher version: `2.0.31`
|
|
9
9
|
- Customer-facing app name: `MagnetAPI.org Codex CLI`
|
|
10
|
-
- Bundled runtime dependency: `@openai/codex@0.
|
|
10
|
+
- Bundled runtime dependency: `@openai/codex@0.146.0`
|
|
11
11
|
- Required install command: `npm install -g @codexapi/codexclaude@latest`
|
|
12
|
-
- Hosted fallback: `npm install -g https://codexapi.pro/downloads/codexapi-codexclaude-2.0.
|
|
13
|
-
- Backend minimum version: `2.0.
|
|
14
|
-
- Default visible model: `
|
|
15
|
-
- Default model slug: `
|
|
12
|
+
- Hosted fallback: `npm install -g https://codexapi.pro/downloads/codexapi-codexclaude-2.0.31.tgz`
|
|
13
|
+
- Backend minimum version: `2.0.31`
|
|
14
|
+
- Default visible model: `Opus 5`
|
|
15
|
+
- Default model slug: `claude-opus-5`
|
|
16
16
|
- Default visible reasoning effort: `xhigh`; premium SOL Max and SOL Ultra retain their explicit `max` and `ultra` labels.
|
|
17
17
|
- Local permissions: Full Access, implemented as `approval_policy = "never"` and `sandbox_mode = "danger-full-access"`
|
|
18
18
|
- Local launcher state: `~/.codexclaude/config.json`
|
|
@@ -25,31 +25,31 @@ This file is the durable handoff for the `@codexapi/codexclaude` package in `/ro
|
|
|
25
25
|
The launcher must present itself as:
|
|
26
26
|
|
|
27
27
|
```text
|
|
28
|
-
MagnetAPI.org Codex CLI v2.0.
|
|
28
|
+
MagnetAPI.org Codex CLI v2.0.31
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Normal pre-launch status should look like:
|
|
32
32
|
|
|
33
33
|
```text
|
|
34
|
-
MagnetAPI.org Codex CLI v2.0.
|
|
34
|
+
MagnetAPI.org Codex CLI v2.0.31 · Opus 5 xhigh · ~/project · Wallet $20.00
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Do not show OpenAI update notices, OpenAI npm install commands, OpenAI release links, or the upstream runtime version in launcher-owned output. The package still depends on the official runtime internally, but the customer update surface is ours.
|
|
38
38
|
|
|
39
39
|
The launcher command `codexclaude model` must list these customer-visible models:
|
|
40
40
|
|
|
41
|
-
- `
|
|
41
|
+
- `claude-opus-5` displayed as `Opus 5`, first and selected by default
|
|
42
|
+
- `gpt-5.6` displayed as `GPT-5.6`
|
|
42
43
|
- `gpt-5.6-sol-max` displayed as `GPT-5.6 SOL Max`
|
|
43
44
|
- `gpt-5.6-sol-ultra` displayed as `GPT-5.6 SOL Ultra`
|
|
44
45
|
- `gpt-5.6-sol` displayed as `GPT-5.6 SOL`
|
|
45
46
|
- `gpt-5.5` displayed as `ChatGPT-5.5`
|
|
46
|
-
- `claude-opus-5` displayed as `Opus 5`
|
|
47
47
|
- `claude-opus-4-8` displayed as `Opus 4.8`
|
|
48
48
|
- `claude-sonnet-5` displayed as `Sonnet 5`
|
|
49
49
|
- `claude-fable-5` displayed as `Fable 5`
|
|
50
50
|
- `gpt-5.6-terra` displayed as `GPT-5.6 Terra`
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
Opus 5 must be the default when a new config is created or a legacy config contains an unsupported model value. It is displayed with `xhigh` reasoning. A valid existing customer selection must remain unchanged across upgrades. The selected model slug must stay in `~/.codex/config.toml`; do not rewrite customer-facing model selections locally. `gpt-5.6-sol-max` and `gpt-5.6-sol-ultra` remain distinct for customer choice, usage display, and wallet billing.
|
|
53
53
|
|
|
54
54
|
## Update Policy
|
|
55
55
|
|
|
@@ -58,7 +58,7 @@ OpenWeb.Software 4.0 (Conscious Model) must be the default when a new config is
|
|
|
58
58
|
- `https://codexapi.pro/api/v1/codexclaude/version`
|
|
59
59
|
- `https://registry.npmjs.org/@codexapi%2Fcodexclaude/latest`
|
|
60
60
|
|
|
61
|
-
It must not check `@openai/codex` npm metadata, OpenAI GitHub releases, or any upstream OpenAI update endpoint. Version `2.0.
|
|
61
|
+
It must not check `@openai/codex` npm metadata, OpenAI GitHub releases, or any upstream OpenAI update endpoint. Version `2.0.31` is both the enforced minimum and current latest release. Compatible older launchers offer an interactive `Upgrade Now` action that invokes `npm install -g @codexapi/codexclaude@latest` without shell interpolation. Non-interactive terminals print the exact update command and exit instead of waiting for input. After a successful interactive update, the launcher starts the requested action again automatically.
|
|
62
62
|
|
|
63
63
|
The npm package manifest owns only `codexclaude`. This is deliberate: npm creates manifest binaries before postinstall, so claiming `codex` there causes an `EEXIST` upgrade failure on machines with native Codex CLI. During a global installation, postinstall may create optional `codex` and `claude` aliases only when neither the target npm prefix nor any directory on `PATH` already contains the command. Existing native clients are preserved and no install path requires `--force`.
|
|
64
64
|
|
|
@@ -66,12 +66,18 @@ The launcher writes `check_for_update_on_startup = false` and removes `~/.codex/
|
|
|
66
66
|
|
|
67
67
|
The optional platform-native runtime packages can still contain upstream README files and hardcoded native strings inside the binary. Launcher-owned output must say `MagnetAPI.org Codex CLI`; replacing native binary text itself requires a maintained forked native runtime build for every supported platform. Until such a fork exists, do not re-enable the upstream npm wrapper and do not present upstream update notices to customers.
|
|
68
68
|
|
|
69
|
+
## macOS Setup Contract
|
|
70
|
+
|
|
71
|
+
Customer macOS setup generators on CodexAPI.pro, ChatPlus.chat, MyAPI.world, MagnetAPI.org, and the Frankfurt VIP pages must support both Apple Silicon Homebrew at `/opt/homebrew` and Intel Homebrew at `/usr/local`. When npm or Git is missing, the generated script waits for an active `brew install`, `brew update`, or `brew upgrade` process for at most ten minutes. It then installs Node and Git independently, with three bounded attempts per missing formula.
|
|
72
|
+
|
|
73
|
+
Never work around a Homebrew lock by deleting files under `Cellar`, removing Homebrew lock files, or terminating another Homebrew process. Those actions can corrupt a customer installation. Keep the shared implementation and white-label copies aligned, and preserve the simulated lock regression in `/root/codexapi/tests/test_setup_standardization.py` whenever setup generators are changed.
|
|
74
|
+
|
|
69
75
|
## Generated Config Contract
|
|
70
76
|
|
|
71
77
|
`bin/codexclaude.js` must rewrite `~/.codex/config.toml` before every coding session. Preserve this top-level shape:
|
|
72
78
|
|
|
73
79
|
```toml
|
|
74
|
-
model = "
|
|
80
|
+
model = "claude-opus-5"
|
|
75
81
|
model_catalog_json = "<absolute path to ~/.codexclaude/model_catalog.json>"
|
|
76
82
|
preferred_auth_method = "apikey"
|
|
77
83
|
model_provider = "codexapi"
|
|
@@ -88,7 +94,7 @@ base_url = "<service Responses URL>"
|
|
|
88
94
|
experimental_bearer_token = "<customer System Token/API username>"
|
|
89
95
|
wire_api = "responses"
|
|
90
96
|
supports_websockets = false
|
|
91
|
-
http_headers = { "X-CodexAPI-Client" = "codexclaude", "X-CodexAPI-Client-Version" = "2.0.
|
|
97
|
+
http_headers = { "X-CodexAPI-Client" = "codexclaude", "X-CodexAPI-Client-Version" = "2.0.31", "X-CodexAPI-Selected-Model" = "<selected model>" }
|
|
92
98
|
|
|
93
99
|
[tui]
|
|
94
100
|
status_line = ["model-with-reasoning", "fast-mode", "current-dir"]
|
|
@@ -131,7 +137,7 @@ When updating the bundled runtime dependency:
|
|
|
131
137
|
3. Bump `package.json` and `package-lock.json` to a new `@codexapi/codexclaude` version.
|
|
132
138
|
4. Update `APP_VERSION` and `CODEX_VERSION` in `bin/codexclaude.js`.
|
|
133
139
|
5. Preserve `APP_DISPLAY_NAME = "MagnetAPI.org Codex CLI"`.
|
|
134
|
-
6. Preserve `DEFAULT_MODEL_ID = "
|
|
140
|
+
6. Preserve `DEFAULT_MODEL_ID = "claude-opus-5"` unless product explicitly changes the first-run default.
|
|
135
141
|
7. Preserve `DISPLAY_REASONING_EFFORT = "xhigh"` and `SERVER_REASONING_EFFORT = "xhigh"` unless operations explicitly changes the launcher-visible contract.
|
|
136
142
|
8. Preserve Full Access defaults and the local model catalog.
|
|
137
143
|
9. Preserve direct platform-native binary launch.
|
|
@@ -160,7 +166,7 @@ tmp_home="$(mktemp -d)"
|
|
|
160
166
|
mkdir -p "$tmp_home/.codexclaude"
|
|
161
167
|
cat > "$tmp_home/.codexclaude/config.json" <<'JSON'
|
|
162
168
|
{
|
|
163
|
-
"version": "2.0.
|
|
169
|
+
"version": "2.0.31",
|
|
164
170
|
"serviceId": "codexapi",
|
|
165
171
|
"serviceLabel": "CodexAPI.pro",
|
|
166
172
|
"apiOrigin": "https://codexapi.pro",
|
|
@@ -175,7 +181,7 @@ HOME="$tmp_home" CODEXCLAUDE_DISABLE_UPDATE_CHECK=1 CODEXCLAUDE_QUIET_STATUS=1 n
|
|
|
175
181
|
|
|
176
182
|
Verify the generated config contains:
|
|
177
183
|
|
|
178
|
-
- `model = "
|
|
184
|
+
- `model = "claude-opus-5"`
|
|
179
185
|
- `model_reasoning_effort = "xhigh"`
|
|
180
186
|
- `check_for_update_on_startup = false`
|
|
181
187
|
- `approval_policy = "never"`
|
|
@@ -199,20 +205,27 @@ After packaging, copy the tarball to the public downloads directories, restart t
|
|
|
199
205
|
|
|
200
206
|
```bash
|
|
201
207
|
curl -fsS "https://codexapi.pro/api/v1/codexclaude/version?current=2.0.17"
|
|
202
|
-
curl -fsSI "https://codexapi.pro/downloads/codexapi-codexclaude-2.0.
|
|
208
|
+
curl -fsSI "https://codexapi.pro/downloads/codexapi-codexclaude-2.0.31.tgz"
|
|
203
209
|
```
|
|
204
210
|
|
|
205
|
-
The version endpoint must report `latestVersion = 2.0.
|
|
211
|
+
The version endpoint must report `latestVersion = 2.0.31`, `minimumVersion = 2.0.31`, and `updateRequired = true` for every older client.
|
|
212
|
+
|
|
213
|
+
## Version 2.0.31 Changes
|
|
214
|
+
|
|
215
|
+
- Updated the bundled coding runtime to `@openai/codex@0.146.0`.
|
|
216
|
+
- Made Opus 5 with visible `xhigh` reasoning the default for new and invalid configurations.
|
|
217
|
+
- Preserved valid existing model selections, Full Access, local tools, managed login, safe command aliases, and customer-only update checks.
|
|
218
|
+
- Made `2.0.31` mandatory so setup scripts and installed clients use the same runtime and model catalog.
|
|
206
219
|
|
|
207
|
-
## Version 2.0.
|
|
220
|
+
## Version 2.0.30 Changes
|
|
208
221
|
|
|
209
|
-
-
|
|
222
|
+
- Restored the standard `GPT-5.6` name in the model picker, descriptions, and compact startup status line.
|
|
210
223
|
- Preserved `gpt-5.6` as the API and local configuration slug for compatibility.
|
|
211
|
-
- Made `2.0.
|
|
224
|
+
- Made `2.0.30` mandatory so installed launchers remove the unintended replacement name consistently.
|
|
212
225
|
|
|
213
226
|
## Version 2.0.28 Changes
|
|
214
227
|
|
|
215
|
-
- Renamed the customer-visible `gpt-5.6` model to `
|
|
228
|
+
- Renamed the customer-visible `gpt-5.6` model to `GPT-5.6`.
|
|
216
229
|
- Preserved `gpt-5.6` as the API and local configuration slug for compatibility.
|
|
217
230
|
- Made `2.0.28` mandatory so installed clients receive the new display label consistently.
|
|
218
231
|
|
|
@@ -253,7 +266,7 @@ The version endpoint must report `latestVersion = 2.0.29`, `minimumVersion = 2.0
|
|
|
253
266
|
- Updated bundled runtime dependency to `@openai/codex@0.144.3`.
|
|
254
267
|
- Forced all older codexclaude clients to update by setting backend minimum version to `2.0.22`.
|
|
255
268
|
- Changed launcher-owned identity to `Magnetapi Client`.
|
|
256
|
-
- Made
|
|
269
|
+
- Made GPT-5.6 with xhigh reasoning the default customer-visible model.
|
|
257
270
|
- Added GPT-5.6 SOL Max and GPT-5.6 SOL Ultra as explicit premium model choices.
|
|
258
271
|
- Preserved xhigh as the standard visible reasoning while retaining premium Max and Ultra labels.
|
|
259
272
|
- Preserved Full Access defaults.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codexapi/codexclaude",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "MagnetAPI.org Codex CLI for
|
|
3
|
+
"version": "2.0.31",
|
|
4
|
+
"description": "MagnetAPI.org Codex CLI for GPT-5.6, Opus 5, Opus 4.8, Sonnet 5, and Fable 5.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@openai/codex": "0.
|
|
25
|
+
"@openai/codex": "0.146.0"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|