Codex CLI Cloud

Start and reopen Codex cloud chats from the terminal, choose a project environment, and review local and cloud tasks in the Agent Command Center.

Published

Codex CLI Cloud

You can leave a test investigation running in the cloud, fix a bug on your laptop, and pick up the investigation from another machine. In Codex CLI 0.174.0, released December 4, the choice starts at your terminal. Use codex --cloud for a new conversation and codex resume --cloud for one already underway.

Start a cloud chat while you keep working locally

Suppose the checkout tests have started failing intermittently. You want someone to trace the failures, but you also have a receipt-formatting fix open. From the project directory, run:

Shell
codex --cloud

In the new chat, give Codex a question it can answer from the repository. For example, “Run the checkout tests. Find the first failing assertion and tell me what evidence would distinguish a timing issue from a bad fixture.” Leave that investigation running and work on the receipt in your local editor. Each cloud task gets its own workspace and can continue while your laptop sleeps. Give it a revision it can access. An edit you just typed locally belongs to a different working copy. December 4 CLI release notes

What you need. OpenAI lists cloud chats for ChatGPT Plus, Pro, Business, and Enterprise/Education. Sign in with an eligible ChatGPT account. API-key access alone covers local CLI use and excludes cloud chats. On a managed team, check the workspace’s Cloud access settings too. Plan and surface availability · CLI setup and team settings

Choose where the new chat runs

An environment is the prepared workspace a task starts from, including the repositories and tools it can use. If the default environment is available, a task such as writing a script against sample data can start there. For checkout tests that need a private package registry, choose a published environment with that repository, its dependencies, and the required access. Enterprise workspaces require a published environment you can access. Cloud environment setup

To select a saved environment at launch, use codex --cloud --env <ENV_ID>. Replace the entire placeholder, including the angle brackets, with the environment’s ID. When you select a saved environment in the terminal for a new cloud chat, Codex remembers that choice for this project and local user. Next time you start a chat here, it can reuse the choice. Choosing Default clears the preference. You can give the checkout service and the documentation site different defaults without changing a team setting. How Codex saves the project preference

Two tracks reach a cloud chat. The new-chat track passes an environment selector, while the resume track goes directly to the existing chat.
Choose an environment when starting work. A resumed conversation already has one.

Reopen the investigation from another machine

At your other computer, use the CLI with the same ChatGPT workspace and run:

Shell
codex resume --cloud

Pick the checkout investigation. The thread carries its saved environment and model. Ask, “Which assertion failed first?” and continue from the output already in the chat. The project preference you set on the first laptop lives in its local configuration. You can reopen this particular investigation without recreating that preference on the second machine. Cloud startup and resume behavior

This is especially helpful during an on-call shift. Before leaving your desk, ask for a failing test and the smallest input that triggers it. At the second machine, you have a specific result to inspect. Starting another chat would give you a fresh workspace and another investigation to reconcile. How cloud tasks keep their working state

Triage local and cloud tasks in the Agent Command Center

Run codex agents to open the Agent Command Center. Suppose the receipt fix needs your review, the cloud investigation is still running, and a documentation task has finished. The list brings local tasks and tasks from connected cloud sessions together. Open the receipt task first if someone is waiting for the fix. Show more loads additional results from connected sources. CLI command reference · How the mixed task list loads

To keep that list visible as you read a conversation, enable the features.tui_workspace setting and use the full-screen conversation view on a wide terminal. The list docks on the left and you can resize it. Select a task and focus moves back to its conversation while the dock stays open. On a narrow terminal, the focused pane takes the screen. The flag controls this layout. Docked Command Center behavior

Local and cloud task cards feed one list, with a selector pointing to the conversation beside it.
Both sources feed the task list. The dock lets you keep your place in it while reading a conversation.

Review the diff beside the chat

Back in the local receipt task, Codex says it only changed the date format. Type /diff inside the chat. A diff shows the lines added and removed in your working copy. When the sidebar is available, a read-only Diff tab opens beside the explanation. Look at the changed assertion. Does it still check the receipt total, or did the edit weaken that check too? Ask about that line while you can see both the patch and the answer. Without the sidebar, the diff opens in a full-screen viewer. How the diff sidebar works

Which work belongs in the cloud?

