Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

feat: default CLI and SDK to GPT-6 Sol xhigh (#1078)

mluck-openaib43d3dcd9646
diff --git a/docs/examples/codex-security.json b/docs/examples/codex-security.json
index 84eda53b6..5cabafb84 100644
--- a/docs/examples/codex-security.json
+++ b/docs/examples/codex-security.json
@@ -5,7 +5,7 @@
"scope": { "paths": ["sdk/typescript/src"] }
},
"codex": {
- "model": "gpt-5.6-sol",
+ "model": "gpt-6-sol",
"model_reasoning_effort": "xhigh"
},
"policy": { "fail_on_severity": "high" }
diff --git a/docs/examples/codex-security.yaml b/docs/examples/codex-security.yaml
index e7b888818..efdce14ba 100644
--- a/docs/examples/codex-security.yaml
+++ b/docs/examples/codex-security.yaml
@@ -5,7 +5,7 @@ scan:
scope:
paths: [sdk/typescript/src]
codex:
- model: gpt-5.6-sol
+ model: gpt-6-sol
model_reasoning_effort: xhigh
policy:
fail_on_severity: high
diff --git a/docs/project-configuration.md b/docs/project-configuration.md
index 6433cfdda..1d131fec6 100644
--- a/docs/project-configuration.md
+++ b/docs/project-configuration.md
@@ -43,7 +43,7 @@ scan:
paths: [src]
knowledge_base: [SECURITY.md, docs/architecture.md]
codex:
- model: gpt-5.6-sol
+ model: gpt-6-sol
model_reasoning_effort: xhigh
policy:
fail_on_severity: high
diff --git a/plugins/codex-security/mcp-app/tests/test_deep_scan_executor.mjs b/plugins/codex-security/mcp-app/tests/test_deep_scan_executor.mjs
index 88bbf989b..053fefeb6 100644
--- a/plugins/codex-security/mcp-app/tests/test_deep_scan_executor.mjs
+++ b/plugins/codex-security/mcp-app/tests/test_deep_scan_executor.mjs
@@ -1172,7 +1172,7 @@ async function testWorkerRuntimeSettings() {
);
syncBuiltinESMExports();
const executor = new CodexSdkWorkerExecutor({
- model: "fixture-model",
+ model: "gpt-6-sol",
reasoningEffort: "xhigh",
parentSandbox: trustedParentSandboxWithDenials,
artifactContext: {
@@ -1225,6 +1225,7 @@ async function testWorkerRuntimeSettings() {
invocation.argv.includes('model_reasoning_effort="xhigh"'),
true,
);
+ assertFlagPair(invocation.argv, "--model", "gpt-6-sol");
assert.equal(invocation.configPath, configPath);
const preflight = JSON.parse(
await readFile(fixture.preflightMarkerPath, "utf8"),
diff --git a/sdk/typescript/README.md b/sdk/typescript/README.md
index a65414962..084f0c5b1 100644
--- a/sdk/typescript/README.md
+++ b/sdk/typescript/README.md
@@ -528,7 +528,7 @@ scan:
scope:
paths: [src]
codex:
- model: gpt-5.6-sol
+ model: gpt-6-sol
model_reasoning_effort: xhigh
policy:
fail_on_severity: high
@@ -838,7 +838,7 @@ configuration:
approval_policy = "on-request"
approvals_reviewer = "auto_review"
cli_auth_credentials_store = "auto"
-model = "gpt-5.6-sol"
+model = "gpt-6-sol"
model_reasoning_effort = "xhigh"
model_reasoning_summary = "detailed" # "none" for amazon-bedrock
show_raw_agent_reasoning = true
diff --git a/sdk/typescript/src/config.ts b/sdk/typescript/src/config.ts
index 9d28e61df..05e034322 100644
--- a/sdk/typescript/src/config.ts
+++ b/sdk/typescript/src/config.ts
@@ -55,7 +55,7 @@ export const DEFAULT_CODEX_CONFIG: Readonly<JsonObject> = {
approval_policy: "on-request",
approvals_reviewer: "auto_review",
cli_auth_credentials_store: "auto",
- model: "gpt-5.6-sol",
+ model: "gpt-6-sol",
model_reasoning_effort: "xhigh",
model_reasoning_summary: "detailed",
show_raw_agent_reasoning: true,
diff --git a/sdk/typescript/src/cost-model.ts b/sdk/typescript/src/cost-model.ts
index 3d1f22eab..a9f01736c 100644
--- a/sdk/typescript/src/cost-model.ts
+++ b/sdk/typescript/src/cost-model.ts
@@ -53,6 +53,7 @@ const MODEL_PRICING_NANODOLLARS: Readonly<Record<string, ModelPricing>> = {
// GPT-5.5 has no additional cache-write charge.
"gpt-5.5": [5_000, 500, 5_000, 30_000],
"gpt-5.5-2026-04-23": [5_000, 500, 5_000, 30_000],
+ "gpt-6-sol": [2_000, 200, 2_500, 10_000],
"gpt-6-astra": [10_000, 1_000, 12_500, 50_000],
"gpt-5.6": [4_000, 400, 5_000, 20_000],
"gpt-5.6-sol": [4_000, 400, 5_000, 20_000],
@@ -72,6 +73,7 @@ const LONG_CONTEXT_PRICING_NANODOLLARS: Readonly<Record<string, ModelPricing>> =
{
"gpt-5.5": [10_000, 1_000, 10_000, 45_000],
"gpt-5.5-2026-04-23": [10_000, 1_000, 10_000, 45_000],
+ "gpt-6-sol": [4_000, 400, 5_000, 15_000],
"gpt-6-astra": [20_000, 2_000, 25_000, 75_000],
"gpt-5.6": [8_000, 800, 10_000, 30_000],
"gpt-5.6-sol": [8_000, 800, 10_000, 30_000],
@@ -196,7 +198,7 @@ export function estimateScanCost(
source: pricingModel.startsWith("gpt-5.5")
? "https://developers.openai.com/api/docs/models/gpt-5.5"
: "https://developers.openai.com/api/docs/pricing",
- asOf: "2026-09-14",
+ asOf: pricingModel === "gpt-6-sol" ? "2026-09-28" : "2026-09-14",
serviceTier: "standard",
context: "short",
usdPerMillionTokens: usdPerMillionTokens(pricing),
diff --git a/sdk/typescript/tests-ts/api-policy.test.ts b/sdk/typescript/tests-ts/api-policy.test.ts
index f69bc8fdf..cdb8ae307 100644
--- a/sdk/typescript/tests-ts/api-policy.test.ts
+++ b/sdk/typescript/tests-ts/api-policy.test.ts
@@ -259,7 +259,7 @@ describe("CodexSecurity policy API", () => {
expect(preflight.targetPath).toBe(
join(f.repository, "component", "SECURITY.md"),
);
- expect(preflight.model).toBe("gpt-5.6-sol");
+ expect(preflight.model).toBe("gpt-6-sol");
expect(prepared).toBe(false);
expect(await readdir(f.outputDir)).toEqual([]);
await f.security.close();
@@ -1187,7 +1187,10 @@ describe("CodexSecurity policy API", () => {
});
test("uses the shared runtime for three fresh, scoped, structured turns", async () => {
- const f = await setup({ surface: "cli" });
+ const f = await setup({
+ surface: "cli",
+ config: { codexOverrides: { model: "gpt-5.6-sol" } },
+ });
await writeFile(
join(f.repository, "SECURITY.md"),
"# Existing policy\nKeep the reporting channel.\n",
@@ -1539,7 +1542,9 @@ describe("CodexSecurity policy API", () => {
});
test("enforces one cost budget across stages and preserves completed evidence", async () => {
- const f = await setup();
+ const f = await setup({
+ config: { codexOverrides: { model: "gpt-5.6-sol" } },
+ });
await expect(
f.security.generatePolicy(f.repository, {
outputDir: f.outputDir,
diff --git a/sdk/typescript/tests-ts/api.test.ts b/sdk/typescript/tests-ts/api.test.ts
index 03ae0aad5..57c7c7c91 100644
--- a/sdk/typescript/tests-ts/api.test.ts
+++ b/sdk/typescript/tests-ts/api.test.ts
@@ -888,7 +888,7 @@ describe("CodexSecurity orchestration", () => {
source: "OPENAI_API_KEY",
verified: false,
},
- model: "gpt-5.6-sol",
+ model: "gpt-6-sol",
reasoningEffort: "xhigh",
});
await expect(
@@ -998,7 +998,7 @@ describe("CodexSecurity orchestration", () => {
await expect(
client.preflight(repository, { maxCostUsd: 5 }),
- ).resolves.toMatchObject({ model: "gpt-5.6-sol", maxCostUsd: 5 });
+ ).resolves.toMatchObject({ model: "gpt-6-sol", maxCostUsd: 5 });
for (const maxCostUsd of [0, -1, Number.NaN, Number.POSITIVE_INFINITY]) {
await expect(
client.preflight(repository, { maxCostUsd }),
@@ -4543,7 +4543,7 @@ describe("CodexSecurity orchestration", () => {
let starts = 0;
let budgetSignal: AbortSignal | undefined;
const client = new TestClient(
- {},
+ { codexOverrides: { model: "gpt-5.6-sol" } },
{
environment: {},
prepareRuntime: async () => preparedRuntime(codexHome),
@@ -4663,7 +4663,7 @@ describe("CodexSecurity orchestration", () => {
let reportedLimit: number | undefined;
let budgetSignal: AbortSignal | undefined;
const client = new TestClient(
- {},
+ { codexOverrides: { model: "gpt-5.6-sol" } },
{
environment: {},
prepareRuntime: async () => preparedRuntime(codexHome),
@@ -4801,7 +4801,7 @@ describe("CodexSecurity orchestration", () => {
output_tokens: 30,
})!;
const client = new TestClient(
- {},
+ { codexOverrides: { model: "gpt-5.6-sol" } },
{
environment: {},
prepareRuntime: async () => preparedRuntime(codexHome),
@@ -4934,7 +4934,7 @@ describe("CodexSecurity orchestration", () => {
const warnings: string[] = [];
let turns = 0;
const client = new TestClient(
- {},
+ { codexOverrides: { model: "gpt-5.6-sol" } },
{
environment: {},
prepareRuntime: async () => preparedRuntime(codexHome),
diff --git a/sdk/typescript/tests-ts/cli-fixtures.ts b/sdk/typescript/tests-ts/cli-fixtures.ts
index 185bd26f9..f2a617b63 100644
--- a/sdk/typescript/tests-ts/cli-fixtures.ts
+++ b/sdk/typescript/tests-ts/cli-fixtures.ts
@@ -98,7 +98,7 @@ export function fakePreflight(
mode: "standard",
outputDir: null,
authentication: { method: "stored_credentials", verified: false },
- model: "gpt-5.6-sol",
+ model: "gpt-6-sol",
reasoningEffort: "xhigh",
};
}
diff --git a/sdk/typescript/tests-ts/cli-skills.test.ts b/sdk/typescript/tests-ts/cli-skills.test.ts
index 45e3e59b8..70d0267a4 100644
--- a/sdk/typescript/tests-ts/cli-skills.test.ts
+++ b/sdk/typescript/tests-ts/cli-skills.test.ts
@@ -91,7 +91,7 @@ describe("CLI skill commands", () => {
? []
: ["--ephemeral", "--color", "never", "--json"]),
"--config",
- 'model="gpt-5.6-sol"',
+ 'model="gpt-6-sol"',
"--config",
'model_reasoning_effort="xhigh"',
"--config",
diff --git a/sdk/typescript/tests-ts/cli.test.ts b/sdk/typescript/tests-ts/cli.test.ts
index d1ee568d7..239ef7109 100644
--- a/sdk/typescript/tests-ts/cli.test.ts
+++ b/sdk/typescript/tests-ts/cli.test.ts
@@ -1135,7 +1135,7 @@ describe("CLI", () => {
cliVersion: VERSION,
codexVersion: CODEX_EXECUTABLE_VERSION,
codexSdkVersion: CODEX_SDK_VERSION,
- model: "gpt-5.6-sol",
+ model: "gpt-6-sol",
reasoningEffort: "xhigh",
nextStep: "codex-security scan . --dry-run",
});
@@ -1541,7 +1541,7 @@ describe("CLI", () => {
),
).toBe(0);
expect(JSON.parse(stdout.text())).toEqual({
- model: "gpt-5.6-sol",
+ model: "gpt-6-sol",
reasoningEffort: "xhigh",
nextStep: "codex-security scan . --dry-run",
});
@@ -3517,7 +3517,7 @@ describe("CLI", () => {
).toBe(0);
expect(JSON.parse(stdout.text())).toEqual({ dryRun: true, ...preflight });
expect(stderr.text()).toContain(
- 'codex-security: debug: scan.preflight.completed model="gpt-5.6-sol" reasoning_effort="xhigh" method="api_key" source="OPENAI_API_KEY" verified=false',
+ 'codex-security: debug: scan.preflight.completed model="gpt-6-sol" reasoning_effort="xhigh" method="api_key" source="OPENAI_API_KEY" verified=false',
);
expect(stderr.text()).not.toContain("codex-security: debug: scan.started");
expect(stderr.text()).not.toContain("SYNTHETIC_DRY_RUN_SECRET");
diff --git a/sdk/typescript/tests-ts/config.test.ts b/sdk/typescript/tests-ts/config.test.ts
index b8194c636..fe332c683 100644
--- a/sdk/typescript/tests-ts/config.test.ts
+++ b/sdk/typescript/tests-ts/config.test.ts
@@ -351,7 +351,7 @@ describe("Codex configuration", () => {
},
});
expect(merged["agents"]).toBeUndefined();
- expect(merged["model"]).toBe("gpt-5.6-sol");
+ expect(merged["model"]).toBe("gpt-6-sol");
expect(merged["model_reasoning_effort"]).toBe("high");
expect(merged["model_reasoning_summary"]).toBe("concise");
expect(merged["show_raw_agent_reasoning"]).toBe(false);
@@ -789,7 +789,7 @@ describe("Codex configuration", () => {
},
});
expect(await mergedCodexConfig({})).toMatchObject({
- model: "gpt-5.6-sol",
+ model: "gpt-6-sol",
model_reasoning_effort: "xhigh",
model_reasoning_summary: "detailed",
show_raw_agent_reasoning: true,
diff --git a/sdk/typescript/tests-ts/cost-context.test.ts b/sdk/typescript/tests-ts/cost-context.test.ts
index dfdd69277..107783abb 100644
--- a/sdk/typescript/tests-ts/cost-context.test.ts
+++ b/sdk/typescript/tests-ts/cost-context.test.ts
@@ -9,6 +9,7 @@ import {
test.each([
["gpt-5.5", [5, 0.5, 5, 30], [10, 1, 10, 45]],
["gpt-5.5-2026-04-23", [5, 0.5, 5, 30], [10, 1, 10, 45]],
+ ["gpt-6-sol", [2, 0.2, 2.5, 10], [4, 0.4, 5, 15]],
["gpt-6-astra", [10, 1, 12.5, 50], [20, 2, 25, 75]],
["gpt-5.6", [4, 0.4, 5, 20], [8, 0.8, 10, 30]],
["gpt-5.6-sol", [4, 0.4, 5, 20], [8, 0.8, 10, 30]],