Codex CLI 0.171: Power-User Guide to Workspace, Remote Exec and GPT-6.2

Last updated: November 21, 2026

Codex CLI 0.171.0, dated November 20, 2026 in OpenAI’s changelog, turns the terminal workspace on by default and makes GPT-6.2 Sol the default model selection. It also adds codex exec –remote for headless runs on an app server, /rc for remote control, composer undo and redo, and custom MCP status lines.

Contents

What changed in 0.170 and 0.171

OpenAI shipped two stable Codex CLI releases after version 0.169. The ChatGPT and Codex changelog dates 0.170.0 to November 18, 2026 and 0.171.0 to November 20, 2026. The full notes are also on the GitHub release page for rust-v0.171.0.

The main new features, taken from the official release notes:

Feature Version What it does
Terminal workspace on by default 0.171.0 Shows searchable document previews, image previews and subagent transcripts alongside the main conversation
GPT-6.2 Sol and Astra in the catalog 0.171.0 Adds both models, with Sol as the default catalog selection
codex exec --remote <ADDR> 0.171.0 Starts or resumes noninteractive sessions on an existing app server
/rc and /remote 0.171.0 Manage local remote control and show device pairing codes from the terminal UI
Composer undo and redo 0.171.0 Configurable shortcuts that also restore attachments and large pastes
Custom MCP status lines 0.171.0 Select and author status lines through /statusline when tui_extensions_statusline is enabled
Realtime voice negotiation 0.170.0 Adds WebRTC negotiation for realtime voice calls in the terminal UI
Same-named MCP servers 0.170.0 Experimental support for identically named MCP servers across environments

Our earlier Codex CLI 0.169 guide to side chats, providers and trust covers the release that came just before these changes.

Why this release matters

Three changes affect daily use. First, document previews and subagent transcripts now appear in the terminal view without extra setup.

Second, codex exec --remote lets scripts and CI jobs reuse an already configured app server instead of setting up credentials on every machine.

Third, the default model changes. Users who rely on the catalog default now start on GPT-6.2 Sol, which OpenAI’s models page recommends for everyday coding and says costs fewer credits per token than GPT-6.2 Astra at Standard speed.

How to update and choose a model

  1. Install the release. Run npm install -g @openai/codex@0.171.0, the command shown in the official changelog.
  2. Start a session. Open a project directory and run codex. The workspace is enabled by default in this version.
  3. Confirm or change the model. Sol is the default catalog selection. To choose explicitly, run codex --model gpt-6.2-sol or codex -m gpt-6.2-astra.
  4. Pin it for your team. Add model = "gpt-6.2-sol" to config.toml so shared configurations do not depend on the catalog default.
  5. Adjust context if needed. OpenAI lists a default Codex context of 500,000 tokens for GPT-6.2 Sol and 272,000 tokens for GPT-6.2 Astra. Both support up to 1 million tokens when you set model_context_window in config.toml.

The Codex models page says GPT-6.2 Astra and Sol are available in ChatGPT Work and Codex on supported plans and clients, and points to the Help Center for plan availability, pricing and usage limits. For API prices and migration notes, see our GPT-6.2 Astra and Sol pricing and API guide.

Run headless turns on a remote app server

The pull request that added remote execution explains how codex exec --remote <ADDR> works:

  • The turn runs with the existing app server’s configuration and credentials.
  • You can start a new thread or resume an existing one by UUID.
  • Output can be human-readable or JSON, which suits pipelines that parse completion events.
  • Optional bearer-token authentication reads the token from an environment variable passed with --remote-auth-token-env.
  • Remote options are accepted before or after exec, and conflicting endpoints are rejected.

Codex also reports an error if the server disconnects before the turn finishes.

Workspace, undo and status line changes

Workspace. In 0.169 the terminal workspace was opt-in. In 0.171 it is enabled by default and includes searchable document previews, image previews and subagent transcripts.

