codex cloud does not discover current Cloud environments
codex cloud does not discover current Cloud environments
What version of Codex CLI is running?
codex-cli 0.160.0, the npm latest release at the time of this check.
Authentication
ChatGPT authentication. The CLI and desktop app use the same account. Token refresh succeeds. No API key is in use.
Platform
macOS, Darwin 24.6.0 arm64 arm. I ran these checks through a terminal PTY.
What issue are you seeing?
I can see two owned, Private environments in Settings > Codex Cloud. Neither has an Unpublished badge. The settings catalog returns both environments with current versions when requested with scope=user&omitDraft=true; it returns no further page. The workspace catalog returns zero environments. Legacy Codex Cloud shows “No cloud environments yet”.
On the same account, codex cloud shows only “All Environments (Global)” in its environment picker. I get the same result from a checkout with a GitHub remote and from /tmp.
An explicit submission exits 1 with:
Error: no cloud environments are available for this workspace
The CLI's catalog requests return HTTP 200. Its repository-specific lookup returns zero environments. codex cloud list --json returns {"tasks":[],"cursor":null}; I understand that this is an execution-task list, not an environment inventory.
What steps can reproduce the bug?
- Use a ChatGPT account with current Cloud environments visible in Settings > Codex Cloud and no environments in Legacy Codex Cloud.
- Authenticate the latest CLI with that account.
- Run
codex cloud, open the environment picker, and inspect the choices without submitting. - Compare the picker from the repository checkout and from
/tmp. - Try
codex cloud exec --env '<environment identifier>' --branch main --attempts 1 'Read-only environment canary; report pwd and git HEAD, then stop.'.
The submission above fails during environment resolution before creating a task. No canary has run.
What is the expected behavior?
The CLI should list accessible current Cloud environments and accept the supported identifier for fresh task dispatch. If this environment type requires a different CLI route, please document the command and identifier mapping.
The CLI documentation describes task submission through codex cloud exec --env, and the Cloud overview describes starting Cloud work from the CLI.
Diagnostic evidence
- Current settings load
/api/codex-cloud/v1/environment-configs?scope=user&limit=100&omitDraft=true. Its entries useprovider=caas, stable IDs with anasenvcfg_component, and version IDs with acecfgver_component. - CLI 0.160.0's environment discovery code queries
/backend-api/wham/environments/by-repo/github/OWNER/REPOand/backend-api/wham/environments. - Its resolve_environment_id function rejects an empty catalog before matching
--env. Replacing a version ID with a stable ID therefore cannot bypass this result. - I compared
env_detect.rsin 0.160.0 and 0.162.0-alpha.3; the bytes match. I did not install or run the alpha release. CODEX_CLOUD_TASKS_BASE_URL,CODEX_CLOUD_TASKS_MODEandCODEX_STARTING_DIFFare unset.- The existing doctor run passed installation/version, authentication, HTTP connectivity and the Responses WebSocket handshake. It also reported optional local MCP/state/terminal warnings; I have no evidence that they affect catalog discovery.
These observations suggest a mismatch between the current and legacy catalogs. Please confirm whether the released CLI supports the current environments and identify the supported repair or route.
Related: #49966 reports the new/legacy selection difference in the web UI. This report supplies CLI discovery and resolution evidence. #15544 concerns empty task-list reporting and was closed as not planned; this request concerns access to environments that exist in the current catalog.
I omitted account identifiers, environment identifiers, repository names, credentials and raw local logs.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #49966
Powered by Codex Action
Still reproducible with the official codex-cli 0.162.0-alpha.7 Linux binary on NixOS/WSL2: codex cloud list --env <new-env-id> --json exits 1 with environment '…' not found, while existing tasks remain readable with the same login.
env_detect.rs is byte-identical to 0.160.0; no task submission was attempted.
+1, i had the same problem, can not make the new codex cloud work.
I can reproduce the same underlying environment-catalog mismatch on the web only, without the CLI or desktop app.
Setup:
- ChatGPT Plus
- macOS
- Firefox, latest version
- No Codex CLI installed
- No Codex desktop app installed
Reproduction:
- Go to
https://chatgpt.com/settings/codex-cloud. - Create and publish a new Codex Cloud environment.
- Confirm that the environment appears in the Codex Cloud settings page.
- Switch to Codex in the ChatGPT web UI.
- Open the environment selector above the “What should we build?” prompt.
Expected: The newly published Codex Cloud environments should be available for selection.
Actual:
The selector only shows my older/legacy cloud environments. The newly created environments from Settings → Codex Cloud do not appear at all.
Additional observations:
- The new environments are definitely present and editable under
Settings → Codex Cloud. - The environment menu in the Codex web composer appears to be backed by a different, legacy environment catalog.
https://chatgpt.com/codex/cloudredirects tohttps://chatgpt.comwith Codex selected and shows the same composer. It does not expose a separateWork in → Cloudflow or a selector containing the new environments.- This occurs entirely in the browser, so the issue is not specific to the CLI or desktop client.
This looks like the same catalog/backend split described here, and also matches the symptoms in #49966.
I can report that as of this morning, I can now see the new cloud environment task selector in the Codex web interface.
Quick follow-up: I reproduced this today with the official 0.162.0-alpha.18 Linux binary on NixOS/WSL2 (release checksum verified), using the same existing ChatGPT login as 0.160.1.
codex cloud list --env <new-env-id> --jsonstill exits 1 withenvironment '…' not foundin both versions.- The unfiltered list still returns older tasks, and a known existing task remains readable with status
READY. - A completed new Cloud thread is accessible in the desktop app (
hostId=durable), but absent from the CLI list.codex resume --all <thread-uuid>exits withNo saved session found.
A cloud status <thread-uuid> probe still routes to /backend-api/wham/tasks/<uuid> and returns HTTP 404 / Invalid task ID. I’m not assuming a new thread UUID is valid for that task API; this just confirms the route being used.
I also checked the new Rust codex-cloud-client. Its README requires a native gRPC origin but doesn’t provide a production endpoint, so I haven’t tested it live.
Could you clarify the supported CLI path and ID mapping for the new Cloud? If the Rust client is the intended route, is there a documented public endpoint we can test?
I have the same issue.
CLI: codex-cli 0.161.0, npm installation. Host: macOS 26.6, arm64. Account: ChatGPT Pro, personal workspace. I confirmed the CLI account and personal workspace match the account owning the published environment.
We’re seeing the same issue on macOS with both 0.160.0 and the latest stable 0.162.0. The published new Cloud environment is visible in the app, but the CLI returns zero environments in both repository-specific and global discovery. We verified that the CLI is signed into the same ChatGPT account. Updating to 0.162.0 did not resolve it.
If it can help someone, I found a temporary trick, while we're waiting the fix: just make an agent on both sessions and create a MCP relay between them. 😏
+Additional reproduction on 12 October 2026 with the official stable codex-cli 0.162.1, ChatGPT Pro and a Personal workspace:
- A private published environment ran a real coding task through the web interface, including a file edit, five passing assertions and a returned diff.
- The Mac and remote Linux CLI account/user/default-workspace metadata match; the web profile agrees.
- The CLI's global environment catalogue returns HTTP 200 with [], and repository discovery returns zero environments.
- Filtered listing exits 1: "Error: no cloud environments are available for this workspace".
- Unfiltered listing succeeds with {"tasks":[],"cursor":null}, omitting the completed web task.
- Testing the correct GitHub origin and an isolated official 0.162.1 install did not repair discovery. Credentials and configuration were not changed.
Does the released CLI currently support environments published through the new Codex Cloud interface, or only the Legacy catalogue? If the new interface is supported, what exact supported command/version and identifier should launch a task AND retrieve its result? Is there a tracked fix or rollout for this catalogue discrepancy?
Please suggest a route that preserves the existing environment and authentication, without private endpoints or approval/sandbox bypass. Account, repository, environment and thread identifiers are intentionally omitted.
I am having the same issue.
this basically means you can't use codex cloud via cli - breaking my workflow completely :(
We're experiencing the same issue. Our published Codex Cloud environments are visible in the app, but Codex CLI cannot discover them, which blocks our workflow. Please prioritize a fix or provide an officially supported workaround. Thanks.
Reproduced on macOS arm64 with codex-cli 0.163.0, authenticated using ChatGPT. An environment is visible in current Codex Cloud settings, but the CLI picker shows only “All Environments (Global)”. Global and repository-specific environment discovery both return HTTP 200 with empty arrays. Attempting codex cloud exec with an explicit environment, branch, and one attempt exits 1: Error: no cloud environments are available for this workspace.
Hi! Same here on Linux (standalone install) with codex-cli 0.162.1 and 0.163.0, ChatGPT Pro, personal workspace: a published new-type Cloud environment exists, but codex cloud shows no environments, /wham/environments (and the by-repo lookup) return [], and codex cloud exec --env … exits with "no cloud environments are available for this workspace". As far as I can tell, env_detect.rs on main still only queries the legacy catalog. Would you be open to adding CLI support for new Cloud environments, or could you point us to the supported way to launch tasks on them from the terminal? Thanks for all the work on Codex!
Reproduced on codex-cli 0.163.0, Linux x86_64 (Ubuntu, kernel 6.8), ChatGPT auth (Pro, personal workspace), on two machines signed in to the same account, 2026-10-21.
codex cloud list --limit 5returnsNo tasks found.- The
codex cloudTUI environment picker (o) shows onlyAll Environments (Global). codex cloud exec --env <any id> "noop"exits 1 withError: no cloud environments are available for this workspace.
The environments we created through the current web Codex Cloud flow are not discoverable from the CLI on either machine, which matches the legacy-catalog-only lookup described above. A supported way to submit a task to a current (non-Legacy) Cloud environment from the CLI would unblock scripted delegation for us.
Same here...any workaround?
Additional reproduction on October 23, 2026, on macOS using codex-cli 0.163.0.
A published current Codex Cloud environment is visible in Settings > Codex Cloud. A read-only lookup using the environment ID previously saved for our orchestration app:
codex cloud list --env <saved-environment-id> --limit 1 --json
exits 1 with:
Error: no cloud environments are available for this workspace
This blocks Bumble, our orchestration app, from launching parallel Codex Cloud workers through codex cloud exec. The legacy environment settings link redirects to ChatGPT's home page on this account, so we could not reach a legacy environment creation screen either. No task was submitted during this check.
Could the Codex team confirm a supported programmatic route for submitting tasks to current published cloud environments, checking status, and retrieving results? Is there a target fix version or rollout ETA for this discovery issue?
Account details, repository identifiers, credentials, and the actual environment ID are omitted.
+1, same issue on codex-cli 0.164.0. Our envs were created in the new Codex app, and codex cloud exec --env <new env> just says "not found". Would really like CLI support for the new environments. Any ETA? Thanks!
We're seeing this too. On the latest CLI, codex cloud only lists our legacy environments and rejects the new environment's ID, so our automation is stuck on the legacy env. Our main reason for wanting the new environments is runtime secret delivery: it would let cloud tasks push their own branches. Supporting current environments in codex cloud (listing them and submitting to them) would help.