SpyBara
Go Premium

Documentation 2026-11-16 23:00 UTC to 2026-11-17 22:59 UTC

40 files changed +1,559 −314. View all changes and history on the product overview
2026
Thu 26 23:00 Wed 25 23:02 Tue 24 23:01 Mon 23 23:58 Fri 20 23:59 Thu 19 23:02 Wed 18 22:59 Tue 17 22:59 Mon 16 23:00 Sun 15 23:01 Sat 14 23:01 Fri 13 23:58 Thu 12 22:58 Wed 11 23:00 Tue 10 23:57 Mon 9 23:02 Fri 6 23:02 Thu 5 23:03 Wed 4 23:02 Tue 3 23:57 Mon 2 23:02
Details

5<CodexDocsOverviewLanding5<CodexDocsOverviewLanding

6 title="Administration"6 title="Administration"

7 description="Set access and policy boundaries for ChatGPT, Codex developer tools, APIs, plugins, and connected systems."7 description="Set access and policy boundaries for ChatGPT, Codex developer tools, APIs, plugins, and connected systems."

8 intro="Start with the rollout guide, then set up identity and access. Use Configuration for app installation, updates, and workspace policies. Use Advanced deployment for Amazon Bedrock, Bedrock in GovCloud, or an organization gateway. Browse the sections for feature controls, usage, and security."8 intro="Start with the rollout guide, then set up identity and access. Use Configuration for app installation, updates, and workspace policies. Use Advanced deployment to connect through a cloud provider or an organization gateway. Browse the sections for feature controls, usage, and security."