Undo and redo. According to the composer undo pull request, the default undo shortcuts are Alt+Z on Unix, Ctrl+Z on Windows and F7, with Super+Z also available on macOS. Adding Shift performs redo. The composer.undo and composer.redo actions can be remapped in the keymap picker. This applies to the non-Vim composer.

Remote control. Type /rc or /remote to manage local remote control and display device pairing codes without leaving the terminal UI.

Status lines. With tui_extensions_statusline enabled, /statusline lets you select or author a custom status line backed by an MCP server.

Codex CLI 0.171 vs 0.169

Area 0.169 (November 13) 0.170 and 0.171 (November 18 and 20)
Terminal workspace Opt-in, with multiple side-chat tabs On by default, with document, image and subagent previews
Default model Earlier catalog default GPT-6.2 Sol
Noninteractive runs Local codex exec Adds codex exec --remote for existing app servers
Composer editing No undo or redo listed Configurable undo and redo
Voice Not listed WebRTC negotiation for realtime voice calls

For earlier features, see our Codex CLI 0.167 agent command center guide. If you compare terminal agents, our GitHub Copilot CLI 1.0.111 guide and Claude Code Code Mode guide cover the nearest competitors.

Workflows that use the new features

  • Shared CI runner: keep one configured app server and point jobs at it with codex exec --remote, choosing JSON output so the job can parse the result.
  • Follow-up runs: resume the same thread by UUID so a second job continues the first job’s context.
  • Subagent review: ask Codex to split an investigation across subagents, then read their transcripts in the workspace before accepting changes.
  • Model by task: use Sol for routine edits and switch to Astra with -m gpt-6.2-astra for bugs that cross several services, as the models page suggests.

A useful prompt pattern for remote runs is to state the scope, the checks and the expected output, for example: “Review the current changes, run the unit tests, and report failing tests as a JSON list.”

Limitations

  • Remote runs need a server: codex exec --remote works only against an existing app server and rejects active threads and unsupported configuration overrides.
  • Feature flag for status lines: custom MCP status lines require tui_extensions_statusline.
  • Experimental MCP change: support for same-named MCP servers across environments is marked experimental.
  • Vim mode: the new undo and redo shortcuts are for the non-Vim composer.
  • Plan details elsewhere: the models page refers readers to the Help Center for plan limits.

Frequently asked questions

What is new in Codex CLI 0.171?

Codex CLI 0.171.0, dated November 20, 2026 in OpenAI’s changelog, turns the terminal workspace on by default, makes GPT-6.2 Sol the default model catalog selection, and adds codex exec –remote, the /rc and /remote commands, composer undo and redo, and custom MCP status lines.

What does codex exec –remote do?

It runs a noninteractive turn on an existing Codex app server, using that server’s configuration and credentials. It can start a new thread or resume one by UUID, print human-readable or JSON output, and read a bearer token from an environment variable named with –remote-auth-token-env.

How do I undo typing in the Codex CLI composer?

In the non-Vim composer, the default undo shortcuts are Alt+Z on Unix, Ctrl+Z on Windows and F7, with Super+Z also available on macOS. Add Shift to redo. Both actions can be remapped in the keymap picker.

Which model does Codex CLI 0.171 use by default?

Version 0.171.0 makes GPT-6.2 Sol the default catalog selection. You can still choose another model with codex -m, for example codex -m gpt-6.2-astra, or set model in config.toml.

Sources

Image: OpenAI logo (symbol) by OpenAI, public domain, via Wikimedia Commons. Placed on a white background and resized. OpenAI and Codex are trademarks of OpenAI. FreeAnswers is not affiliated with or endorsed by OpenAI.

Related guide: DreamCoder AI guide to the tiling coding harness, setup and pricing.

Related answers

1 thought on “Codex CLI 0.171: Power-User Guide to Workspace, Remote Exec and GPT-6.2”

Leave a Comment