The biggest payoff is an independent investigation with a clear stopping point. A maintainer can ask for a failing example while keeping a release fix moving locally. A developer changing machines gets the next biggest benefit when the existing chat already contains expensive-to-recreate evidence. For someone supervising several tasks, the Command Center pays off at the moment two tasks need different decisions.

Two smaller cases depend on what the work needs. A release engineer could give a fresh cloud task the published environment to check whether the documented setup still runs the tests. A reviewer checking a small local patch could stay in the local chat and read the diff there. If a failure depends on unsaved files or a device attached to your desk, keep that investigation local. For parallel changes on the same machine, the CLI worktree guide explains separate working copies. For model choice, see Codex models by surface and task.

Two small tools a platform team could build

Start with an environment readiness check. Two December 4 issue reports describe developers losing the trail when a cloud environment fails. One developer saw two repositories in the picker but could provision neither. Another saw a local SSH configuration error after the cloud environment had already failed to start. A platform team could pilot a check for one repository that records whether checkout, dependency installation, and a known test each succeeded. The deliverable is the first failed step and who owns it. A useful check needs access comparable to the task it diagnoses. A passing run on a maintainer’s laptop proves little. Repository provisioning report · Environment startup report

A shift handoff could start with a ticket template. One release-day report describes a CLI-created chat that could be resumed in the terminal but was missing from the reporter’s web and desktop lists. An on-call team could record the chat name, workspace, last verified finding, and next question in its existing ticket. First try it when the same developer changes machines. A ticket can preserve the investigation notes for a colleague, but it grants no access to the original chat. This is worth a template before it is worth a separate product. Cross-surface discovery report

Which ChatGPT plan supports Codex cloud chats?

OpenAI lists Plus, Pro, Business, and Enterprise/Education for cloud chats. In Enterprise, you also need access to a published environment.

Is the CLI just the terminal?

The terminal is where you type shell commands. Codex CLI is a program you run there. Enter codex --cloud at the shell prompt. Once a conversation is open, enter slash commands such as /diff in Codex itself.

Can I use Codex for coding?

Yes. You can ask a cloud task to inspect a repository, change code, and run tests in its own workspace. Use a local session when the task needs the working copy or tools on your machine.

If the decision is which terminal tool to adopt, Claude Code alternatives and terminal costs covers the team buying decision. For help building the environment readiness check, see AI production systems.

Published
Category
Build
Related Articles
GPT-Live API: Build a Voice App With WebRTC, a Sideband and Delegation

GPT-Live API: Build a Voice App With WebRTC, a Sideband and Delegation

Build a voice app on the GPT-Live API: open a WebRTC session, attach a sideband, delegate to a backend, keep state, test it and price each call.BuildDec 5
AI SDK 7.1 for TypeScript agents: what to adopt first

AI SDK 7.1 for TypeScript agents: what to adopt first

Which AI SDK 7.1 features belong in your agent? Start with tool ordering and steering, check your 7.0 patch, then choose batch, audio or durable execution.BuildDec 5
Codex Models by Surface and Task

Codex Models by Surface and Task

Choose a Codex model for your task and plan, see where GPT-5.6 threads go, and set a default or a one-run CLI override.BuildDec 5
Claude Settings JSON

Claude Settings JSON

Find Claude Code’s settings.json, see which file wins, and copy five examples for permissions, hooks, models, the status line and compaction.BuildDec 5
How to Run Qwen 4 Locally

How to Run Qwen 4 Locally

Run Qwen4-35B-A3B with Ollama, LM Studio, llama.cpp or vLLM. Match GGUF sizes to your GPU or Mac and leave room for context.BuildDec 5
OpenRouter API Key: Create a Key and Send Your First Request

OpenRouter API Key: Create a Key and Send Your First Request

Create an OpenRouter API key, set a spending limit, and send your first request with curl or the OpenAI Python SDK. See the documented reply and error fixes.BuildDec 5
OpenAI Health Alerts

OpenAI Health Alerts

Choose an OpenAI API alert for errors, cache misses, rate limits or Fast tier spillover. Set its scope and route triggers and recoveries to the right team.BuildDec 4
Gemini Interactions API: Change an Agent's Rules and Tools Mid-Conversation

Gemini Interactions API: Change an Agent's Rules and Tools Mid-Conversation

How system_input steps on the Gemini Interactions API change an agent's rules and tools mid-conversation, why the cache survives, and where it stops.BuildDec 4
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.