9 primaryCta={{9 primaryCta={{

10 label: "Start your rollout",10 label: "Start your rollout",

11 href: "/codex/enterprise/admin-setup",11 href: "/codex/enterprise/admin-setup",


219 {219 {

220 title: "Advanced deployment",220 title: "Advanced deployment",

221 description:221 description:

222 "Connect directly to Amazon Bedrock, configure Bedrock in GovCloud, or deploy an organizational gateway that routes requests to your inference provider.",222 "Configure a direct cloud connection or an organization gateway, then choose which models your users can access.",

223 pages: [223 pages: [

224 {224 {

225 title: "Amazon Bedrock",225 title: "Amazon Bedrock",


228 href: "/codex/amazon-bedrock",228 href: "/codex/amazon-bedrock",

229 icon: "storage",229 icon: "storage",

230 },230 },

231 {

232 title: "Google Cloud",

233 description:

234 "Configure Codex CLI for the Vertex AI preview using your Google Cloud project and credentials.",

235 href: "/codex/enterprise/connect-to-vertex-ai",

236 icon: "storage",

237 },

231 {238 {

232 title: "GovCloud deployment",239 title: "GovCloud deployment",

233 description:240 description:

Details

85task has ended or doesn't offer an option to resume, you can't resume from that85task has ended or doesn't offer an option to resume, you can't resume from that

86surface.86surface.

87 87 

88| Surface and data controls | Findings and resume |88| GPT-6 Astra surface and data controls | Findings and resume |

89| ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |89| ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |

90| Codex and ChatGPT Work clients with the findings and resume flow, without the data controls listed here | Review the findings before resuming. |90| Codex and ChatGPT Work clients with the findings and resume flow, without the data controls listed here | Review the findings before resuming. |

91| Codex CLI and mobile | Full findings and resume aren't available. The task ends. |91| Codex CLI and mobile | Full findings and resume aren't available. The task ends. |

Details

1# Speed1# Fast and Ultrafast modes

2 2 

3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

4 4 

5You can increase model speed in Codex in exchange for higher usage.5> Illustration: An animated starfield illustrates Ultrafast mode.

6 6 

7## Fast mode

8 7 

9Fast mode speeds up supported models, including GPT-6.1 Sol, GPT-6.1 Terra,

10GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna, where available. For GPT-5.6, the speed increase

11is 1.5x.

12 8 

13Use `/fast` in the CLI to toggle Fast mode. Use `/statusline` to show it in the9In ChatGPT Work and Codex, **Fast** and **Ultrafast** generate tokens faster

14footer. You can also persist the default with `service_tier = "fast"` plus10than **Standard** on the same model. Both use more of your plan's allowance

15`[features].fast_mode = true` in `config.toml`. Fast mode is available in the11or credits.

16ChatGPT desktop app, Codex CLI, and IDE extension when you sign in with ChatGPT.

17 12 

18For supported models, Fast mode uses included subscription limits at 2.5x the13## Choose a speed in the composer

19Standard rate. Purchased credits and Enterprise pay-as-you-go usage are billed

20at 2x the Standard rate.

21 14 

22<a id="astra-ultrafast"></a>15In ChatGPT Work on the web or in the Codex desktop app, open the model or

16effort picker at the bottom of the composer.

23 17 

24## Ultrafast mode18- If **Ultrafast** is available to you, select the lightning bolt to open the

19 speed menu, then choose a speed.

20- If your only options are **Standard** and **Fast**, selecting the lightning

21 bolt switches between them immediately.

25 22 

26<UltrafastAnimation23In the advanced picker, select **Speed**. In ChatGPT Work on mobile, open the

27 client:visible24model picker and use the speed setting.

28 title="Ultrafast"

29 label="Interactive Ultrafast starfield"

30 controls={{

31 pause: { label: "Pause animation" },

32 play: { label: "Play animation" },

33 }}

34/>

35 25 

36Ultrafast supports GPT-6 Astra and GPT-6.1 Sol.

37 26 

38GPT-6 Astra Ultrafast generates tokens up to 8x faster than GPT-6 Astra in

39Standard mode in Codex.

40 27 

41Ultrafast is available in Codex and ChatGPT Work on Pro $500 and eligible28> Illustration: GPT-6.2 Astra speed picker with Standard, Fast, and Ultrafast.

42Enterprise and Edu plans. On Pro $500, Ultrafast uses your included usage first,

43then your available credits after that allowance runs out.

44 29 

45Ultrafast mode bills purchased credits and Enterprise pay-as-you-go usage at

466x the Standard rate. Ultrafast uses included subscription limits at 8x the

47Standard rate.

48 30 

49For Enterprise workspaces, Ultrafast is off by default. Workspace owners can

50enable access for selected users or the workspace through

51[workspace permissions](https://learn.chatgpt.com/docs/enterprise/roles-and-workspace-permissions).

52Existing [per-user spend controls](https://learn.chatgpt.com/docs/enterprise/usage-limits) apply to

53eligible Ultrafast usage.

54 31 

55## Availability and billing details32## Fast mode

33 

34Fast mode supports GPT-6.2 Astra and GPT-6.2 Sol. You can also use it with

35GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna. On

36GPT-6.2 Astra and GPT-5.6, Fast generates tokens at about 1.5 times the

37speed of Standard.

38 

39With ChatGPT sign-in, you can also use Fast in the Codex CLI and IDE extension.

40See [Fast pricing](https://learn.chatgpt.com/docs/pricing?codex-pricing-speed=fast#speed-multipliers)

41for the usage rate for your model.

56 42 

57**ChatGPT Work and Codex share usage.** Both use the same43<a

58 pricing, credits, and usage limits. See [Codex pricing](https://learn.chatgpt.com/docs/pricing) for44 id="astra-ultrafast"

59 details.45 className="block scroll-mt-[var(--docs-scroll-offset)]"

46></a>

47 

48## Ultrafast mode

60 49 

61See [Models](https://learn.chatgpt.com/docs/models) for model availability and50<a

62[Pricing](https://learn.chatgpt.com/docs/pricing#token-rates) for token rates.51 id="gpt-62-speed-options"

52 className="block scroll-mt-[var(--docs-scroll-offset)]"

53></a>

54 

55On GPT-6.2 Astra and GPT-6.2 Sol, Ultrafast generates tokens at up to

564.5 times the speed of Standard on the same model. Choose Ultrafast in the

57[composer](#choose-a-speed-in-the-composer) in ChatGPT Work or the Codex app,

58or use the [Codex CLI](#codex-cli-controls).

59 

60- **Pro.** The models you can use with Ultrafast depend on your plan. See

61 [GPT-6.2 Ultrafast availability by Pro plan](https://learn.chatgpt.com/docs/whats-new/gpt-62-astra-sol).

62 On Pro $500, both models are available. Ultrafast uses your included

63 allowance first, then any available credits.

64- **Enterprise and Edu.** Both models support Ultrafast in eligible workspaces.

65 If you don't see it, ask your workspace owner to check

66 [model access and Ultrafast permissions](#ultrafast-plan-and-workspace-requirements).

67 

68ChatGPT Work and Codex share pricing, credits, and usage limits. See

69[Ultrafast pricing](https://learn.chatgpt.com/docs/pricing?codex-pricing-speed=ultrafast#speed-multipliers)

70for included usage, purchased credits, and eligible pay-as-you-go rates.

71 

72GPT-6 Astra and GPT-6.1 Sol also support Ultrafast on Pro $500 and eligible

73Enterprise and Edu plans. In Codex, GPT-6 Astra generates tokens at up to

74eight times its Standard speed with Ultrafast.

75 

76<a id="availability-and-billing-details"></a>

63 77 

64### Ultrafast plan and workspace requirements78### Ultrafast plan and workspace requirements

65 79 

66- Eligible Enterprise workspaces use credit-based or USD usage-based80Enterprise workspaces need a credit-based or USD usage-based agreement. Edu

67 agreements. Usage is billed according to the workspace's agreement.81workspaces need a credit-based plan.

68- Eligible Edu plans use credits. Legacy Enterprise plans that rely on rate82 

69 limits instead of usage-based billing aren't supported.83Workspace owners must enable [the GPT-6.2 models they want members to use](https://learn.chatgpt.com/docs/enterprise/workspace-model-availability#gpt-62-astra-and-gpt-62-sol-in-enterprise-and-edu).

84Ultrafast is a separate permission and is off by default. Owners can enable it

85for selected users or the whole workspace in

86[workspace permissions](https://learn.chatgpt.com/docs/enterprise/roles-and-workspace-permissions).

87[Per-user spend controls](https://learn.chatgpt.com/docs/enterprise/usage-limits) apply.

70 88 

71Other self-serve plans don't have access to Ultrafast at launch, even with89For GPT-6.2 Astra, GPT-6.2 Sol, and GPT-6 Astra, Ultrafast supports inference

72purchased credits.90residency only in the United States. For GPT-6.1 Sol, it also supports Europe

91(EEA and Switzerland).

73 92 

74GPT-6.1 Sol Ultrafast supports inference residency in the United States and93## Codex CLI controls

75Europe (EEA + Switzerland). GPT-6 Astra Ultrafast supports inference residency

76in the United States only.

77 94 

78### API billing95In the CLI, type `/` to see which commands are available for your model.

96Use `/fast` or `/ultrafast` to choose a speed. Repeat the active command to

97return to Standard. The CLI saves your selection. To show Fast mode in the

98footer, use `/statusline`.

79 99 

80With an API key, Codex uses API token pricing instead, and ChatGPT credit100## API billing

81multipliers don't apply.

82 101 

83For API availability, request configuration, and pricing, see102When you sign in to Codex with an API key, you pay API token rates. ChatGPT credit

84[Ultrafast mode in the API](https://developers.openai.com/api/docs/guides/ultrafast-mode).103multipliers apply only when you sign in with ChatGPT. See

104[Ultrafast mode in the API](https://developers.openai.com/api/docs/guides/ultrafast-mode) for supported

105models, request configuration, and pricing.

85 106 

86## Retirement and migration107## Retirement and migration

87 108 

88[GPT-5.5 retires](https://learn.chatgpt.com/docs/models#gpt-55-retirement) from Codex with ChatGPT109[GPT-5.5 retired from Codex](https://learn.chatgpt.com/docs/models#gpt-55-retirement) for users signed

89sign-in on October 14, 2026, at noon PDT (19:00 UTC). The OpenAI API and110in with ChatGPT on October 14, 2026, at noon PDT (19:00 UTC).

90Codex sessions authenticated with an API key aren't affected.

Details

162request a specific model or reasoning effort in your prompt,162request a specific model or reasoning effort in your prompt,

163configure `[agents]` defaults in `config.toml`, or set `model` and163configure `[agents]` defaults in `config.toml`, or set `model` and

164`model_reasoning_effort` directly in the custom agent file.164`model_reasoning_effort` directly in the custom agent file.

165For example, use `gpt-6-luna` for fast scans or a higher-effort `gpt-6.1-sol` configuration for more demanding reasoning.165For example, use `gpt-6-luna` for fast scans or increase Sol’s reasoning effort for a more demanding task.

166 166 

167For most tasks in Codex, start with 167Start with Sol for everyday tasks when your [plan and

168 `gpt-6.1-sol` when your168 client](https://learn.chatgpt.com/docs/pricing#feature-availability) support it. Otherwise, choose a

169 signed-in account or workspace has [access](https://learn.chatgpt.com/docs/models#gpt-6.1-sol).169 model from your model picker. Use `gpt-6-luna` for lighter, lower-cost work.

170 Otherwise, choose a model available to you. Use `gpt-6-luna` when you want a

171 faster, lower-cost option for lighter subagent work.

172 170 

173### Model choice171### Model choice

174 172 

175- **`gpt-6.1-sol`**: Start here for demanding agents. Use it for ambiguous, multi-step work that needs planning, tool use, validation, and follow-through across a larger context.173- **`gpt-6.2-sol`**: Use Sol for everyday agents that plan, use tools, and check their work.

176- **`gpt-6-luna`**: Use for fast, narrowly scoped agents handling clear, repeatable, or high-volume work.174- **`gpt-6-luna`**: Use for fast, narrowly scoped agents handling clear, repeatable, or high-volume work.

177 175 

178### Reasoning effort (`model_reasoning_effort`)176### Reasoning effort (`model_reasoning_effort`)

179 177 

180For GPT-6.1 Sol, use a reasoning effort supported by your client and selected178When the parent agent uses GPT-6.2 Astra or GPT-6.2 Sol, start with the same

181model. For explicit model settings, start with `high` for GPT-6 Luna or `low`179model and reasoning effort for its subagents. Raise the effort for a subtask

182for GPT-6 Astra. Adjust for the task using a level the selected model supports.180that needs deeper investigation, or lower it for a quick scan. If you select

181GPT-6 Luna explicitly, start with `high`. For GPT-6 Astra, start with `low`.

183 182 

184- **`ultra`**: Use for the deepest reasoning when the selected model supports183- **`ultra`**: Use for the deepest reasoning when the selected model supports

185 it.184 it.


420tool surface that matches that job, and instructions that keep it from419tool surface that matches that job, and instructions that keep it from

421drifting into adjacent work.420drifting into adjacent work.

422 421 

423The examples use [GPT-6.1 Sol](https://learn.chatgpt.com/docs/models#gpt-6.1-sol) where your signed-in422The reviewer and browser debugger examples use Sol in the app or CLI. For a

424account or workspace has access. If it isn't available, choose a model you can423custom agent you also run in the IDE extension, choose a `model` available in

425use.424each client, such as `gpt-6.1-sol`.

426 425 

427#### Example 1: PR review426#### Example 1: PR review

428 427 


462```toml461```toml

463name = "reviewer"462name = "reviewer"

464description = "PR reviewer focused on correctness, security, and missing tests."463description = "PR reviewer focused on correctness, security, and missing tests."

465model = "gpt-6.1-sol"464model = "gpt-6.2-sol"

466model_reasoning_effort = "medium"465model_reasoning_effort = "medium"

467developer_instructions = """466developer_instructions = """

468Review code like an owner.467Review code like an owner.


528```toml527```toml

529name = "browser_debugger"528name = "browser_debugger"

530description = "UI debugger that uses browser tooling to reproduce issues and capture evidence."529description = "UI debugger that uses browser tooling to reproduce issues and capture evidence."

531model = "gpt-6.1-sol"530model = "gpt-6.2-sol"

532model_reasoning_effort = "medium"531model_reasoning_effort = "medium"

533developer_instructions = """532developer_instructions = """

534Reproduce the issue in the browser, capture exact steps, and report what the UI actually does.533Reproduce the issue in the browser, capture exact steps, and report what the UI actually does.

app-server.md +75 −2

Details

104 104 

105Requests include `method`, `params`, and `id`.105Requests include `method`, `params`, and `id`.

106 106 

107The examples use [GPT-6.1 Sol](https://learn.chatgpt.com/docs/models#gpt-6.1-sol), which requires access107The request examples use [GPT-6.1 Sol](https://learn.chatgpt.com/docs/models#gpt-6.1-sol), which requires access

108for the signed-in account or workspace. Use [`model/list`](#list-models-modellist)108for the signed-in account or workspace. Use [`model/list`](#list-models-modellist)

109to select an available model if needed.109to select an available model if needed.

110 110 


1442. Connect a client over the selected transport, then send `initialize` followed by the `initialized` notification.1442. Connect a client over the selected transport, then send `initialize` followed by the `initialized` notification.

1453. Start a thread and a turn, then keep reading notifications from the active transport stream.1453. Start a thread and a turn, then keep reading notifications from the active transport stream.

146 146 

147Example (Node.js / TypeScript):147The following examples use the `stdio` transport:

148 

149Start an app-server conversation

148 150 

149```typescript151```typescript

150import { spawn } from "node:child_process";152import { spawn } from "node:child_process";


215});217});

216```218```

217 219 

220```ruby

221require "json"

222require "open3"

223require "tmpdir"

224 

225# Use an owned repository for this runnable example.

226Dir.mktmpdir("codex-app-server-") do |directory|

227 File.write(File.join(directory, "README.md"), "A small Ruby project with a greeting program.\n")

228 File.write(File.join(directory, "hello.rb"), 'puts "Hello, world!"' + "\n")

229 system("git", "init", "--quiet", directory, exception: true)

230 Dir.chdir(directory) do

231 Open3.popen3("codex", "app-server") do |stdin, stdout, stderr, process|

232 errors = Thread.new { IO.copy_stream(stderr, $stderr) }

233 state = {}

234 state[:failed] = false

235 state[:completed] = false

236 send_message = lambda do |message|

237 stdin.puts(JSON.generate(message))

238 stdin.flush

239 end

240 send_message.call(

241 method: "initialize", id: 0,

242 params: {

243 clientInfo: {

244 name: "my_product",

245 title: "My Product",

246 version: "0.1.0"

247 }

248 }

249 )

250 stdout.each_line do |line|

251 message = JSON.parse(line)

252 puts JSON.generate(message)

253 if message["error"]

254 warn JSON.generate(message["error"])

255 state[:failed] = true

256 break

257 elsif message["id"] == 0

258 send_message.call(method: "initialized", params: {})

259 send_message.call(method: "thread/start", id: 1, params: { model: "gpt-6.1-sol" })

260 elsif message["id"] == 1 && state[:thread_id].nil?

261 state[:thread_id] = message.fetch("result").fetch("thread").fetch("id")

262 send_message.call(

263 method: "turn/start", id: 2,

264 params: {

265 threadId: state[:thread_id],

266 input: [

267 {

268 type: "text",

269 text: "Summarize this repo."

270 }

271 ]

272 }

273 )

274 elsif message["method"] == "turn/completed"

275 state[:completed] = message.fetch("params").fetch("turn").fetch("status") == "completed"

276 state[:failed] = !state[:completed]

277 break

278 end

279 end

280 stdin.close

281 errors.join

282 status = process.value

283 raise "App-server turn did not complete" if state[:failed] || !state[:completed] || !status.success?

284 ensure

285 stdin.close unless stdin.closed?

286 end

287 end

288end

289```

290 

218 291 

219## Core primitives292## Core primitives

220 293 

app/browser.md +4 −4

Details

15 15 

16Browser is available in ChatGPT on the web and in the ChatGPT desktop app.16Browser is available in ChatGPT on the web and in the ChatGPT desktop app.

17 17 

18[GPT-6 Astra](https://learn.chatgpt.com/docs/models#gpt-6-astra) improves visual judgment for tasks such18For tasks that need visual judgment, choose [GPT-6.2 Astra](https://learn.chatgpt.com/docs/models#recommended-models)

19as checking a page against a screenshot or completing a workflow across sites.19from the model picker.

20Choose it when available in your model selector, and describe how to verify the20For example, ask ChatGPT to check a page against a screenshot and list any

21finished result.21differences.

22 22 

23For managed desktop environments, administrators can restrict browser origins,23For managed desktop environments, administrators can restrict browser origins,

24uploads, downloads, and developer access. See24uploads, downloads, and developer access. See

Details

50## When to use Computer Use50## When to use Computer Use

51 51 

52For difficult tasks that depend on screenshots or visual judgment, choose52For difficult tasks that depend on screenshots or visual judgment, choose

53[GPT-6 Astra](https://learn.chatgpt.com/docs/models#gpt-6-astra) when it is available in your model53[GPT-6.2 Astra](https://learn.chatgpt.com/docs/models#recommended-models) from the model picker. For example, ask ChatGPT to reproduce a bug in the app

54selector. The same operating-system permissions and app access controls apply.54and identify the first screen where the result differs from what you expected.

55The same operating-system permissions and app access controls apply.

55 56 

56Choose Computer Use when the task depends on a graphical user interface that's57Choose Computer Use when the task depends on a graphical user interface that's

57hard to verify through files or command output alone.58hard to verify through files or command output alone.

browser.md +4 −4

Details

15 15 

16Browser is available in ChatGPT on the web and in the ChatGPT desktop app.16Browser is available in ChatGPT on the web and in the ChatGPT desktop app.

17 17 

18[GPT-6 Astra](https://learn.chatgpt.com/docs/models#gpt-6-astra) improves visual judgment for tasks such18For tasks that need visual judgment, choose [GPT-6.2 Astra](https://learn.chatgpt.com/docs/models#recommended-models)

19as checking a page against a screenshot or completing a workflow across sites.19from the model picker.

20Choose it when available in your model selector, and describe how to verify the20For example, ask ChatGPT to check a page against a screenshot and list any

21finished result.21differences.

22 22 

23For managed desktop environments, administrators can restrict browser origins,23For managed desktop environments, administrators can restrict browser origins,

24uploads, downloads, and developer access. See24uploads, downloads, and developer access. See

codex-sdk.md +1 −1

Details

120 120 

121Start Codex, create a thread, and run a prompt. The examples use GPT-6.1 Sol,121Start Codex, create a thread, and run a prompt. The examples use GPT-6.1 Sol,

122which must be available to your signed-in account. Otherwise, omit `model` to122which must be available to your signed-in account. Otherwise, omit `model` to

123use your configured default. See [GPT-6.1 Sol availability by plan](https://learn.chatgpt.com/docs/models#gpt-6.1-sol).123use your configured default. See [model availability by plan](https://learn.chatgpt.com/docs/pricing#feature-availability).

124 124 

125```python125```python

126from openai_codex import Codex, Sandbox126from openai_codex import Codex, Sandbox

computer-use.md +3 −2

Details

50## When to use Computer Use50## When to use Computer Use

51 51 

52For difficult tasks that depend on screenshots or visual judgment, choose52For difficult tasks that depend on screenshots or visual judgment, choose

53[GPT-6 Astra](https://learn.chatgpt.com/docs/models#gpt-6-astra) when it is available in your model53[GPT-6.2 Astra](https://learn.chatgpt.com/docs/models#recommended-models) from the model picker. For example, ask ChatGPT to reproduce a bug in the app

54selector. The same operating-system permissions and app access controls apply.54and identify the first screen where the result differs from what you expected.

55The same operating-system permissions and app access controls apply.

55 56 

56Choose Computer Use when the task depends on a graphical user interface that's57Choose Computer Use when the task depends on a graphical user interface that's

57hard to verify through files or command output alone.58hard to verify through files or command output alone.

Details

162request a specific model or reasoning effort in your prompt,162request a specific model or reasoning effort in your prompt,

163configure `[agents]` defaults in `config.toml`, or set `model` and163configure `[agents]` defaults in `config.toml`, or set `model` and

164`model_reasoning_effort` directly in the custom agent file.164`model_reasoning_effort` directly in the custom agent file.

165For example, use `gpt-6-luna` for fast scans or a higher-effort `gpt-6.1-sol` configuration for more demanding reasoning.165For example, use `gpt-6-luna` for fast scans or increase Sol’s reasoning effort for a more demanding task.

166 166 

167For most tasks in Codex, start with 167Start with Sol for everyday tasks when your [plan and

168 `gpt-6.1-sol` when your168 client](https://learn.chatgpt.com/docs/pricing#feature-availability) support it. Otherwise, choose a

169 signed-in account or workspace has [access](https://learn.chatgpt.com/docs/models#gpt-6.1-sol).169 model from your model picker. Use `gpt-6-luna` for lighter, lower-cost work.

170 Otherwise, choose a model available to you. Use `gpt-6-luna` when you want a

171 faster, lower-cost option for lighter subagent work.

172 170 

173### Model choice171### Model choice

174 172 

175- **`gpt-6.1-sol`**: Start here for demanding agents. Use it for ambiguous, multi-step work that needs planning, tool use, validation, and follow-through across a larger context.173- **`gpt-6.2-sol`**: Use Sol for everyday agents that plan, use tools, and check their work.

176- **`gpt-6-luna`**: Use for fast, narrowly scoped agents handling clear, repeatable, or high-volume work.174- **`gpt-6-luna`**: Use for fast, narrowly scoped agents handling clear, repeatable, or high-volume work.

177 175 

178### Reasoning effort (`model_reasoning_effort`)176### Reasoning effort (`model_reasoning_effort`)

179 177 

180For GPT-6.1 Sol, use a reasoning effort supported by your client and selected178When the parent agent uses GPT-6.2 Astra or GPT-6.2 Sol, start with the same

181model. For explicit model settings, start with `high` for GPT-6 Luna or `low`179model and reasoning effort for its subagents. Raise the effort for a subtask

182for GPT-6 Astra. Adjust for the task using a level the selected model supports.180that needs deeper investigation, or lower it for a quick scan. If you select

181GPT-6 Luna explicitly, start with `high`. For GPT-6 Astra, start with `low`.

183 182 

184- **`ultra`**: Use for the deepest reasoning when the selected model supports183- **`ultra`**: Use for the deepest reasoning when the selected model supports

185 it.184 it.


420tool surface that matches that job, and instructions that keep it from419tool surface that matches that job, and instructions that keep it from

421drifting into adjacent work.420drifting into adjacent work.

422 421 

423The examples use [GPT-6.1 Sol](https://learn.chatgpt.com/docs/models#gpt-6.1-sol) where your signed-in422The reviewer and browser debugger examples use Sol in the app or CLI. For a

424account or workspace has access. If it isn't available, choose a model you can423custom agent you also run in the IDE extension, choose a `model` available in

425use.424each client, such as `gpt-6.1-sol`.

426 425 

427#### Example 1: PR review426#### Example 1: PR review

428 427 


462```toml461```toml

463name = "reviewer"462name = "reviewer"

464description = "PR reviewer focused on correctness, security, and missing tests."463description = "PR reviewer focused on correctness, security, and missing tests."

465model = "gpt-6.1-sol"464model = "gpt-6.2-sol"

466model_reasoning_effort = "medium"465model_reasoning_effort = "medium"

467developer_instructions = """466developer_instructions = """

468Review code like an owner.467Review code like an owner.


528```toml527```toml

529name = "browser_debugger"528name = "browser_debugger"

530description = "UI debugger that uses browser tooling to reproduce issues and capture evidence."529description = "UI debugger that uses browser tooling to reproduce issues and capture evidence."

531model = "gpt-6.1-sol"530model = "gpt-6.2-sol"

532model_reasoning_effort = "medium"531model_reasoning_effort = "medium"

533developer_instructions = """532developer_instructions = """

534Reproduce the issue in the browser, capture exact steps, and report what the UI actually does.533Reproduce the issue in the browser, capture exact steps, and report what the UI actually does.

Details

96for examples and approval tradeoffs.96for examples and approval tradeoffs.

97 97 

98Set `model` to one available to your signed-in account or workspace. See98Set `model` to one available to your signed-in account or workspace. See

99[GPT-6.1 Sol availability](https://learn.chatgpt.com/docs/models#gpt-6.1-sol) before using the example value.99[model availability by plan](https://learn.chatgpt.com/docs/pricing#feature-availability) before using the example value.

100 100 

101<ConfigTable101<ConfigTable

102 options={[102 options={[


1462 description:1462 description:

1463 "Select the OpenTelemetry metrics exporter. The default, `statsig`, follows `analytics.enabled`. Explicit OTLP exporters work independently of that setting. Set to `none` to disable metrics export.",1463 "Select the OpenTelemetry metrics exporter. The default, `statsig`, follows `analytics.enabled`. Explicit OTLP exporters work independently of that setting. Set to `none` to disable metrics export.",

1464 },1464 },

1465 {

1466 key: "otel.log_sse_deltas",

1467 type: "boolean",

1468 description:

1469 "Log successful server-sent events whose names end in `.delta`. Defaults to `true`. Set to `false` to skip those log entries. Codex still records errors, completion events, and metrics.",

1470 },

1465 {1471 {

1466 key: "otel.log_user_prompt",1472 key: "otel.log_user_prompt",

1467 type: "boolean",1473 type: "boolean",


2923 description:2929 description:

2924 "Enforce the metrics exporter. The Statsig exporter follows `analytics.enabled`. Explicit OTLP metrics exporters run independently of that setting.",2930 "Enforce the metrics exporter. The Statsig exporter follows `analytics.enabled`. Explicit OTLP metrics exporters run independently of that setting.",

2925 },2931 },

2932 {

2933 key: "otel.log_sse_deltas",

2934 type: "boolean",

2935 description:

2936 "Control whether logs include successful server-sent events whose names end in `.delta`.",

2937 },

2926 {2938 {

2927 key: "otel.log_user_prompt",2939 key: "otel.log_user_prompt",

2928 type: "boolean",2940 type: "boolean",

Details

96for examples and approval tradeoffs.96for examples and approval tradeoffs.

97 97 

98Set `model` to one available to your signed-in account or workspace. See98Set `model` to one available to your signed-in account or workspace. See

99[GPT-6.1 Sol availability](https://learn.chatgpt.com/docs/models#gpt-6.1-sol) before using the example value.99[model availability by plan](https://learn.chatgpt.com/docs/pricing#feature-availability) before using the example value.

100 100 

101<ConfigTable101<ConfigTable

102 options={[102 options={[


1462 description:1462 description:

1463 "Select the OpenTelemetry metrics exporter. The default, `statsig`, follows `analytics.enabled`. Explicit OTLP exporters work independently of that setting. Set to `none` to disable metrics export.",1463 "Select the OpenTelemetry metrics exporter. The default, `statsig`, follows `analytics.enabled`. Explicit OTLP exporters work independently of that setting. Set to `none` to disable metrics export.",

1464 },1464 },

1465 {

1466 key: "otel.log_sse_deltas",

1467 type: "boolean",

1468 description:

1469 "Log successful server-sent events whose names end in `.delta`. Defaults to `true`. Set to `false` to skip those log entries. Codex still records errors, completion events, and metrics.",

1470 },

1465 {1471 {

1466 key: "otel.log_user_prompt",1472 key: "otel.log_user_prompt",

1467 type: "boolean",1473 type: "boolean",


2923 description:2929 description:

2924 "Enforce the metrics exporter. The Statsig exporter follows `analytics.enabled`. Explicit OTLP metrics exporters run independently of that setting.",2930 "Enforce the metrics exporter. The Statsig exporter follows `analytics.enabled`. Explicit OTLP metrics exporters run independently of that setting.",

2925 },2931 },

2932 {

2933 key: "otel.log_sse_deltas",

2934 type: "boolean",

2935 description:

2936 "Control whether logs include successful server-sent events whose names end in `.delta`.",

2937 },

2926 {2938 {

2927 key: "otel.log_user_prompt",2939 key: "otel.log_user_prompt",

2928 type: "boolean",2940 type: "boolean",

Details

1# Connect Codex to Google Cloud Vertex AI

2 

3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

4 

5{"OpenAI models on Google Cloud are in "}

6 **private preview**

7 {". To use them in your project, "}

8 [{"request access"}](https://openai.com/form/openai-on-google-cloud/)

9 {"."}

10

11 

12 

13## Before you begin

14 

15Ask your administrator for the project ID, model name, and Vertex AI location to use with Codex. Your user or service account needs permission to invoke the model in that project. For help setting up billing, accepting a Marketplace private offer, and enabling the model, see the [Google Cloud prerequisites](https://developers.openai.com/api/docs/guides/google-cloud#before-you-begin).

16 

17With the default location, `global`, Google Cloud can process model requests in more than one region. If your organization requires regional processing, confirm which supported location to use with your administrator before you send a request.

18 

19## Authenticate on the Codex host

20 

21Install the Google Cloud CLI on the machine where Codex runs. For local development, run this command to sign in and set up Application Default Credentials (ADC).

22 

23```sh

24gcloud auth application-default login

25```

26 

27If your administrator has provided an ADC file, skip the interactive sign-in and use the file during setup. Codex runs `gcloud auth application-default print-access-token` to get an access token.

28 

29<a id="use-interactive-setup"></a>

30 

31## Set up Google Cloud in Codex

32 

33Use Codex CLI 0.167.0 or later, or Codex desktop app 26.1103.32239 or later.

34 

35If you’re already signed in to Codex or don’t see Google Cloud in the sign-in options, [authenticate on the Codex host](#authenticate-on-the-codex-host), then [configure the provider manually](#configure-the-provider). Start a new CLI session or desktop task and [verify a model request](#verify-a-model-request).

36 

37<Tabs

38 id="gcp-client-setup"

39 param="setup"

40 ariaLabel="Google Cloud setup by client"

41 tabs={[

42 { id: "cli", label: "CLI" },

43 { id: "desktop", label: "Desktop" },

44 ]}

45>

46

47 

48 

491. Start `codex`. Select **Sign in another way**, then **Use Google Cloud Vertex AI**.

50 

51![Codex CLI provider selection with Use Google Cloud Vertex AI selected.](https://developers.openai.com/images/codex/google-cloud/cli-provider-selection.webp)

52 

532. Enter the Google Cloud project ID from your administrator.

54 

55![Codex CLI Google Cloud setup asking for the project ID.](https://developers.openai.com/images/codex/google-cloud/cli-project-setup.webp)

56 

573. Enter the Vertex AI location, or press Enter to use `global`.

584. Enter the absolute path to your credential JSON file, or press Enter to use ADC on this computer. Codex checks that it can get a token before it saves your settings.

595. [Verify a model request](#verify-a-model-request).

60 

61

62 

63

64 

65 

661. On **Sign in another way**, select **Use Google Cloud**.

67 

68![Codex desktop provider selection with the Use Google Cloud option.](https://developers.openai.com/images/codex/google-cloud/desktop-provider-selection.webp)

69 

702. On **Set up Google Cloud**, enter the **Project ID** from your administrator.

71 

72![Codex desktop Google Cloud setup with project, location, and credential file fields.](https://developers.openai.com/images/codex/google-cloud/desktop-setup.webp)

73 

743. Enter a **Location**, or leave it blank to use `global`.

754. In **Credential file**, enter the absolute path to your credential JSON file or select **Browse…** to choose it. Leave the field blank to use ADC on this computer.

765. Select **Continue**, then [verify a model request](#verify-a-model-request).

77 

78

79 

80</Tabs>

81 

82<a id="configure-the-provider"></a>

83 

84## Configure the provider manually

85 

86In `~/.codex/config.toml`, set `model_provider` to `"gcp"` above any table headers. Set your project ID and location under `[model_providers.gcp]`.

87 

88```toml

89model_provider = "gcp"

90 

91[model_providers.gcp]

92project_id = "my-project"

93location = "global"

94```

95 

96If you use an ADC file, add `credential_file = "/absolute/path/to/credentials.json"` under `[model_providers.gcp]`. Codex sets `GOOGLE_APPLICATION_CREDENTIALS` for the authentication command.

97 

98You can omit `project_id` if you set `GOOGLE_CLOUD_PROJECT` on the Codex host. If you omit `location`, Codex uses `GOOGLE_CLOUD_LOCATION` when set and otherwise uses `global`.

99 

100## Verify a model request

101 

1021. Start a new session with `codex` and enter `/model`, or start a new task in the desktop app and open the model picker.

1032. Select a model your administrator has enabled for your project and ask it to reply with a short greeting. A reply confirms that Codex can authenticate and call that model.

104 

105If credential validation fails, check that the machine running Codex can run `gcloud` and read your credential file, if you specified one. To sign in again with local user credentials, run `gcloud auth application-default login` on that machine.

106 

107If authentication succeeds but the model request fails, check that your project ID and location match the model deployment. Ask your administrator to confirm that your user or group has access to the project and that the account running Codex can invoke the model.

Details

37 37 

38During the preview, admins in eligible ChatGPT Enterprise, Edu, and Healthcare workspaces can enable dots for selected roles. Starting November 18, 2026, members have access by default unless the workspace opts out. Each member chooses whether to create a personal dot.38During the preview, admins in eligible ChatGPT Enterprise, Edu, and Healthcare workspaces can enable dots for selected roles. Starting November 18, 2026, members have access by default unless the workspace opts out. Each member chooses whether to create a personal dot.

39 39 

40Eligible Enterprise workspaces can pay a flat rate based on the type of work a dot does or pay based on consumption. The preview is free. Billing for enabled dots begins November 18, 2026. Tasks a dot delegates to ChatGPT Work or Codex threads incur separate charges at the standard rates. See [Dots pricing in the Help Center](https://help.openai.com/en/articles/20001530-getting-started-with-your-dot).40Workspace access and billing are separate. Eligible Enterprise workspaces can pay a flat rate based on the type of work a dot does or pay based on consumption. The preview is free. Tasks a dot delegates to ChatGPT Work or Codex threads incur separate charges at the standard rates. For billing details, see [Getting started with your dot](https://help.openai.com/en/articles/20001530-getting-started-with-your-dot) in the Help Center.

41 41 

42 42 

43 43 

Details

36 36 

37Proactive research is one way dots differ from a typical user-directed ChatGPT Work task. A dot can look for useful information in permitted connected apps without waiting for a new request from its user. For example, it might review connected information for an update relevant to ongoing work.37Proactive research is one way dots differ from a typical user-directed ChatGPT Work task. A dot can look for useful information in permitted connected apps without waiting for a new request from its user. For example, it might review connected information for an update relevant to ongoing work.

38 38 

39During proactive research, a dot can read permitted information and save private notes. Its research tools can’t directly send messages to other people, change content through connected apps, or control a browser or computer. Other dot activities, such as tasks a user explicitly schedules, follow their applicable permissions and action rules.39During proactive research, a dot can read permitted information and save private notes. Its research tools can’t directly send messages to other people, change content through connected apps, or control a browser or computer. Personal dots will not perform write actions proactively without the user’s instructions. Other dot activities, such as tasks a user explicitly schedules, follow their applicable permissions and action rules.

40 40 

41We’re developing additional rules in Agent Security so admins can choose which sites a dot’s cloud browser can visit.41We’re developing additional rules in Agent Security so admins can choose which sites a dot’s cloud browser can visit.

42 42 


59## Confirm eligibility and data requirements59## Confirm eligibility and data requirements

60 60 

61| **Category** | **Eligibility and data requirements** |61| **Category** | **Eligibility and data requirements** |

62| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |62| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

63| **Data and inference residency** | Data storage residency in Australia, Canada, Europe (EEA and Switzerland), India, Japan, Singapore, South Korea, the UK, and the US is supported. UAE is not included.<br />Dots inference residency is supported for the US and Europe but not UAE. Inference residency covers model inference, not every processing step or third-party integration. |63| **Data and inference residency** | Personal dots support data storage residency in Australia, Canada, Europe (EEA and Switzerland), India, Japan, Singapore, South Korea, the United Arab Emirates (UAE), the UK, and the US. Dots created during beta in workspaces with data residency will be migrated to the workspace’s designated region within 30 days of the GA date (November 4, 2026).<br />Dots inference residency is supported for the US and Europe but not UAE. Inference calls made by dots adhere to your workspace’s inference residency setting, if any. |

64| **Enterprise Key Management (EKM)** | Enterprise Key Management (EKM) supported for eligible workspaces. Customer-managed keys protect supported customer content at rest and allow customers to rotate or revoke their keys. Identify which data your agreement requires the key to protect. |64| **Enterprise Key Management (EKM)** | Enterprise Key Management (EKM) is supported for eligible workspaces. |

65| **HIPAA** | HIPAA supported for eligible workspaces. Confirm that your business associate agreement (BAA) and configuration cover the intended workflow. |65| **HIPAA** | HIPAA supported for eligible workspaces. Confirm that your business associate agreement (BAA) and configuration cover the intended workflow. |

66| **Zero data retention** | Neither dots nor Work with local computer access provides strict zero data retention. |66| **Zero data retention** | Neither dots nor Work with local computer access provides strict zero data retention. |

67| **FedRAMP** | Dots are unavailable in FedRAMP workspaces. |67| **FedRAMP** | Dots are unavailable in FedRAMP workspaces. |

68 68 

69### EKM coverage for the dot’s cloud computer69### Data residency and EKM

70 70 

71For eligible workspaces with EKM enabled, your workspace’s customer-managed key protects saved cloud computer snapshots and saved browser cookies at rest.71Customer data at rest is stored in accordance with the workspace’s [data residency](https://help.openai.com/en/articles/9903489-data-residency-and-inference-residency-for-chatgpt) and [Enterprise Key Management (EKM)](https://help.openai.com/en/articles/20000943-openai-enterprise-key-management-ekm-overview) settings.

72 72 

73The same access controls that protect other OpenAI services handling customer data also apply to the running cloud computer.73The same access controls that protect other OpenAI services handling customer data also apply to the running cloud computer.

74 74 


254| Space files | Saved files follow the Enterprise workspace retention policy. Opening, downloading or reattaching an existing Space file [does not restart its retention period](https://help.openai.com/en/articles/20001052-using-library-to-manage-files-in-chatgpt). | The member deletes the file in Space. Compliance admins can delete it through the Space API. The file can also expire under workspace policy. | The Space file survives dot deletion. After Space deletion, permanent removal is scheduled within 30 days, with exceptions for data already de-identified and disassociated, or retained for security or legal obligations. See Backups below. |254| Space files | Saved files follow the Enterprise workspace retention policy. Opening, downloading or reattaching an existing Space file [does not restart its retention period](https://help.openai.com/en/articles/20001052-using-library-to-manage-files-in-chatgpt). | The member deletes the file in Space. Compliance admins can delete it through the Space API. The file can also expire under workspace policy. | The Space file survives dot deletion. After Space deletion, permanent removal is scheduled within 30 days, with exceptions for data already de-identified and disassociated, or retained for security or legal obligations. See Backups below. |

255| Cached files and Outputs | The dot chat can keep a separate copy of a Space file. Space’s retention and deletion controls apply to the Space copy. | Deleting the Space file, even from Trash, does not trigger deletion of the dot-chat cache. No separate self-service removal procedure is confirmed. | A file may remain listed in Outputs after the Space copy is deleted. The dot-owned cached copy is deleted within 30 days of dot deletion. A separate way to clear the listing remains unconfirmed. |255| Cached files and Outputs | The dot chat can keep a separate copy of a Space file. Space’s retention and deletion controls apply to the Space copy. | Deleting the Space file, even from Trash, does not trigger deletion of the dot-chat cache. No separate self-service removal procedure is confirmed. | A file may remain listed in Outputs after the Space copy is deleted. The dot-owned cached copy is deleted within 30 days of dot deletion. A separate way to clear the listing remains unconfirmed. |

256| Cloud computer files and browser state | The dot’s cloud disk can retain files and browser state. Snapshot expiry depends on workspace configuration. | Deleting a dot deletes its cloud browser and computer. | The dot’s cloud-computer data, disk, browser state, snapshots, and backups are deleted within 30 days of dot deletion. Copies saved elsewhere follow their destination’s policy. |256| Cloud computer files and browser state | The dot’s cloud disk can retain files and browser state. Snapshot expiry depends on workspace configuration. | Deleting a dot deletes its cloud browser and computer. | The dot’s cloud-computer data, disk, browser state, snapshots, and backups are deleted within 30 days of dot deletion. Copies saved elsewhere follow their destination’s policy. |

257| Cloud computer snapshots | For eligible workspaces with data residency, Enterprise Key Management (EKM), or both, the enabled control wipes snapshots on a five-day cycle, with a seven-day maximum. | The platform expires snapshots automatically. Deleting the dot separately starts the cloud-computer deletion process. | For workspaces without data residency or EKM, there is no maximum age for an active dot’s snapshots. They may remain for as long as the dot exists, and customers cannot currently request an early purge. Snapshots are deleted within 30 days after the dot is deleted. |257| Cloud computer snapshots | In eligible workspaces with data residency or Enterprise Key Management (EKM), snapshots are short-lived. In other workspaces, snapshots may remain for as long as the dot exists. | OpenAI automatically expires snapshots in eligible workspaces. Deleting the dot also starts deletion of its cloud computer and snapshots. | In workspaces without automatic expiry, customers can’t request an early purge. Snapshots are deleted within 30 days after the dot is deleted. |

258| Backups | Space backups have a separate documented window. Dot-owned backups are deleted within 30 days of dot deletion. | When a Space file is deleted, expires or becomes inactive, the active Compliance API stops returning it. The platform manages backup expiry. | A Space backup may remain for up to 30 additional days, or longer for security or legal obligations. Dot-owned backups are deleted within 30 days of dot deletion. |258| Backups | Space backups have a separate documented window. Dot-owned backups are deleted within 30 days of dot deletion. | When a Space file is deleted, expires or becomes inactive, the active Compliance API stops returning it. The platform manages backup expiry. | A Space backup may remain for up to 30 additional days, or longer for security or legal obligations. Dot-owned backups are deleted within 30 days of dot deletion. |

259| Delegated Work and Codex threads | Hosted [Work](https://learn.chatgpt.com/docs/enterprise/chatgpt-work-cloud-security#data-handling-and-retention) and [Codex](https://learn.chatgpt.com/docs/auth#openai-authentication) threads follow the workspace’s retention policy. [Device-only records](https://learn.chatgpt.com/docs/enterprise/chatgpt-work-local-security#data-handling-and-retention) follow local storage and backup policies. | The workspace policy governs when hosted threads expire. For Codex Cloud, see the [workspace retention guidance](https://learn.chatgpt.com/docs/auth#openai-authentication). Deleting a dot leaves its delegated Codex and Work threads intact. | When a Codex chat is deleted in the desktop app, OpenAI schedules it for permanent deletion from its systems within 30 days, subject to [published exceptions](https://help.openai.com/en/articles/20001333-archiving-and-deleting-codex-chats-in-the-chatgpt-app). Work Cloud schedules deleted chats for permanent deletion within 30 days, subject to [published exceptions](https://learn.chatgpt.com/docs/enterprise/chatgpt-work-cloud-security#data-handling-and-retention). |259| Delegated Work and Codex threads | Hosted [Work](https://learn.chatgpt.com/docs/enterprise/chatgpt-work-cloud-security#data-handling-and-retention) and [Codex](https://learn.chatgpt.com/docs/auth#openai-authentication) threads follow the workspace’s retention policy. [Device-only records](https://learn.chatgpt.com/docs/enterprise/chatgpt-work-local-security#data-handling-and-retention) follow local storage and backup policies. | The workspace policy governs when hosted threads expire. For Codex Cloud, see the [workspace retention guidance](https://learn.chatgpt.com/docs/auth#openai-authentication). Deleting a dot leaves its delegated Codex and Work threads intact. | When a Codex chat is deleted in the desktop app, OpenAI schedules it for permanent deletion from its systems within 30 days, subject to [published exceptions](https://help.openai.com/en/articles/20001333-archiving-and-deleting-codex-chats-in-the-chatgpt-app). Work Cloud schedules deleted chats for permanent deletion within 30 days, subject to [published exceptions](https://learn.chatgpt.com/docs/enterprise/chatgpt-work-cloud-security#data-handling-and-retention). |

260| Pages in Spaces | Space pages persist until someone deletes them; the workspace chat retention period does not expire them. | A page’s [creator or owner](https://help.openai.com/en/articles/20001544-chatgpt-space-sharing-data-and-controls) can move it and its subpages to Trash. Delete separately saved attachments in their own location. Members can delete their own saved Space files. Compliance admins with the [required API permissions](https://learn.chatgpt.com/docs/enterprise/chatgpt-space) can delete eligible files. | Space purges a page on permanent deletion or after 30 days in Trash. Pages trashed before the October 1 rollout require manual deletion. Deleting the page leaves separately stored attachments in place. |260| Pages in Spaces | Space pages persist until someone deletes them; the workspace chat retention period does not expire them. | A page’s [creator or owner](https://help.openai.com/en/articles/20001544-chatgpt-space-sharing-data-and-controls) can move it and its subpages to Trash. Delete separately saved attachments in their own location. Members can delete their own saved Space files. Compliance admins with the [required API permissions](https://learn.chatgpt.com/docs/enterprise/chatgpt-space) can delete eligible files. | Space purges a page on permanent deletion or after 30 days in Trash. Pages trashed before the October 1 rollout require manual deletion. Deleting the page leaves separately stored attachments in place. |

Details

1293text logged for each tool result to 256 UTF-8 bytes. It omits prompt text, final response1293text logged for each tool result to 256 UTF-8 bytes. It omits prompt text, final response

1294text, and automatic approval assessments.1294text, and automatic approval assessments.

1295 1295 

1296The macOS desktop app 26.1027.30824 bundles CLI `0.166.0-alpha.5.1`.1296The macOS desktop app 26.1111.21308 bundles CLI `0.169.0-alpha.11.1` and

1297That build doesn't support `[otel]` in `requirements.toml`, so it can't1297supports managed `[otel]` settings. Set `otel.log_sse_deltas` to `false` to

1298enforce `log_user_prompt = false` through this policy.1298skip successful streaming events whose names end in `.delta`. Codex still

1299records errors, completion events, and metrics.

1300The older desktop build 26.1027.30824 bundles CLI `0.166.0-alpha.5.1` and

1301can't enforce `[otel]` settings through `requirements.toml`.

1299 1302 

1300```toml1303```toml

1301[otel]1304[otel]

Details

1179statusMessage = "Checking managed Bash command"1179statusMessage = "Checking managed Bash command"

1180```1180```

1181 1181 

1182The requirement registers the hook but does not install it. For a local macOS integration test, save the following as `pre_tool_use_policy.py` and have an administrator install it with the commands below.1182The requirement registers the hook but does not install it. Have an administrator install the selected file with the commands below.

1183 1183 

1184It blocks only the synthetic marker; replace it with a reviewed organization-specific policy before relying on it. Confirm that `/usr/bin/python3` exists on the target and adjust the interpreter path if necessary:1184<CodeSampleNote client:load language="python" languages={Object.keys(samples.all.codexSecurityCookbook.installAndEnforceAdministratorManagedHooks())}>

1185 

1186For a local macOS integration test, save the Python version as `pre_tool_use_policy.py`.

1187 

1188</CodeSampleNote>

1189 

1190<CodeSampleNote client:load language="ruby" languages={Object.keys(samples.all.codexSecurityCookbook.installAndEnforceAdministratorManagedHooks())}>

1191 

1192For a local macOS integration test, save the Ruby version as `pre_tool_use_policy.rb`. Set the hook `command` to `/usr/bin/ruby /etc/codex/hooks/pre_tool_use_policy.rb`, replacing `/usr/bin/ruby` with the absolute path to your Ruby interpreter if needed. The Ruby hook uses only the standard library.

1193 

1194</CodeSampleNote>

1195 

1196It blocks only the synthetic marker; replace it with a reviewed organization-specific policy before relying on it. Confirm that the configured interpreter exists on the target. The filename and interpreter must match the selected language:

1197 

1198Define a managed hook policy

1185 1199 

1186```python1200```python

1187import json1201import json


1194 sys.exit(2)1208 sys.exit(2)

1195```1209```

1196 1210 

1211```ruby

1212require "json"

1213 

1214event = JSON.parse($stdin.read)

1215command = event.fetch("tool_input", {}).fetch("command", "")

1216if command.include?("CODEX_HOOK_TEST_DENY")

1217 warn "Synthetic test command blocked by managed hook."

1218 exit 2

1219end

1220```

1221 

1197 1222 

1198```bash1223```bash

1199sudo install -d -o root -g wheel -m 755 /etc/codex/hooks1224sudo install -d -o root -g wheel -m 755 /etc/codex/hooks

1200sudo install -o root -g wheel -m 644 ./pre_tool_use_policy.py /etc/codex/hooks/pre_tool_use_policy.py1225sudo install -o root -g wheel -m 644 ./pre_tool_use_policy.py /etc/codex/hooks/pre_tool_use_policy.py

1201```1226```

1202 1227 

1228<CodeSampleNote client:load language="ruby" languages={Object.keys(samples.all.codexSecurityCookbook.installAndEnforceAdministratorManagedHooks())}>

1229 

1230For Ruby, replace both `pre_tool_use_policy.py` paths in the installation commands with `pre_tool_use_policy.rb`; keep the same root ownership and permissions.

1231 

1232</CodeSampleNote>

1233 

1203Restart the local client, then:1234Restart the local client, then:

1204 1235 

1205- [ ] Confirm a benign Bash command runs.1236- [ ] Confirm a benign Bash command runs.

Details

86already be saved. Follow the on-screen guidance to review and save the86already be saved. Follow the on-screen guidance to review and save the

87remaining changes.87remaining changes.

88 88 

89## GPT-6.2 Astra and GPT-6.2 Sol in Enterprise and Edu

90 

91Both models are off by default at launch. To give members access, enable the

92models in your [workspace model settings](https://help.openai.com/en/articles/8411955).

93Members also need access to ChatGPT Work or Codex to select a model there.

94Eligible workspaces can separately enable

95[Ultrafast](https://learn.chatgpt.com/docs/agent-configuration/speed#gpt-62-speed-options).

96 

89## GPT-6 Sol and Luna in Enterprise97## GPT-6 Sol and Luna in Enterprise

90 98 

91GPT-6 Sol and GPT-6 Luna are off by default in Enterprise workspaces at99GPT-6 Sol and GPT-6 Luna are off by default in Enterprise workspaces at

Details

192 192 

193## Use ChatGPT Work efficiently193## Use ChatGPT Work efficiently

194 194 

195Choose [GPT-6 Astra](https://learn.chatgpt.com/docs/models#gpt-6-astra) for demanding work that needs195For demanding work that needs careful reasoning, visual judgment, or a polished

196careful reasoning, visual judgment, or a polished final file. Consider196final file, choose [GPT-6.2 Astra](https://learn.chatgpt.com/docs/models?surface=app#app-gpt-62-astra)

197[GPT-6.1 Sol](https://learn.chatgpt.com/docs/models#gpt-61-sol) for complex work at a lower cost than197from the model picker. Choose [GPT-6.2 Sol](https://learn.chatgpt.com/docs/models?surface=app#app-gpt-62-sol)

198Astra, or Luna for simpler tasks. Select from the models available in your198for everyday coding and writing, or Luna for simpler tasks.

199model selector and check [plan usage](https://learn.chatgpt.com/docs/pricing) before starting a large199Check [plan usage](https://learn.chatgpt.com/docs/pricing) before starting a large task.

200task.

201 200 

202ChatGPT Work is best for substantial tasks that involve multiple steps, sources, or201ChatGPT Work is best for substantial tasks that involve multiple steps, sources, or

203tools, or require a completed deliverable. Longer or more complex tasks may use202tools, or require a completed deliverable. Longer or more complex tasks may use

hooks.md +33 −28

Details

30 30 

31## Where Codex looks for hooks31## Where Codex looks for hooks

32 32 

33Codex discovers hooks next to active config layers in either of these forms:33Local Codex looks for `hooks.json` in the locations below. In each directory,

34 34you can also declare hooks inline under `[hooks]` in `config.toml`.

35- `hooks.json`35 

36- inline `[hooks]` tables inside `config.toml`36| Scope | `hooks.json` location |

37 37| ------------------------ | --------------------------------------- |

38Installed plugins can also bundle lifecycle config through their plugin38| System (macOS and Linux) | `/etc/codex/hooks.json` |

39manifest or a default `hooks/hooks.json` file. See [Build39| System (Windows) | `%ProgramData%\OpenAI\Codex\hooks.json` |

40| User | `$CODEX_HOME/hooks.json` |

41| Trusted project | `.codex/hooks.json` |

42 

43If `CODEX_HOME` is unset, the user file is `~/.codex/hooks.json` on macOS and

44Linux and `%USERPROFILE%\.codex\hooks.json` on Windows.

45 

46Codex discovers a standalone `hooks.json` without a sibling `config.toml` or a

47reference in `requirements.toml`. If you move or remove the system file, Codex

48skips that source the next time it loads hooks. Use file and directory

49permissions to control who can edit or move it. Administrators can also declare

50hooks directly in [`requirements.toml`](#managed-hooks-in-local-codex).

51 

52Codex checks `.codex` directories from the project root to the working directory

53and loads hooks only from trusted project layers. In a linked Git worktree, a

54project layer can read hooks from the corresponding directory in the main

55checkout. User and system hooks can still load in untrusted projects.

56 

57Enabled plugins can also supply [bundled hooks](#plugin-bundled-hooks) through

58their manifest or, by default, `hooks/hooks.json` in the plugin root. See [Build

40plugins](https://developers.openai.com/plugins/build/plugins#bundled-mcp-servers-and-lifecycle-hooks) for the59plugins](https://developers.openai.com/plugins/build/plugins#bundled-mcp-servers-and-lifecycle-hooks) for the

41plugin packaging rules.60plugin packaging rules.

42 61 

43In practice, the four most useful locations are:62Codex combines matching hooks across sources. If two files register the same

44 63command for an event, Codex can run it twice when that event occurs. When a

45- `~/.codex/hooks.json`64layer declares hooks in both `hooks.json` and `config.toml`, Codex loads both

46- `~/.codex/config.toml`65and warns at startup. Prefer one format per layer.

47- `<repo>/.codex/hooks.json`

48- `<repo>/.codex/config.toml`

49 

50If more than one hook source exists, Codex loads all matching hooks.

51Higher-precedence config layers don't replace lower-precedence hooks.

52If a single layer contains both `hooks.json` and inline `[hooks]`, Codex

53merges them and warns at startup. Prefer one representation per layer.

54 

55Codex can also discover hooks bundled with enabled plugins. Plugin-bundled

56hooks load alongside other hook sources and use the same trust-review flow as

57other non-managed hooks.

58 

59Project-local hooks load only when the project `.codex/` layer is trusted. In

60untrusted projects, Codex still loads user and system hooks from their own

61active config layers.

62 66 

63## Review and trust hooks67## Review and trust hooks

64 68 


366 370 

367Notes for managed hooks:371Notes for managed hooks:

368 372 

369- `managed_dir` is used on macOS and Linux.373- `managed_dir` (macOS and Linux) and `windows_managed_dir` (Windows) describe

370- `windows_managed_dir` is used on Windows.374 where you install scripts for the hooks declared in `requirements.toml`.

375 Setting either directory doesn't add a `hooks.json` search location.

371- Codex doesn't distribute the scripts in `managed_dir`; your enterprise376- Codex doesn't distribute the scripts in `managed_dir`; your enterprise

372 tooling must install and update them separately.377 tooling must install and update them separately.

373- Managed hook commands should use absolute script paths under the configured378- Managed hook commands should use absolute script paths under the configured

model-selection.md +37 −35

Details

12 12 

13## Find the right model for your workflow13## Find the right model for your workflow

14 14 

15Choose your work and task and get a recommendation.15Choose a task and a priority to see a suggested model and reasoning effort.

16 16 

17<ModelRecommender client:load />17<ModelRecommender client:load />

18 18 

19### When to consider GPT-6.1 Terra

20 19 

21Try [GPT-6.1 Terra](https://developers.openai.com/api/docs/models/gpt-6.1-terra) for concise writing based on

22supplied material, computer-use tasks with a defined outcome, and scoped code

23fixes. Provide clear inputs, requirements, and a way to verify the result, such as

24checking saved records or running regression tests.

25 20 

26Compare it with GPT-6.1 Sol on the same inputs and reasoning effort. For writing,

27judge audience fit, voice, and useful detail as well as accuracy and length. For

28computer use, check the saved result and the accuracy of the completion report.

29 21 

30### When to consider GPT-6.1 Sol

31 22 

32Consider GPT-6.1 Sol for complex projects where cost matters, such as

33creating a board presentation from financial results or building a website

34from a product brief. Compare it with Astra on the same task to assess the

35tradeoff between quality and cost.

36 23 

37See the [API model page](https://developers.openai.com/api/docs/models/gpt-6.1-sol) for specifications24 

38and API pricing, or [Codex and ChatGPT Work availability](https://learn.chatgpt.com/docs/models#gpt-6.1-sol)

39for access through your ChatGPT plan.

40 25 

41## How to think about models and reasoning effort26## How to think about models and reasoning effort

42 27 


44 29 

45 30 

46 31 

47 Luna is our most efficient model, while Astra is our state-of-the-art, most32 To optimize usage, start with the suggested model and reasoning effort. Check

48 powerful model. If you don't need to think about usage or how long it takes to33 which settings your plan offers and how much of your allowance the task uses.

49 complete a task, you can default to Astra. To optimize usage, use the guidance34 

50 below to choose a model and reasoning effort for your needs.35 

36 

371. **GPT-6 Luna · Low**

38 

39 Making small edits to files and extracting fields when the expected result is clear.

40 

412. **GPT-6 Luna · Extra high**

42 

43 Finding updates across apps, prioritizing follow-ups, and solving problems with clear constraints.

51 44 

453. **GPT-6.1 Terra · Medium**

52 46 

47 Navigating desktop apps, updating records, and making focused fixes you can verify.

53 48 

541. **Luna · Low**494. **GPT-6.2 Sol · Medium**

55 50 

56 Fine-grained edits, well-scoped problem-solving, and simple data extraction.51 Fixing bugs and adding features in an existing codebase, or drafting documents for review.

57 52 

582. **Luna · Extra high**535. **GPT-6.2 Sol · Extra high**

59 54 

60 Finding current context across multiple apps, prioritizing work, and solving problems with clear constraints.55 Working through multistep tasks that need testing and revision along the way.

61 56 

623. **GPT-6.1 Sol · Medium**576. **GPT-6.2 Astra · Low**

63 58 

64 Complex technical work and coordinated deliverables you expect to revise.59 Turning a clear brief into polished work that's ready to use.

65 60 

664. **GPT-6.1 Sol · Extra high**617. **GPT-6.2 Astra · Medium**

67 62 

68 Polished deliverables, connected visual systems, and decisions built from conflicting evidence.63 Planning and carrying out complex projects, adjusting the approach as new information comes in.

69 64 

705. **Astra · Low**658. **GPT-6.2 Astra · Extra high**

71 66 

72 Concise writing and content adaptation that preserve facts and nuance.67 Solving open-ended problems that require weighing trade-offs and testing assumptions.

73 68 

746. **Astra · Medium**69**Model strengths**

75 70 

76 Ambitious projects that need broad context, reliable interactions, and complete results.71Farther from the center means a stronger fit for that type of work. The ratings are high-level estimates based on benchmarks, independently run task examples, and user feedback.

77 72 

787. **Astra · Extra high**73Models ordered by estimated fit for each type of work

79 74 

80 Demanding analysis and complex deliverables with exacting requirements.75| Type of work | Models from strongest fit to weakest fit |

76| --- | --- |

77| 3D and design | GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna |

78| Software engineering | GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna |

79| Data analysis | GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna |

80| Creating deliverables | GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna |

81| Computer use | GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna |

82| Research decisions | GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna |

81 83 

82### Experiment84### Experiment

83 85 

models.md +98 −41

Details

22 22 

23In Work or Codex in the ChatGPT desktop app, use the model and reasoning control23In Work or Codex in the ChatGPT desktop app, use the model and reasoning control

24beneath the composer to choose an available model and adjust its reasoning effort.24beneath the composer to choose an available model and adjust its reasoning effort.

25If you see the Power slider, open **Advanced** to choose a specific model,

26such as GPT-6.2 Astra.

25 27 

26**Reasoning effort** guides how much work the model puts into thinking through28**Reasoning effort** guides how much work the model puts into thinking through

27your request. Higher effort can improve results for complex tasks, but it takes29your request. Higher effort can improve results for complex tasks, but it takes


35 37 

36 38

37 39 

38 <CodexModelSwitcher client:visible className="lg:mt-7" />40 <CodexModelSwitcher client:visible surface="work" className="lg:mt-7" />

39 41 

40 42 

41 43 


66 68 

67 69

68 70 

69 <CodexModelSwitcher client:visible className="lg:mt-7" />71 <CodexModelSwitcher client:visible surface="work" className="lg:mt-7" />

70 72 

71 73 

72 74 


80`codex -m gpt-6.1-terra`.82`codex -m gpt-6.1-terra`.

81 83 

82In an interactive CLI session, use `/model` to switch models or adjust84In an interactive CLI session, use `/model` to switch models or adjust

83reasoning effort. You can also choose a model when you launch Codex with85reasoning effort. To start Codex with Sol, use `--model` or its `-m` alias:

84`--model` or its `-m` alias:

85 86 

86```bash87```bash

87codex --model gpt-6.1-sol88codex --model gpt-6.2-sol

88```89```

89 90 

90 91 

91The same option works with non-interactive runs. For example:92The same option works with non-interactive runs. For example:

92 93 

93```bash94```bash

94codex exec -m gpt-6.1-sol "Review the current changes"95codex exec -m gpt-6.2-sol "Review the current changes"

95```96```

96 97 

97 98 


139 140 

140<ContentModeSwitch group="codex-surface" ids="app,web">141<ContentModeSwitch group="codex-surface" ids="app,web">

141 142 

142In the ChatGPT desktop app and ChatGPT Work on the web, start with the default143This example shows the Power slider for a ChatGPT Work account with access to

143 Power setting available to your account. Move toward **Smarter** for deeper144 both GPT-6.2 models. New Work chats start with GPT-6.2 Sol at **Light** on

144 reasoning or **Faster** for faster, lower-cost work. Open **Advanced** to145 supported consumer plans or **Medium** in Enterprise workspaces with the model

145 choose a specific model, reasoning effort, or speed. To try GPT-6.1 Terra in146 enabled. Move the Power slider toward **Smarter** for deeper reasoning or

146 this example, open **Advanced** and choose it from the model list.147 **Faster** for faster, lower-cost work. Open **Advanced** to choose a specific

147 148 model or reasoning effort from the options available to your account.

148The six Power presets shown are Luna High, GPT-6 Sol Light (selected

149in this example), GPT-6 Sol Medium, Astra Light, Astra Medium, and Astra Extra

150High. Some paid plans omit Astra Extra High. Advanced controls are illustrative;

151available options and defaults vary by plan, client, workspace settings, and rollout.

152 149 

153</ContentModeSwitch>150</ContentModeSwitch>

154 151 


157<a id="deprecated-codex-models"></a>154<a id="deprecated-codex-models"></a>

158<a id="configure-your-default-local-model"></a>155<a id="configure-your-default-local-model"></a>

159<a id="choose-a-model-for-cloud-tasks"></a>156<a id="choose-a-model-for-cloud-tasks"></a>

160<a id="gpt-6-astra"></a>

161 157 

162<ContentModeSwitch group="codex-surface" ids="app,web,cli,ide">158<ContentModeSwitch group="codex-surface" ids="app,web,cli,ide">

163 159 

164## Recommended models160## Recommended models

165 161 

166Start with the kind of work you want to do. Astra suits the most demanding162GPT-6.2 Astra and GPT-6.2 Sol are now available in ChatGPT Work and Codex on

167workflows. GPT-6.1 Sol offers near-Astra performance at a lower cost than Astra.163[supported plans and clients](https://learn.chatgpt.com/docs/pricing#feature-availability). For demanding

164work across code, apps, or research, choose GPT-6.2 Astra. In Codex, try Astra to

165trace a bug across services, fix it, and test the change. See

166[Prompting GPT-6.2 in Codex](https://learn.chatgpt.com/guides/prompting-gpt-6-2-astra).

167 

168Choose GPT-6.2 Sol for

169everyday coding, writing, and work across several sources. It costs fewer credits

170per token than GPT-6.2 Astra at [Standard speed](https://learn.chatgpt.com/docs/pricing#token-rates).

168GPT-6.1 Terra is a fast, efficient choice for writing, visual understanding, and171GPT-6.1 Terra is a fast, efficient choice for writing, visual understanding, and

169computer use. Luna suits focused, repeatable tasks.172computer use. Luna suits focused, repeatable tasks.

170 173 

171These recommendations apply to ChatGPT Work and Codex. For Chat, see [models in ChatGPT](https://help.openai.com/en/articles/20001354-gpt-6-and-other-models-in-chatgpt) in the Help Center.174These recommendations apply to ChatGPT Work and Codex. For Chat availability, see [models in ChatGPT](https://help.openai.com/en/articles/20001354-gpt-6-and-other-models-in-chatgpt) in the Help Center.

172 175 

173<a id="app-compare-models"></a>176<a id="app-compare-models"></a>

174 177 

175 178 

176 179 

177 <ModelDetails180 

181 

182 

183<ModelDetails

184 client:load

185 name="GPT-6.2 Astra"

186 slug="gpt-6.2-astra"

187 imageLabel="6.2 Astra"

188 wallpaperUrl="/images/api/models/gpt-6.2-astra-block.webp"

189 description="Choose GPT-6.2 Astra for demanding projects, such as diagnosing a bug across services or turning research into a presentation that follows your template."

190 data={{

191 features: [

192 { title: "ChatGPT Work", value: "Web, mobile, and desktop" },

193 { title: "Codex", value: "App and CLI" },

194 { title: "Default context in Codex", value: "272,000 tokens" },

195 ],

196 }}

197/>

198 

199 

200 

201 

202 

203 

204 

205<ModelDetails

206 client:load

207 name="GPT-6.2 Sol"

208 slug="gpt-6.2-sol"

209 imageLabel="6.2 Sol"

210 wallpaperUrl="/images/api/models/gpt-6.2-sol-block.webp"

211 description="Use GPT-6.2 Sol for everyday tasks like editing code, drafting a report, or turning project notes into a plan."

212 data={{

213 features: [

214 { title: "ChatGPT Work", value: "Web, mobile, and desktop" },

215 { title: "Codex", value: "App and CLI" },

216 { title: "Default context in Codex", value: "500,000 tokens" },

217 ],

218 }}

219/>

220 

221 

222 

223 

224 

225 

226 

227<ModelDetails

178 client:load228 client:load

179 name="gpt-6-astra"229 name="gpt-6-astra"

180 slug="gpt-6-astra"230 slug="gpt-6-astra"

181 imageLabel="Astra"231 imageLabel="Astra"

182 wallpaperUrl="/images/api/models/gpt-6-astra-texture.webp"232 wallpaperUrl="/images/api/models/gpt-6-astra-texture.webp"

183 description="Our most capable model for complex work across code, apps, and research, combining advanced reasoning, computer use, and stronger judgment."233 description="Combine reasoning and computer use to tackle complex work across code, apps, and research."

184 data={{234 data={{

185 features: [235 features: [

186 {236 {


207 { title: "API Access", value: true },257 { title: "API Access", value: true },

208 ],258 ],

209 }}259 }}

210 />260/>

261 

262 

263 

211 264 

212<ModelDetails265<ModelDetails

213 client:load266 client:load


215 slug="gpt-6.1-sol"268 slug="gpt-6.1-sol"

216 imageLabel="6.1 Sol"269 imageLabel="6.1 Sol"

217 wallpaperUrl="/images/api/models/gpt-6.1-sol-texture.webp"270 wallpaperUrl="/images/api/models/gpt-6.1-sol-texture.webp"

218 description="Near-Astra performance for complex work at a lower cost than Astra. Consider it for repeated, long-running work across code, apps, and documents."271 description="Performance close to GPT-6 Astra for complex work at a lower cost. Consider it for repeated, long-running work across code, apps, and documents."

219 data={{272 data={{

220 features: [273 features: [

221 {274 {


328 381 

329</ContentModeSwitch>382</ContentModeSwitch>

330 383 

384To use a longer context window in Codex, set `model_context_window` in

385[`config.toml`](https://learn.chatgpt.com/docs/config-file/config-advanced#model-reasoning-verbosity-and-limits).

386GPT-6.2 Astra and GPT-6.2 Sol each support a context window of up to 1 million tokens.

387 

331<a id="gpt-61-sol"></a>388<a id="gpt-61-sol"></a>

332<a id="gpt-6.1-sol"></a>389<a id="gpt-6.1-sol"></a>

333 390 


355 412 

356### Where each model shines413### Where each model shines

357 414 

358- **Astra, for the hardest end-to-end work.** Choose Astra for complete workflows415- **GPT-6.2 Astra or GPT-6 Astra, for the hardest end-to-end work.** Choose an

359 across code, apps, and research that need sustained reasoning and judgment.416 available Astra model for tasks that need sustained reasoning across code,

360 Give it the sources, templates, constraints, and checks that define a useful417 apps, or research. Give it the sources, constraints, and checks that define a

361 result. Astra is better at asking focused questions and incorporating your418 useful result.

362 guidance while keeping the original goal and constraints in view.419- **GPT-6.2 Sol, for everyday work.** Choose Sol to edit code, draft documents,

363- **GPT-6.1 Sol, for repeated, long-running work.** Consider GPT-6.1 Sol for420 or turn several sources into a plan.

364 work across code, apps, and documents when cost matters. Keep Astra for your

365 most demanding work.

366- **GPT-6.1 Terra, for everyday writing and visual work.** Choose Terra for clear421- **GPT-6.1 Terra, for everyday writing and visual work.** Choose Terra for clear

367 communication, interpreting images and screens, and completing tasks across422 communication, interpreting images and screens, and completing tasks across

368 supported apps. Try it for drafting proposals, reviewing visual materials,423 supported apps. Try it for drafting proposals, reviewing visual materials,


377result should include.432result should include.

378 433 

379| Model | Task | Example prompt |434| Model | Task | Example prompt |

380| ------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |435| ---------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

381| Astra | Work through a complex decision. | "Compare these three vendor proposals against our requirements. Explain the tradeoffs, recommend an option, and list the questions we should resolve before deciding." |436| GPT-6.2 Astra or GPT-6 Astra | Work through a complex decision. | "Compare these three vendor proposals against our requirements. Explain the tradeoffs, recommend an option, and list the questions we should resolve before deciding." |

382| GPT-6.1 Sol | Bring several sources into a working document. | "Use this project brief, meeting notes, and timeline to draft an implementation plan. Identify dependencies, flag conflicting details, and list the decisions we still need to make." |437| GPT-6.2 Sol | Bring several sources into a working document. | "Use this project brief, meeting notes, and timeline to draft an implementation plan. Identify dependencies, flag conflicting details, and list the decisions we still need to make." |

383| GPT-6.1 Terra | Make sense of visual information. | "Review these dashboard screenshots and summarize the main changes. Refer to the chart labels and values, and flag anything you can't read confidently." |438| GPT-6.1 Terra | Make sense of visual information. | "Review these dashboard screenshots and summarize the main changes. Refer to the chart labels and values, and flag anything you can't read confidently." |

384| Luna | Organize information into a consistent format. | "Turn these meeting notes into a table of action items, owners, and due dates. Mark any missing owner or date as unspecified." |439| Luna | Organize information into a consistent format. | "Turn these meeting notes into a table of action items, owners, and due dates. Mark any missing owner or date as unspecified." |

385 440 


393For example, you might use a lower effort to rewrite a short email and a higher448For example, you might use a lower effort to rewrite a short email and a higher

394effort to compare several proposals with competing requirements.449effort to compare several proposals with competing requirements.

395 450 

396For GPT-6.1 Sol, start with the reasoning effort available by default in your451For GPT-6.2 Astra or GPT-6.2 Sol, start with the effort your client selects

397client and adjust based on the task. Start with **High** for Luna or **Light**452and adjust it based on the task. For Luna, start with **High**. For GPT-6

398for Astra.453Astra, start with **Light** (`low` in configuration). Increase the effort for

399In configuration, Astra's Light setting is `low`. Increase the effort for tasks454tasks that need more planning, analysis, or checking.

400that need more planning, analysis, or checking.

401 455 

402- **Light** in the ChatGPT desktop app, ChatGPT Work on the web, and IDE extension, or **Low** in the456- **Light** in the ChatGPT desktop app, ChatGPT Work on the web, and IDE extension, or **Low** in the

403 CLI, suits quick, well-scoped tasks.457 CLI, suits quick, well-scoped tasks.


497[configuration file](https://learn.chatgpt.com/docs/config-file/config-basic). To specify a model, add a551[configuration file](https://learn.chatgpt.com/docs/config-file/config-basic). To specify a model, add a

498`model` entry to your configuration file. If you don't specify a model, the552`model` entry to your configuration file. If you don't specify a model, the

499ChatGPT desktop app, Codex CLI, or IDE extension uses a recommended model.553ChatGPT desktop app, Codex CLI, or IDE extension uses a recommended model.

554This example selects Sol in the app or CLI. When sharing a configuration with

555the IDE extension, pick a model available in every client you use,

556such as `gpt-6.1-sol`.

500 557 

501```toml558```toml

502model = "gpt-6.1-sol"559model = "gpt-6.2-sol"

503```560```

504 561 

505 562 

plugins.md +1 −0

Details

76- Install the Google Drive plugin to work across Drive, Docs, Sheets, and76- Install the Google Drive plugin to work across Drive, Docs, Sheets, and

77 Slides.77 Slides.

78- Install the Slack plugin to summarize channels or draft replies.78- Install the Slack plugin to summarize channels or draft replies.

79- Use the SVG & 3D Design plugin to [create editable SVG graphics and 3D scenes](https://learn.chatgpt.com/guides/svg-3d-design).

79 80 

80A plugin can contain one or more of these parts:81A plugin can contain one or more of these parts:

81 82 

prompting.md +3 −0

Details

317reproduction steps, preserves important constraints, and says how to verify the317reproduction steps, preserves important constraints, and says how to verify the

318change.318change.

319 319 

320For GPT-6.2 guidance on reasoning effort, subagents, and visual work, see

321[Prompting GPT-6.2 in Codex](https://learn.chatgpt.com/guides/prompting-gpt-6-2-astra).

322 

320<a id="goal-mode"></a>323<a id="goal-mode"></a>

321 324 

322For a multi-step task, enter `/plan` in the app composer when you want Codex to325For a multi-step task, enter `/plan` in the app composer when you want Codex to

sdk.md +1 −1

Details

120 120 

121Start Codex, create a thread, and run a prompt. The examples use GPT-6.1 Sol,121Start Codex, create a thread, and run a prompt. The examples use GPT-6.1 Sol,

122which must be available to your signed-in account. Otherwise, omit `model` to122which must be available to your signed-in account. Otherwise, omit `model` to

123use your configured default. See [GPT-6.1 Sol availability by plan](https://learn.chatgpt.com/docs/models#gpt-6.1-sol).123use your configured default. See [model availability by plan](https://learn.chatgpt.com/docs/pricing#feature-availability).

124 124 

125```python125```python

126from openai_codex import Codex, Sandbox126from openai_codex import Codex, Sandbox

speed.md +81 −61

Details

1# Speed1# Fast and Ultrafast modes

2 2 

3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

4 4 

5You can increase model speed in Codex in exchange for higher usage.5> Illustration: An animated starfield illustrates Ultrafast mode.

6 6 

7## Fast mode

8 7 

9Fast mode speeds up supported models, including GPT-6.1 Sol, GPT-6.1 Terra,

10GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna, where available. For GPT-5.6, the speed increase

11is 1.5x.

12 8 

13Use `/fast` in the CLI to toggle Fast mode. Use `/statusline` to show it in the9In ChatGPT Work and Codex, **Fast** and **Ultrafast** generate tokens faster

14footer. You can also persist the default with `service_tier = "fast"` plus10than **Standard** on the same model. Both use more of your plan's allowance

15`[features].fast_mode = true` in `config.toml`. Fast mode is available in the11or credits.

16ChatGPT desktop app, Codex CLI, and IDE extension when you sign in with ChatGPT.

17 12 

18For supported models, Fast mode uses included subscription limits at 2.5x the13## Choose a speed in the composer

19Standard rate. Purchased credits and Enterprise pay-as-you-go usage are billed

20at 2x the Standard rate.

21 14 

22<a id="astra-ultrafast"></a>15In ChatGPT Work on the web or in the Codex desktop app, open the model or

16effort picker at the bottom of the composer.

23 17 

24## Ultrafast mode18- If **Ultrafast** is available to you, select the lightning bolt to open the

19 speed menu, then choose a speed.

20- If your only options are **Standard** and **Fast**, selecting the lightning

21 bolt switches between them immediately.

25 22 

26<UltrafastAnimation23In the advanced picker, select **Speed**. In ChatGPT Work on mobile, open the

27 client:visible24model picker and use the speed setting.

28 title="Ultrafast"

29 label="Interactive Ultrafast starfield"

30 controls={{

31 pause: { label: "Pause animation" },

32 play: { label: "Play animation" },

33 }}

34/>

35 25 

36Ultrafast supports GPT-6 Astra and GPT-6.1 Sol.

37 26 

38GPT-6 Astra Ultrafast generates tokens up to 8x faster than GPT-6 Astra in

39Standard mode in Codex.

40 27 

41Ultrafast is available in Codex and ChatGPT Work on Pro $500 and eligible28> Illustration: GPT-6.2 Astra speed picker with Standard, Fast, and Ultrafast.

42Enterprise and Edu plans. On Pro $500, Ultrafast uses your included usage first,

43then your available credits after that allowance runs out.

44 29 

45Ultrafast mode bills purchased credits and Enterprise pay-as-you-go usage at

466x the Standard rate. Ultrafast uses included subscription limits at 8x the

47Standard rate.

48 30 

49For Enterprise workspaces, Ultrafast is off by default. Workspace owners can

50enable access for selected users or the workspace through

51[workspace permissions](https://learn.chatgpt.com/docs/enterprise/roles-and-workspace-permissions).

52Existing [per-user spend controls](https://learn.chatgpt.com/docs/enterprise/usage-limits) apply to

53eligible Ultrafast usage.

54 31 

55## Availability and billing details32## Fast mode

33 

34Fast mode supports GPT-6.2 Astra and GPT-6.2 Sol. You can also use it with

35GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Astra, GPT-6 Sol, and GPT-6 Luna. On

36GPT-6.2 Astra and GPT-5.6, Fast generates tokens at about 1.5 times the

37speed of Standard.

38 

39With ChatGPT sign-in, you can also use Fast in the Codex CLI and IDE extension.

40See [Fast pricing](https://learn.chatgpt.com/docs/pricing?codex-pricing-speed=fast#speed-multipliers)

41for the usage rate for your model.

56 42 

57**ChatGPT Work and Codex share usage.** Both use the same43<a

58 pricing, credits, and usage limits. See [Codex pricing](https://learn.chatgpt.com/docs/pricing) for44 id="astra-ultrafast"

59 details.45 className="block scroll-mt-[var(--docs-scroll-offset)]"

46></a>

47 

48## Ultrafast mode

60 49 

61See [Models](https://learn.chatgpt.com/docs/models) for model availability and50<a

62[Pricing](https://learn.chatgpt.com/docs/pricing#token-rates) for token rates.51 id="gpt-62-speed-options"

52 className="block scroll-mt-[var(--docs-scroll-offset)]"

53></a>

54 

55On GPT-6.2 Astra and GPT-6.2 Sol, Ultrafast generates tokens at up to

564.5 times the speed of Standard on the same model. Choose Ultrafast in the

57[composer](#choose-a-speed-in-the-composer) in ChatGPT Work or the Codex app,

58or use the [Codex CLI](#codex-cli-controls).

59 

60- **Pro.** The models you can use with Ultrafast depend on your plan. See

61 [GPT-6.2 Ultrafast availability by Pro plan](https://learn.chatgpt.com/docs/whats-new/gpt-62-astra-sol).

62 On Pro $500, both models are available. Ultrafast uses your included

63 allowance first, then any available credits.

64- **Enterprise and Edu.** Both models support Ultrafast in eligible workspaces.

65 If you don't see it, ask your workspace owner to check

66 [model access and Ultrafast permissions](#ultrafast-plan-and-workspace-requirements).

67 

68ChatGPT Work and Codex share pricing, credits, and usage limits. See

69[Ultrafast pricing](https://learn.chatgpt.com/docs/pricing?codex-pricing-speed=ultrafast#speed-multipliers)

70for included usage, purchased credits, and eligible pay-as-you-go rates.

71 

72GPT-6 Astra and GPT-6.1 Sol also support Ultrafast on Pro $500 and eligible

73Enterprise and Edu plans. In Codex, GPT-6 Astra generates tokens at up to

74eight times its Standard speed with Ultrafast.

75 

76<a id="availability-and-billing-details"></a>

63 77 

64### Ultrafast plan and workspace requirements78### Ultrafast plan and workspace requirements

65 79 

66- Eligible Enterprise workspaces use credit-based or USD usage-based80Enterprise workspaces need a credit-based or USD usage-based agreement. Edu

67 agreements. Usage is billed according to the workspace's agreement.81workspaces need a credit-based plan.

68- Eligible Edu plans use credits. Legacy Enterprise plans that rely on rate82 

69 limits instead of usage-based billing aren't supported.83Workspace owners must enable [the GPT-6.2 models they want members to use](https://learn.chatgpt.com/docs/enterprise/workspace-model-availability#gpt-62-astra-and-gpt-62-sol-in-enterprise-and-edu).

84Ultrafast is a separate permission and is off by default. Owners can enable it

85for selected users or the whole workspace in

86[workspace permissions](https://learn.chatgpt.com/docs/enterprise/roles-and-workspace-permissions).

87[Per-user spend controls](https://learn.chatgpt.com/docs/enterprise/usage-limits) apply.

70 88 

71Other self-serve plans don't have access to Ultrafast at launch, even with89For GPT-6.2 Astra, GPT-6.2 Sol, and GPT-6 Astra, Ultrafast supports inference

72purchased credits.90residency only in the United States. For GPT-6.1 Sol, it also supports Europe

91(EEA and Switzerland).

73 92 

74GPT-6.1 Sol Ultrafast supports inference residency in the United States and93## Codex CLI controls

75Europe (EEA + Switzerland). GPT-6 Astra Ultrafast supports inference residency

76in the United States only.

77 94 

78### API billing95In the CLI, type `/` to see which commands are available for your model.

96Use `/fast` or `/ultrafast` to choose a speed. Repeat the active command to

97return to Standard. The CLI saves your selection. To show Fast mode in the

98footer, use `/statusline`.

79 99 

80With an API key, Codex uses API token pricing instead, and ChatGPT credit100## API billing

81multipliers don't apply.

82 101 

83For API availability, request configuration, and pricing, see102When you sign in to Codex with an API key, you pay API token rates. ChatGPT credit

84[Ultrafast mode in the API](https://developers.openai.com/api/docs/guides/ultrafast-mode).103multipliers apply only when you sign in with ChatGPT. See

104[Ultrafast mode in the API](https://developers.openai.com/api/docs/guides/ultrafast-mode) for supported

105models, request configuration, and pricing.

85 106 

86## Retirement and migration107## Retirement and migration

87 108 

88[GPT-5.5 retires](https://learn.chatgpt.com/docs/models#gpt-55-retirement) from Codex with ChatGPT109[GPT-5.5 retired from Codex](https://learn.chatgpt.com/docs/models#gpt-55-retirement) for users signed

89sign-in on October 14, 2026, at noon PDT (19:00 UTC). The OpenAI API and110in with ChatGPT on October 14, 2026, at noon PDT (19:00 UTC).

90Codex sessions authenticated with an API key aren't affected.

subagents.md +14 −15

Details

162request a specific model or reasoning effort in your prompt,162request a specific model or reasoning effort in your prompt,

163configure `[agents]` defaults in `config.toml`, or set `model` and163configure `[agents]` defaults in `config.toml`, or set `model` and

164`model_reasoning_effort` directly in the custom agent file.164`model_reasoning_effort` directly in the custom agent file.

165For example, use `gpt-6-luna` for fast scans or a higher-effort `gpt-6.1-sol` configuration for more demanding reasoning.165For example, use `gpt-6-luna` for fast scans or increase Sol’s reasoning effort for a more demanding task.

166 166 

167For most tasks in Codex, start with 167Start with Sol for everyday tasks when your [plan and

168 `gpt-6.1-sol` when your168 client](https://learn.chatgpt.com/docs/pricing#feature-availability) support it. Otherwise, choose a

169 signed-in account or workspace has [access](https://learn.chatgpt.com/docs/models#gpt-6.1-sol).169 model from your model picker. Use `gpt-6-luna` for lighter, lower-cost work.

170 Otherwise, choose a model available to you. Use `gpt-6-luna` when you want a

171 faster, lower-cost option for lighter subagent work.

172 170 

173### Model choice171### Model choice

174 172 

175- **`gpt-6.1-sol`**: Start here for demanding agents. Use it for ambiguous, multi-step work that needs planning, tool use, validation, and follow-through across a larger context.173- **`gpt-6.2-sol`**: Use Sol for everyday agents that plan, use tools, and check their work.

176- **`gpt-6-luna`**: Use for fast, narrowly scoped agents handling clear, repeatable, or high-volume work.174- **`gpt-6-luna`**: Use for fast, narrowly scoped agents handling clear, repeatable, or high-volume work.

177 175 

178### Reasoning effort (`model_reasoning_effort`)176### Reasoning effort (`model_reasoning_effort`)

179 177 

180For GPT-6.1 Sol, use a reasoning effort supported by your client and selected178When the parent agent uses GPT-6.2 Astra or GPT-6.2 Sol, start with the same

181model. For explicit model settings, start with `high` for GPT-6 Luna or `low`179model and reasoning effort for its subagents. Raise the effort for a subtask

182for GPT-6 Astra. Adjust for the task using a level the selected model supports.180that needs deeper investigation, or lower it for a quick scan. If you select

181GPT-6 Luna explicitly, start with `high`. For GPT-6 Astra, start with `low`.

183 182 

184- **`ultra`**: Use for the deepest reasoning when the selected model supports183- **`ultra`**: Use for the deepest reasoning when the selected model supports

185 it.184 it.


420tool surface that matches that job, and instructions that keep it from419tool surface that matches that job, and instructions that keep it from

421drifting into adjacent work.420drifting into adjacent work.

422 421 

423The examples use [GPT-6.1 Sol](https://learn.chatgpt.com/docs/models#gpt-6.1-sol) where your signed-in422The reviewer and browser debugger examples use Sol in the app or CLI. For a

424account or workspace has access. If it isn't available, choose a model you can423custom agent you also run in the IDE extension, choose a `model` available in

425use.424each client, such as `gpt-6.1-sol`.

426 425 

427#### Example 1: PR review426#### Example 1: PR review

428 427 


462```toml461```toml

463name = "reviewer"462name = "reviewer"

464description = "PR reviewer focused on correctness, security, and missing tests."463description = "PR reviewer focused on correctness, security, and missing tests."

465model = "gpt-6.1-sol"464model = "gpt-6.2-sol"

466model_reasoning_effort = "medium"465model_reasoning_effort = "medium"

467developer_instructions = """466developer_instructions = """

468Review code like an owner.467Review code like an owner.


528```toml527```toml

529name = "browser_debugger"528name = "browser_debugger"

530description = "UI debugger that uses browser tooling to reproduce issues and capture evidence."529description = "UI debugger that uses browser tooling to reproduce issues and capture evidence."

531model = "gpt-6.1-sol"530model = "gpt-6.2-sol"

532model_reasoning_effort = "medium"531model_reasoning_effort = "medium"

533developer_instructions = """532developer_instructions = """

534Reproduce the issue in the browser, capture exact steps, and report what the UI actually does.533Reproduce the issue in the browser, capture exact steps, and report what the UI actually does.

Details

49 a source, what still needs owner input, which assumptions remain open, and49 a source, what still needs owner input, which assumptions remain open, and

50 which slides need leadership review. Render the deck and fix clipping,50 which slides need leadership review. Render the deck and fix clipping,

51 overflow, or layout issues before delivery. Do not share it.51 overflow, or layout issues before delivery. Do not share it.

52 alternativeModelName: GPT-6.2 Astra

52 suggestedEffort: medium53 suggestedEffort: medium

53relatedLinks:54relatedLinks:

54 - label: "OpenAI Academy: Business operations teams"55 - label: "OpenAI Academy: Business operations teams"

Details

53 53 

54 - Start by mapping the migration surface and proposing the checkpoint plan.54 - Start by mapping the migration surface and proposing the checkpoint plan.

55 suggestedModel: gpt-6-astra55 suggestedModel: gpt-6-astra

56 alternativeModelName: GPT-6.2 Astra

56 suggestedEffort: medium57 suggestedEffort: medium

57relatedLinks:58relatedLinks:

58 - label: Modernizing your Codebase with Codex59 - label: Modernizing your Codebase with Codex

Details

47 Cite the sources behind requirement-level claims. If sources disagree, call47 Cite the sources behind requirement-level claims. If sources disagree, call

48 out the conflict instead of choosing silently. Draft only. Do not post,48 out the conflict instead of choosing silently. Draft only. Do not post,

49 update Linear, or share the document until I approve it.49 update Linear, or share the document until I approve it.

50 alternativeModelName: GPT-6.2 Astra

50 suggestedEffort: xhigh51 suggestedEffort: xhigh

51relatedLinks:52relatedLinks:

52 - label: Plugins53 - label: Plugins

Details

29 visuals when they make the point clearer, and check the finished slides for29 visuals when they make the point clearer, and check the finished slides for

30 layout or formatting issues. Return the completed presentation and briefly30 layout or formatting issues. Return the completed presentation and briefly

31 flag anything that needs my review.31 flag anything that needs my review.

32 alternativeModelName: GPT-6.2 Astra

32 suggestedEffort: medium33 suggestedEffort: medium

33relatedLinks:34relatedLinks:

34 - label: Create and edit files with ChatGPT Work35 - label: Create and edit files with ChatGPT Work

Details

162 162 

163If your installation provides `docker-compose`, use that spelling in place of `docker compose`. Run these commands sequentially; the suite resets only its marked test schema.163If your installation provides `docker-compose`, use that spelling in place of `docker compose`. Run these commands sequentially; the suite resets only its marked test schema.

164 164 

165 

166 

167 

168For Ruby, use the complete [Ruby sample project](https://github.com/openai/developers-website/tree/main/src/content/platform/ruby-examples) and install its dependencies using Ruby 3.3. Start PostgreSQL with the Compose setup in the ZIP archive. From the Ruby project directory, run `bundle exec ruby codex-cloud/incident-to-tested-fix/main.rb baseline`, then repeat with `regression` and `fixed`. These commands use the same disposable database and produce the expected failing and passing results; use them in place of the Node runner commands.

169 

170 

171 

172 

165### Inspect the transaction handler173### Inspect the transaction handler

166 174 

167This excerpt comes from `main.ts` in the download. Run the complete files after extracting the ZIP; the tests and fixture setup are included there.175 

176 

177 

178The TypeScript excerpt comes from `main.ts` in the ZIP.

179 

180 

181 

182 

183 

184 

185 

186The Ruby examples come from the linked Ruby sample project.

187 

188 

189 

190 

191Run the complete files for the selected language with the supplied database fixture.

168 192 

169<details>193<details>

170 <summary>Receipt claim and order transaction</summary>194 <summary>Receipt claim and order transaction</summary>

195 Claim a receipt and write an order

196 

171```typescript197```typescript

172import type { Client } from "pg";198import type { Client } from "pg";

173 199 


223}249}

224```250```

225 251 

252```ruby

253def self.fixed(client, input, hook = ->(_boundary) {})

254 assert_not_held(client, input)

255 hook.call("beforeClaim")

256 client.exec("BEGIN ISOLATION LEVEL READ COMMITTED")

257 committed = false

258 begin

259 claimed = client.exec_params(<<~SQL, key(input) + [fingerprint(input)])

260 INSERT INTO event_receipts(provider, account_id, event_id, payload_fingerprint)

261 VALUES ($1,$2,$3,$4)

262 ON CONFLICT (provider, account_id, event_id) DO NOTHING RETURNING event_id

263 SQL

264 trace("receipt-claim-result", client, input, inserted: claimed.ntuples == 1)

265 if claimed.ntuples == 1

266 hook.call("afterClaim")

267 write_order(client, input)

268 hook.call("afterOrder")

269 else

270 # A new READ COMMITTED statement sees the winner after its commit.

271 check_receipt(client, input)

272 end

273 client.exec("COMMIT")

274 committed = true

275 trace("transaction-committed", client, input)

276 hook.call("afterCommit")

277 trace("acknowledged", client, input, **ACK)

278 ACK

279 rescue

280 if committed

281 trace("committed-response-lost-no-ack", client, input)

282 else

283 client.exec("ROLLBACK")

284 trace("transaction-rolled-back-no-ack", client, input)

285 end

286 raise

287 end

288end

289```

290 

226</details>291</details>

227 292 

228### 1. Provide a compact packet293### 1. Provide a compact packet

Details

160 160 

161It does not record session tokens or the signing key. Read `README.md` and `openapi.json` for the sample's setup and public contract.161It does not record session tokens or the signing key. Read `README.md` and `openapi.json` for the sample's setup and public contract.

162 162 

163 

164 

165 

166For Ruby, use the complete [Ruby sample project](https://github.com/openai/developers-website/tree/main/src/content/platform/ruby-examples) with its `Gemfile`, lockfile, and `codex-cloud` directory intact. Install its dependencies using Ruby 3.3. From the Ruby project directory, run `bundle exec ruby codex-cloud/api/main.rb`, `bundle exec ruby codex-cloud/test.rb --seeded`, `bundle exec ruby codex-cloud/test.rb`, and `bundle exec ruby codex-cloud/reproduce/main.rb ./evidence`. The seeded test deliberately fails; the corrected test passes. These Ruby commands replace the TypeScript commands above.

167 

168 

169 

170 

163### Inspect the runnable sample171### Inspect the runnable sample

164 172 

165These excerpts come from the files in the download. Run the complete files after extracting the ZIP.173 

174 

175 

176The TypeScript excerpts come from the ZIP.

177 

178 

179 

180 

181 

182 

183 

184The Ruby examples come from the linked Ruby sample project.

185 

186 

187 

188 

189Run the complete files for the selected language with the supplied database fixture.

166 190 

167<details>191<details>

168 <summary>Cursor and ordering implementation</summary>192 <summary>Cursor and ordering implementation</summary>

193 Create the example API

194 

169```typescript195```typescript

170import { createFixtures } from "./fixtures.ts";196import { createFixtures } from "./fixtures.ts";

171type Fixtures = ReturnType<typeof createFixtures>;197type Fixtures = ReturnType<typeof createFixtures>;


297}323}

298```324```

299 325 

326```ruby

327require "base64"

328require "json"

329require "net/http"

330require "openssl"

331require "time"

332require "timeout"

333require "uri"

334require "webrick"

335require_relative "../fixtures/main"

336 

337module PaginationAPI

338 ERRORS = {

339 "invalid_cursor" => [400, "Invalid cursor."],

340 "invalid_limit" => [400, "Limit must be an integer from 1 through 100."],

341 "unauthenticated" => [401, "Authentication required."],

342 "not_found" => [404, "Project not found."]

343 }.freeze

344 

345 def self.timestamp(value)

346 match = value.is_a?(String) && value.match(/\A(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})(?:\.(\d{1,9}))?Z\z/)

347 raise ArgumentError, "Invalid timestamp" unless match

348 

349 parsed = Time.iso8601(value)

350 raise ArgumentError, "Invalid timestamp" unless parsed.utc.strftime("%Y-%m-%dT%H:%M:%S") == match[1]

351 

352 (parsed.to_r * 1_000_000_000).to_i

353 end

354 

355 def self.compare(left, right)

356 [timestamp(right.fetch("created_at")), right.fetch("id")] <=> [timestamp(left.fetch("created_at")), left.fetch("id")]

357 end

358 

359 def self.encode_cursor(event, tenant, project, key)

360 payload = Base64.urlsafe_encode64(

361 JSON.generate(

362 version: 1, tenant_id: tenant, project_id: project,

363 created_at: event.fetch("created_at"), id: event.fetch("id")

364 ), padding: false

365 )

366 signature = Base64.urlsafe_encode64(OpenSSL::HMAC.digest("SHA256", key, payload), padding: false)

367 "#{payload}.#{signature}"

368 end

369 

370 def self.decode_cursor(token, tenant, project, key)

371 raise ArgumentError, "Invalid cursor" unless token.is_a?(String) && token.bytesize <= 2048

372 

373 parts = token.split(".", -1)

374 raise ArgumentError, "Invalid cursor" unless parts.length == 2 && parts.all? { |part| part.match?(/\A[A-Za-z0-9_-]+\z/) }

375 

376 payload, signature = parts

377 decoded, actual = Base64.urlsafe_decode64(payload), Base64.urlsafe_decode64(signature)

378 expected = OpenSSL::HMAC.digest("SHA256", key, payload)

379 unless Base64.urlsafe_encode64(decoded, padding: false) == payload && Base64.urlsafe_encode64(actual, padding: false) == signature &&

380 actual.bytesize == expected.bytesize && OpenSSL.fixed_length_secure_compare(actual, expected)

381 raise ArgumentError, "Invalid cursor"

382 end

383 

384 cursor = JSON.parse(decoded, allow_duplicate_key: false)

385 fields = %w[version tenant_id project_id created_at id]

386 unless cursor.is_a?(Hash) && cursor.keys.sort == fields.sort && cursor["version"].is_a?(Integer) && cursor["version"] == 1 &&

387 cursor["tenant_id"] == tenant && cursor["project_id"] == project && cursor["id"].is_a?(String) && !cursor["id"].empty?

388 raise ArgumentError, "Invalid cursor"

389 end

390 

391 timestamp(cursor["created_at"])

392 cursor

393 end

394 

395 def self.failure(code)

396 status, message = ERRORS.fetch(code)

397 [

398 status, {

399 error: {

400 code: code,

401 message: message

402 }

403 }

404 ]

405 end

406 

407 def self.handle(request, fixtures, seeded_bug)

408 bearer = request["authorization"].to_s.match(/\ABearer ([A-Za-z0-9_-]+)\z/)

409 tenant = bearer && fixtures[:sessions][bearer[1]]

410 return failure("unauthenticated") unless tenant

411 

412 begin

413 url = URI.parse(request.unparsed_uri)

414 route = url.path.to_s.match(%r{\A/v1/projects/([^/]+)(/events)?\z})

415 project_id = route && URI.decode_www_form_component(route[1])

416 rescue ArgumentError, URI::InvalidURIError

417 return failure("not_found")

418 end

419 project = project_id && fixtures[:projects][project_id]

420 return failure("not_found") unless request.request_method == "GET" && route && project && project["tenant_id"] == tenant

421 unless route[2]

422 return [

423 200, {

424 id: project_id,

425 name: project["name"]

426 }

427 ]

428 end

429 

430 begin

431 parameters = URI.decode_www_form(url.query.to_s)

432 rescue ArgumentError

433 return failure("invalid_cursor")

434 end

435 limits = parameters.filter_map { |key, value| value if key == "limit" }

436 return failure("invalid_limit") if limits.length > 1 || (!limits.empty? && !limits.fetch(0).match?(/\A\d+\z/))

437 

438 limit = limits.empty? ? 25 : limits.fetch(0).to_i

439 return failure("invalid_limit") unless (1..100).cover?(limit)

440 

441 cursors = parameters.filter_map { |key, value| value if key == "cursor" }

442 cursor = nil

443 unless cursors.empty?

444 begin

445 raise ArgumentError, "Repeated cursor" unless cursors.length == 1

446 

447 cursor = decode_cursor(cursors.first, tenant, project_id, fixtures[:signing_key])

448 rescue ArgumentError, JSON::ParserError

449 return failure("invalid_cursor")

450 end

451 end

452 matching = fixtures[:events].select { |event| event["tenant_id"] == tenant && event["project_id"] == project_id }

453 .sort { |left, right| compare(left, right) }.select do |event|

454 !cursor || (seeded_bug ? timestamp(event["created_at"]) < timestamp(cursor["created_at"]) : compare(event, cursor).positive?)

455 end

456 selected = matching.take(limit)

457 items = selected.map { |event| event.slice("id", "created_at", "type", "summary") }

458 next_cursor = (matching.length > limit) ? encode_cursor(selected.last, tenant, project_id, fixtures[:signing_key]) : nil

459 [

460 200, {

461 items: items,

462 next_cursor: next_cursor

463 }

464 ]

465 end

466 

467 def self.start(fixtures, seeded_bug: false)

468 ready = Queue.new

469 server = WEBrick::HTTPServer.new(

470 Port: 0, BindAddress: "127.0.0.1", AccessLog: [],

471 Logger: WEBrick::Log.new(File::NULL), StartCallback: -> { ready << true }

472 )

473 server.mount_proc("/") do |request, response|

474 status, body = handle(request, fixtures, seeded_bug)

475 response.status = status

476 response["content-type"] = "application/json"

477 response.body = JSON.generate(body)

478 end

479 worker = Thread.new { server.start }

480 Timeout.timeout(5) { ready.pop }

481 {

482 url: "http://127.0.0.1:#{server.config[:Port]}",

483 

484 close: -> {

485 server.shutdown

486 worker.join

487 }

488 }

489 # Always close the owned listener if startup is interrupted.

490 rescue Exception # standard:disable Lint/RescueException

491 server&.shutdown

492 worker&.join

493 raise

494 end

495 

496 def self.fetch(base, path, token)

497 request = Net::HTTP::Get.new(URI("#{base}#{path}"))

498 request["Authorization"] = "Bearer #{token}" if token

499 response = Net::HTTP.start(request.uri.host, request.uri.port, open_timeout: 5, read_timeout: 5) { |http| http.request(request) }

500 [response.code.to_i, JSON.parse(response.body)]

501 end

502end

503 

504if $PROGRAM_NAME == __FILE__

505 fixtures = PaginationFixtures.create

506 api = PaginationAPI.start(fixtures)

507 begin

508 status, body = PaginationAPI.fetch(api[:url], "/v1/projects/feed/events?limit=2", fixtures[:token_a])

509 puts JSON.generate(status: status, ids: body.fetch("items").map { |item| item.fetch("id") }, has_next_page: !body["next_cursor"].nil?)

510 ensure

511 api[:close].call

512 end

513end

514```

515 

300</details>516</details>

301 517 

302<details>518<details>

303 <summary>Seeded records and project access fixtures</summary>519 <summary>Seeded records and project access fixtures</summary>

520 Create test fixtures

521 

304```typescript522```typescript

305export function createFixtures() {523export function createFixtures() {

306 const tokenA = randomBytes(24).toString("base64url");524 const tokenA = randomBytes(24).toString("base64url");


371}589}

372```590```

373 591 

592```ruby

593require "json"

594require "securerandom"

595require "time"

596 

597module PaginationFixtures

598 def self.event(id, created_at, project_id, tenant_id = "tenant_a")

599 {

600 "id" => id,

601 

602 "created_at" => created_at,

603 

604 "project_id" => project_id,

605 "tenant_id" => tenant_id,

606 

607 "type" => "deployment",

608 

609 "summary" => "Synthetic event #{id}",

610 "internal_note" => "This field must never enter the HTTP response.",

611 

612 "raw_payload" => { "synthetic" => true }

613 }

614 end

615 

616 def self.create

617 token_a, token_b = SecureRandom.urlsafe_base64(24), SecureRandom.urlsafe_base64(24)

618 projects = {

619 "feed" => "Activity feed",

620 

621 "empty" => "Empty feed",

622 

623 "exact" => "Four events",

624 "large" => "Large feed",

625 

626 "precision" => "Precise timestamps",

627 

628 "other" => "Another project",

629 "private" => "Private project"

630 }.to_h do |id, name|

631 [

632 id, {

633 "tenant_id" => (id == "private") ? "tenant_b" : "tenant_a",

634 "name" => name

635 }

636 ]

637 end

638 feed = [["evt_105", "03"], ["evt_104", "02"], ["evt_103", "02"], ["evt_102", "02"], ["evt_101", "01"]].map do |id, second|

639 event(id, "2026-01-15T12:00:#{second}.123456Z", "feed")

640 end

641 events = feed + feed.take(4).map { |item| item.merge("project_id" => "exact") }

642 105.times do |index|

643 events << event(format("large_%03d", index), (Time.utc(2026, 1, 15, 12) + index).strftime("%Y-%m-%dT%H:%M:%S.123456Z"), "large")

644 end

645 events.concat(

646 [

647 event("precise_a", "2026-01-15T12:00:00.123999Z", "precision"),

648 event("precise_z", "2026-01-15T12:00:00.123001Z", "precision"),

649 event("other_1", "2026-01-15T12:00:00.123456Z", "other"),

650 event("other_2", "2026-01-15T11:59:59.123456Z", "other"),

651 event("private_1", "2026-01-15T12:00:00.123456Z", "private", "tenant_b"),

652 event("private_2", "2026-01-15T11:59:59.123456Z", "private", "tenant_b")

653 ]

654 )

655 {

656 sessions: {

657 token_a => "tenant_a",

658 token_b => "tenant_b"

659 },

660 

661 projects: projects,

662 events: events,

663 

664 signing_key: SecureRandom.random_bytes(32),

665 

666 token_a: token_a,

667 

668 token_b: token_b

669 }

670 end

671end

672 

673if $PROGRAM_NAME == __FILE__

674 fixtures = PaginationFixtures.create

675 puts JSON.generate(projects: fixtures[:projects].length, events: fixtures[:events].length)

676end

677```

678 

374</details>679</details>

375 680 

376<details>681<details>

377 <summary>HTTP contract and regression tests</summary>682 <summary>HTTP contract and regression tests</summary>

683 Test the example API

684 

378```typescript685```typescript

379test("five-event traversal crosses a timestamp tie and replays the same continuation", async () => {686test("five-event traversal crosses a timestamp tie and replays the same continuation", async () => {

380 const expected = ["evt_105", "evt_104", "evt_103", "evt_102", "evt_101"];687 const expected = ["evt_105", "evt_104", "evt_103", "evt_102", "evt_101"];


728});1035});

729```1036```

730 1037 

1038```ruby

1039require "minitest/autorun"

1040require_relative "api/main"

1041 

1042SEEDED_PAGINATION_BUG = !!ARGV.delete("--seeded")

1043ARGV << "--verbose"

1044 

1045class PaginationTest < Minitest::Test

1046 def setup

1047 @fixtures = PaginationFixtures.create

1048 @spec = JSON.parse(File.read(File.expand_path("support/openapi.json", __dir__)))

1049 @api = PaginationAPI.start(@fixtures, seeded_bug: SEEDED_PAGINATION_BUG)

1050 end

1051 

1052 def teardown

1053 @api&.fetch(:close)&.call

1054 end

1055 

1056 # This oracle implements only the keywords in this fixture's closed schemas.

1057 def conforms?(value, schema)

1058 if schema["$ref"]

1059 resolved = schema["$ref"].delete_prefix("#/").split("/").reduce(@spec) { |item, key| item.fetch(key) }

1060 return conforms?(value, resolved)

1061 end

1062 return schema["oneOf"].count { |choice| conforms?(value, choice) } == 1 if schema["oneOf"]

1063 

1064 case schema["type"]

1065 when "null"

1066 return value.nil?

1067 when "array"

1068 return value.is_a?(Array) && value.all? { |item| conforms?(item, schema.fetch("items", {})) }

1069 when "object"

1070 return false unless value.is_a?(Hash)

1071 

1072 properties = schema.fetch("properties", {})

1073 return false unless schema.fetch("required", []).all? { |key| value.key?(key) }

1074 return false if schema["additionalProperties"] == false && (value.keys - properties.keys).any?

1075 

1076 return properties.all? { |key, child| !value.key?(key) || conforms?(value[key], child) }

1077 when "string"

1078 return false unless value.is_a?(String)

1079 return false if value.length < schema.fetch("minLength", 0)

1080 return false if schema["pattern"] && !Regexp.new(schema["pattern"]).match?(value)

1081 

1082 if schema["format"] == "date-time"

1083 begin

1084 Time.iso8601(value)

1085 rescue ArgumentError

1086 return false

1087 end

1088 end

1089 end

1090 !schema["enum"] || schema["enum"].include?(value)

1091 end

1092 

1093 def request(project = "feed", parameters = {}, token: @fixtures[:token_a], detail: false)

1094 path = "/v1/projects/#{project}#{"/events" unless detail}?#{URI.encode_www_form(parameters)}"

1095 status, body = PaginationAPI.fetch(@api[:url], path, token)

1096 route = detail ? "/v1/projects/{project_id}" : "/v1/projects/{project_id}/events"

1097 schema = @spec.fetch("paths").fetch(route).fetch("get").fetch("responses").fetch(status.to_s).fetch("content").fetch("application/json").fetch("schema")

1098 assert conforms?(body, schema), "HTTP #{status} must match its closed public schema"

1099 [status, body]

1100 end

1101 

1102 def ids(body)

1103 body.fetch("items").map { |item| item.fetch("id") }

1104 end

1105 

1106 def page(project = "feed", parameters = {})

1107 status, body = request(project, parameters)

1108 assert_equal 200, status

1109 body

1110 end

1111 

1112 def error(code, project = "feed", parameters = {}, token: @fixtures[:token_a], detail: false, **query)

1113 parameters = parameters.merge(query) unless query.empty?

1114 status, body = request(project, parameters, token: token, detail: detail)

1115 expected_status, expected_body = PaginationAPI.failure(code)

1116 assert_equal expected_status, status

1117 assert_equal JSON.parse(JSON.generate(expected_body)), body

1118 body

1119 end

1120 

1121 def test_tuple_pagination_and_replay

1122 first = page("feed", limit: 2)

1123 assert_equal %w[evt_105 evt_104], ids(first)

1124 second = page("feed", limit: 2, cursor: first.fetch("next_cursor"))

1125 assert_equal %w[evt_103 evt_102], ids(second)

1126 assert_equal second, page("feed", limit: 2, cursor: first.fetch("next_cursor"))

1127 third = page("feed", limit: 2, cursor: second.fetch("next_cursor"))

1128 assert_equal ["evt_101"], ids(third)

1129 assert_nil third["next_cursor"]

1130 end

1131 

1132 def test_ties_with_limit_three

1133 first = page("feed", limit: 3)

1134 assert_equal %w[evt_105 evt_104 evt_103], ids(first)

1135 last = page("feed", limit: 3, cursor: first.fetch("next_cursor"))

1136 assert_equal %w[evt_102 evt_101], ids(last)

1137 assert_nil last["next_cursor"]

1138 end

1139 

1140 def test_submillisecond_precision

1141 first = page("precision", limit: 1)

1142 assert_equal ["precise_a"], ids(first)

1143 assert_equal ["precise_z"], ids(page("precision", limit: 1, cursor: first.fetch("next_cursor")))

1144 end

1145 

1146 def test_limit_boundaries

1147 assert_equal 25, ids(page("large")).length

1148 assert_equal 1, ids(page("large", limit: 1)).length

1149 assert_equal 100, ids(page("large", limit: 100)).length

1150 end

1151 

1152 def test_invalid_limits

1153 ["", "0", "101", "-1", "1.5", "1e2", " 2", "NaN", "Infinity"].each do |limit|

1154 error("invalid_limit", "feed", limit: limit)

1155 end

1156 error("invalid_limit", "feed", [["limit", "2"], ["limit", "3"]])

1157 end

1158 

1159 def test_final_pages

1160 assert_empty ids(page("empty"))

1161 assert_nil page("empty")["next_cursor"]

1162 assert_nil page("feed", limit: 100)["next_cursor"]

1163 first = page("exact", limit: 2)

1164 last = page("exact", limit: 2, cursor: first.fetch("next_cursor"))

1165 assert_equal 2, ids(last).length

1166 assert_nil last["next_cursor"]

1167 end

1168 

1169 def test_authentication_precedence

1170 [nil, "wrong", "invalid token"].each do |token|

1171 error(

1172 "unauthenticated", "feed", {

1173 cursor: "broken",

1174 limit: "0"

1175 }, token: token

1176 )

1177 end

1178 end

1179 

1180 def test_authorization_precedence

1181 private_error = error("not_found", "private", cursor: "broken", limit: "0")

1182 assert_equal private_error, error("not_found", "missing", cursor: "broken", limit: "0")

1183 end

1184 

1185 def test_project_cursor_scope

1186 cursor = page("other", limit: 1).fetch("next_cursor")

1187 error("invalid_cursor", "feed", cursor: cursor)

1188 end

1189 

1190 def test_tenant_cursor_scope

1191 _, body = request("private", { limit: 1 }, token: @fixtures[:token_b])

1192 error("invalid_cursor", "feed", cursor: body.fetch("next_cursor"))

1193 end

1194 

1195 def test_malformed_cursors

1196 cursor = page("feed", limit: 2).fetch("next_cursor")

1197 ["", "broken", "a.b.c", cursor + "=", "!" + cursor, cursor.sub(/.$/, cursor.end_with?("A") ? "B" : "A")].each do |token|

1198 error("invalid_cursor", "feed", cursor: token)

1199 end

1200 error("invalid_cursor", "feed", [["cursor", cursor], ["cursor", cursor]])

1201 end

1202 

1203 def test_signed_invalid_cursors

1204 valid = {

1205 "version" => 1,

1206 "tenant_id" => "tenant_a",

1207 "project_id" => "feed",

1208 "created_at" => "2026-01-15T12:00:02.123456Z",

1209 "id" => "evt_104"

1210 }

1211 [

1212 valid.merge("version" => 2), valid.merge("version" => 1.0), valid.merge("extra" => true), valid.except("id"),

1213 valid.merge("id" => ""), valid.merge("id" => 5), valid.merge("created_at" => "2026-02-30T00:00:00Z"), nil, []

1214 ].each do |value|

1215 payload = Base64.urlsafe_encode64(JSON.generate(value), padding: false)

1216 signature = Base64.urlsafe_encode64(OpenSSL::HMAC.digest("SHA256", @fixtures[:signing_key], payload), padding: false)

1217 error("invalid_cursor", "feed", cursor: "#{payload}.#{signature}")

1218 end

1219 end

1220 

1221 def test_public_event_fields

1222 page("large", limit: 100).fetch("items").each do |event|

1223 assert_equal %w[created_at id summary type], event.keys.sort

1224 end

1225 end

1226 

1227 def test_schema_oracle

1228 schema = @spec.fetch("components").fetch("schemas").fetch("Event")

1229 valid = page.fetch("items").first

1230 assert conforms?(valid, schema)

1231 [valid.merge("tenant_id" => "secret"), valid.except("id"), valid.merge("id" => 1), valid.merge("created_at" => "bad-date")].each do |event|

1232 refute conforms?(event, schema)

1233 end

1234 end

1235 

1236 def test_project_detail

1237 status, body = request(

1238 "feed", {

1239 cursor: "broken",

1240 limit: "0"

1241 }, detail: true

1242 )

1243 assert_equal 200, status

1244 assert_equal(

1245 {

1246 "id" => "feed",

1247 "name" => "Activity feed"

1248 }, body

1249 )

1250 error("not_found", "private", {}, detail: true)

1251 error("unauthenticated", "feed", {}, token: nil, detail: true)

1252 end

1253 

1254 def test_openapi_contract

1255 assert_equal "3.1.0", @spec["openapi"]

1256 operation = @spec.fetch("paths").fetch("/v1/projects/{project_id}/events").fetch("get")

1257 assert_equal "listProjectEvents", operation["operationId"]

1258 limit = operation.fetch("parameters").find { |parameter| parameter["name"] == "limit" }.fetch("schema")

1259 assert_equal(

1260 {

1261 "type" => "integer",

1262 "minimum" => 1,

1263 "maximum" => 100,

1264 "default" => 25

1265 }, limit

1266 )

1267 assert_equal %w[200 400 401 404], operation.fetch("responses").keys.sort

1268 assert_equal "bearer", @spec.dig("components", "securitySchemes", "session", "scheme")

1269 end

1270end

1271```

1272 

731</details>1273</details>

732 1274 

733<details>1275<details>

734 <summary>Evidence capture</summary>1276 <summary>Evidence capture</summary>

1277 Reproduce the issue

1278 

735```typescript1279```typescript

736mkdirSync(output, { recursive: true });1280mkdirSync(output, { recursive: true });

737const states = [];1281const states = [];


815);1359);

816```1360```

817 1361 

1362```ruby

1363require "digest"

1364require "fileutils"

1365require "rbconfig"

1366require "timeout"

1367require_relative "../api/main"

1368 

1369output = File.expand_path(ARGV.fetch(0, "evidence"))

1370FileUtils.mkdir_p(output)

1371test_path = File.expand_path("../test.rb", __dir__)

1372states = [["red", ["--seeded"]], ["green", []]].map do |name, arguments|

1373 log_path = File.join(output, "#{name}.log")

1374 pid = if arguments.empty?

1375 Process.spawn(RbConfig.ruby, test_path, out: log_path, err: [:child, :out])

1376 else

1377 Process.spawn(RbConfig.ruby, test_path, "--seeded", out: log_path, err: [:child, :out])

1378 end

1379 begin

1380 status = Timeout.timeout(30) { (Process.wait2(pid) or raise "Child process was not reaped").last }

1381 rescue Timeout::Error

1382 Process.kill("KILL", pid)

1383 Process.wait(pid)

1384 raise

1385 end

1386 {

1387 name: name,

1388 command: [RbConfig.ruby, test_path, *arguments],

1389 exit_code: status.exitstatus,

1390 signal: status.termsig

1391 }

1392end

1393 

1394observed = [true, false].to_h do |seeded|

1395 fixtures = PaginationFixtures.create

1396 api = PaginationAPI.start(fixtures, seeded_bug: seeded)

1397 begin

1398 pages = []

1399 state = { cursor: nil }

1400 loop do

1401 raise "Traversal exceeded fixture bound" if pages.length >= 3

1402 

1403 parameters = { limit: 2 }

1404 parameters[:cursor] = state[:cursor] if state[:cursor]

1405 status, body = PaginationAPI.fetch(api[:url], "/v1/projects/feed/events?#{URI.encode_www_form(parameters)}", fixtures[:token_a])

1406 pages << {

1407 status: status,

1408 body: body

1409 }

1410 state[:cursor] = body.fetch("next_cursor")

1411 break unless state[:cursor]

1412 end

1413 errors = [["feed", fixtures[:token_a]], ["feed", nil], ["private", fixtures[:token_a]]].map do |project, token|

1414 status, body = PaginationAPI.fetch(api[:url], "/v1/projects/#{project}/events?cursor=broken", token)

1415 {

1416 status: status,

1417 body: body

1418 }

1419 end

1420 [

1421 seeded ? :red : :green, {

1422 pages: pages,

1423 errors: errors

1424 }

1425 ]

1426 ensure

1427 api[:close].call

1428 end

1429end

1430sources = %w[api/main.rb fixtures/main.rb test.rb reproduce/main.rb support/openapi.json].to_h do |name|

1431 [name, Digest::SHA256.file(File.expand_path("../#{name}", __dir__)).hexdigest]

1432end

1433File.write(File.join(output, "observed-http.json"), JSON.pretty_generate(observed))

1434File.write(

1435 File.join(output, "run-manifest.json"),

1436 JSON.pretty_generate(

1437 execution: "Synthetic loopback HTTP fixture; no external service", recorded_at: Time.now.utc.iso8601,

1438 ruby: RUBY_VERSION, source_sha256: sources, states: states,

1439 baseline: "Deliberately seeded timestamp-only continuation; not a historical customer defect",

1440 correction: "Descending timestamp-and-ID continuation retaining fractional precision"

1441 )

1442)

1443unless states.fetch(0)[:exit_code] == 1 && states.fetch(1)[:exit_code] == 0

1444 raise "Expected seeded failure and corrected success; inspect red.log and green.log"

1445end

1446 

1447puts JSON.generate(

1448 execution: "synthetic-loopback-http", red_exit: states.fetch(0)[:exit_code], green_exit: states.fetch(1)[:exit_code],

1449 green_pages: observed.fetch(:green)[:pages].map { |page| page[:body].fetch("items").map { |item| item.fetch("id") } }, evidence_directory: output

1450)

1451```

1452 

818</details>1453</details>

819 1454 

820## Prepare the input packet1455## Prepare the input packet

Details

27 - list unresolved questions27 - list unresolved questions

28 28 

29 Do not change files outside the approved list.29 Do not change files outside the approved list.

30 alternativeModelName: GPT-6.2 Astra

30 suggestedEffort: medium31 suggestedEffort: medium

31relatedLinks:32relatedLinks:

32 - label: Plugins33 - label: Plugins

Details

48 Do not overwrite the source model or treat unsupported assumptions as facts.48 Do not overwrite the source model or treat unsupported assumptions as facts.

49 Flag inputs that need approval.49 Flag inputs that need approval.

50 suggestedModel: gpt-6-astra50 suggestedModel: gpt-6-astra

51 alternativeModelName: GPT-6.2 Astra

51 suggestedEffort: medium52 suggestedEffort: medium

52relatedLinks:53relatedLinks:

53 - label: "OpenAI Academy: Business operations teams"54 - label: "OpenAI Academy: Business operations teams"

Details

52 Do not send emails, post Slack messages, create docs, update CRM records,52 Do not send emails, post Slack messages, create docs, update CRM records,

53 assign owners, or expose private data until I review and approve each53 assign owners, or expose private data until I review and approve each

54 action.54 action.

55 alternativeModelName: GPT-6.2 Astra

55 suggestedEffort: low56 suggestedEffort: low

56relatedLinks:57relatedLinks:

57 - label: Plugins58 - label: Plugins

whats-new.md +25 −1

Details

6 6 

7 7 

8 8 

9## [November 17, 2026](https://learn.chatgpt.com/docs/whats-new/gpt-62-astra-sol)

10 

11 

12 

13 

14 

15 

16 

17 

18 

19 

20 

21### [GPT-6.2](https://learn.chatgpt.com/docs/whats-new/gpt-62-astra-sol)

22 

23GPT-6.2 Astra and Sol launch in ChatGPT Work, Codex, and the API. Use Astra

24for your hardest projects, from implementing and testing complex code

25changes to building slides that follow a template. Choose Sol for everyday

26coding, writing, and multistep workflows.

27 

28 

29 

30 

31[Read the full update →](https://learn.chatgpt.com/docs/whats-new/gpt-62-astra-sol)

32 

9## November 9–13, 202633## November 9–13, 2026

10 34 

11 35 


493 517 

494### Take on demanding work with GPT-6 Astra518### Take on demanding work with GPT-6 Astra

495 519 

496[GPT-6 Astra](https://learn.chatgpt.com/docs/models#gpt-6-astra) combines advanced reasoning, computer520[GPT-6 Astra](https://learn.chatgpt.com/docs/models?surface=app#app-gpt-6-astra) combines advanced reasoning, computer

497use, and stronger judgment for complex work across code, apps, and research in521use, and stronger judgment for complex work across code, apps, and research in

498Codex and ChatGPT Work. Use it to carry out a workflow, check the result, and522Codex and ChatGPT Work. Use it to carry out a workflow, check the result, and

499produce a document, spreadsheet, or presentation that fits your templates and523produce a document, spreadsheet, or presentation that fits your templates and

whats-new/gpt-62-astra-sol.md +152 −0 created

Details

1# GPT-6.2

2 

3> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

4 

5[Back to What's new](https://learn.chatgpt.com/docs/whats-new#november-17-2026)

6 

7November 17, 2026

8 

9 

10 

11 

12GPT-6.2 Astra and Sol launch in ChatGPT Work, Codex, and the API. Choose Astra for your hardest projects or Sol for everyday coding and writing.

13 

14 

15 

16 

17 

18 

19 

20 

21 

22 

23 

24 

25 

26 

27 

28## What’s new

29 

30 

31 

32 

33### ChatGPT Work

34 

35 

36 

37 

38Use Astra or Sol in Work on the web, desktop, or mobile with Plus, Pro, Business, Enterprise, or Edu. Enterprise and Edu admins must first [enable the models in workspace settings](https://learn.chatgpt.com/docs/enterprise/workspace-model-availability#gpt-62-astra-and-gpt-62-sol-in-enterprise-and-edu).

39 

40On supported consumer plans, new Work chats default to Sol at **Light** reasoning effort. Enterprise workspaces with model access default to Sol at **Medium**. If you see the Power slider, open **Advanced** to [choose a model and reasoning effort](https://learn.chatgpt.com/docs/models).

41 

42 

43 

44 

45 

46 

47 

48 

49 

50### Codex

51 

52 

53 

54 

55In the Codex app and CLI, choose Astra to trace a bug across services, fix it, and test the affected workflows. Choose Sol to review a pull request or revise code in response to feedback. Use the model picker in the app or `/model` in the CLI.

56 

57Codex and Work share usage. Pro $200 subscribers can use Ultrafast with Sol. Pro $500 subscribers can use it with either model, as can eligible Enterprise and Edu workspaces once an owner enables Ultrafast. See [speed options](https://learn.chatgpt.com/docs/agent-configuration/speed#gpt-62-speed-options) and [plan and client availability](https://learn.chatgpt.com/docs/pricing#feature-availability).

58 

59 

60 

61 

62 

63 

64 

65 

66 

67### Chat

68 

69 

70 

71 

72To use GPT-6.2 Astra or Sol in ChatGPT, open Work. For the models you can select in Chat, see [models in ChatGPT](https://help.openai.com/en/articles/20001354-gpt-6-and-other-models-in-chatgpt).

73 

74 

75 

76 

77 

78 

79 

80 

81 

82 

83 

84 

85### Responses API

86 

87 

88 

89 

90Use `gpt-6.2-astra` or `gpt-6.2-sol` in the Responses API. Both models support Ultrafast at launch.

91 

92In standard, single-agent mode, you can change reasoning effort or switch from plain text to structured output between replies. Append a `configuration_update` item before the next user message and keep the request-level settings unchanged. [Keeping earlier input intact](https://developers.openai.com/api/docs/guides/keep-prefix-unchanged) helps preserve reasoning across turns and keeps that input eligible for prompt caching.

93 

94 

95 

96 

97 

98If your project uses data residency, both models support US and EU regions for Standard, Fast, and Batch processing. Ultrafast supports US data residency only. See the [GPT-6.2 migration guide](https://developers.openai.com/api/docs/guides/latest-model?model=gpt-6.2-astra) and [API pricing by service tier](https://developers.openai.com/api/docs/pricing#text-tokens).

99 

100 

101 

102 

103 

104 

105 

106 

107 

108 

109 

110 

111 

112 

113## Choose your model

114 

115 

116 

117 

118 

119 

120### GPT-6.2 Astra

121 

122Astra is the stronger choice for complex reasoning. It can work through a research question across multiple sources and check its conclusions against the data.

123 

124#### Example use cases

125 

126- **Diagnose a bug across services.** Give Astra the failing workflow and ask it to trace the cause, implement a fix, and run the affected tests.

127- **Build a deck from a report.** Give Astra the report and your slide template. Ask it to present the findings in your team’s layout and writing style.

128- **Investigate a research question.** Give Astra the sources and ask it to compare their findings and identify where the evidence disagrees.

129 

130 

131 

132 

133 

134 

135### GPT-6.2 Sol

136 

137Sol handles everyday coding, writing, and work that takes several steps. Compared with GPT-6.1 Sol, it lets you complete more tasks on the same paid plan.

138 

139#### Example use cases

140 

141- **Review a pull request.** Ask Sol to walk through a change and flag issues for the author to address.

142- **Revise code after review.** Give Sol the reviewer’s feedback and ask it to update the implementation and run the relevant tests.

143- **Turn meeting notes into a project brief.** Ask Sol to pull together decisions, next steps, and open questions from your notes.

144 

145 

146 

147 

148 

149 

150 

151 

152Explore the benchmarks and safety evaluations in the [release announcement](https://openai.com/index/introducing-gpt-6-2-astra-sol/).

workflows.md +3 −0

Details

317reproduction steps, preserves important constraints, and says how to verify the317reproduction steps, preserves important constraints, and says how to verify the

318change.318change.

319 319 

320For GPT-6.2 guidance on reasoning effort, subagents, and visual work, see

321[Prompting GPT-6.2 in Codex](https://learn.chatgpt.com/guides/prompting-gpt-6-2-astra).

322 

320<a id="goal-mode"></a>323<a id="goal-mode"></a>

321 324 

322For a multi-step task, enter `/plan` in the app composer when you want Codex to325For a multi-step task, enter `/plan` in the app composer when you want Codex to