Two cloud config bundle errors from one Codex startup step
Codex stops before a session opens with one of these messages:
Error loading configuration: timed out waiting for cloud config bundle after 15sfailed to read configuration layers: Failed to load cloud config bundle (workspace-managed policies).Both come from the same loader. When you sign in with ChatGPT on a Business, Enterprise or Edu workspace, Codex has to load the requirements your workspace admin manages in the cloud before it starts. It uses a valid cached copy if one exists; otherwise it fetches the bundle from OpenAI with up to five attempts, all under one startup timer. OpenAI's managed-configuration documentation states the rule: if the request fails or times out and no valid cache is available, loading returns an error instead of starting without the cloud-managed requirements.
The two messages are the two ways that fetch can end, and they point to different first checks:
| Message after the prefix | What happened in the loader | Check first |
|---|---|---|
timed out waiting for cloud config bundle after 15s (or after 20s) | The whole startup load, including every fetch attempt and any sign-in refresh, was still running when the startup timer ran out; often a request that never got an answer | OpenAI Status, then one approved network comparison on the machine where Codex runs |
Failed to load cloud config bundle (workspace-managed policies). | The attempts ran out before the timer did: each one ended in an error, typically an HTTP error, a TLS or connection failure, or a sign-in that could not refresh. These errors often arrive within seconds, but the message itself has no time limit | The sign-in state of the exact client that failed, then certificate trust on your network |
Your authentication session could not be refreshed automatically. Please log out and sign in again. | The request returned 401 and Codex had no way to refresh the sign-in | Sign out and back in, as the message says |
Do not start by deleting or renaming .codex, reinstalling, or rewriting config.toml. None of those fixes the cloud fetch, and the first one can hide your chat history.
Prefixes: "Error loading configuration" and "can't load config.toml"
The text after the colon identifies the problem; the prefix only tells you which part of Codex reported it. The same two messages appear behind several prefixes:
Error loading configuration: …failed to read configuration layers: …, sometimes aftererror creating chatfailed to reload config: …in the JetBrains AI Assistant integration (LLM-28454)ChatGPT can't load config.toml, so this thread can't resume. Fix config.toml: … After saving the file, reopen the thread.in the desktop app (#26504), for exampleFix config.toml: Failed to load cloud config bundle (workspace-managed policies).
The desktop wording blames config.toml for any configuration-layer failure. When the text it quotes is a cloud config bundle message, your local file is not the cause, and editing it will not change the result. Local config.toml problems look different: an unknown field, a TOML parse error, or a value that one project overrides. Those belong in the Codex sandbox and config.toml guide.
Older builds used other words for the same step. Codex 0.112 reported failed to load your workspace-managed config (#14143), and 0.129 reported Failed to load cloud requirements (workspace-managed policies). (#21837). The checks below apply to those messages too.
Who can get these errors: Business, Enterprise and Edu sign-ins only
Codex fetches the bundle only when you are signed in with ChatGPT on a business, enterprise or education plan (cloud_config_eligible_auth in the source). A personal Free, Plus or Pro account, or an API-key sign-in, skips the step entirely and cannot produce either message.
That makes one quick check useful: if you expected to be on a personal account, you may be signed in to a workspace instead. It also rules out a different symptom. The Windows desktop dialog Unable to load organization settings is a broader startup gate that Plus users report too, with causes ranging from an app-server that never started to a damaged local database (#48324). Start that one with Failed to Start Codex App-Server on Windows: Fixes by Error Text.
Why Codex says "after 15s" or "after 20s"
The number is the startup timer of the client that failed, and it changed with Codex 0.156.0:
- after 15s: a client built from Codex 0.155.x or earlier;
- after 20s: Codex 0.156.0 (released September 22, 2026) or later.
The change came in commit 3bb0a530d (#46562, September 18, 2026; first shipped in rust-v0.156.0). The same change added a system-proxy fallback for the bundle fetch, controlled by the system_proxy_fallback feature, which is on by default. When the fallback is allowed, the first GET, including reading its response body, gets a 5-second budget; if it fails to connect, hits a request error or runs past those 5 seconds, Codex repeats the GET through the system proxy, and that second GET has no 5-second cap of its own. When the fallback is not allowed, the GET runs without that 5-second budget, limited only by the overall startup timer (exec_bootstrap_get at rust-v0.163.0; unchanged in the 0.164.0 alphas published through October 19, 2026). A machine that only reaches OpenAI through the system proxy can therefore behave better on 0.156.0 or later.
The desktop app ships its own Codex build, so its number can differ from your terminal's. One Windows report shows the ChatGPT app running a bundled 0.155.0 alpha while the separately installed CLI was 0.156.1 (kzmasa on Qiita, in Japanese). Read the version of the client that showed the error, not the one on your PATH.
How Codex chooses between "timed out" and "failed to load"
In the current source (service.rs at rust-v0.163.0), startup works like this:
- Cache check. A signed, identity-matched cache file,
cloud-config-bundle-cache.jsonin the Codex home folder, is used if it is still valid. It expires 60 minutes after it was written, and a running client refreshes it every 15 minutes (cache.rs). The first launch after more than an hour away always has to reach the network. - Up to five fetch attempts. Waits between attempts start at 200 ms and double, with 10% jitter (backoff.rs): 0.2 + 0.4 + 0.8 + 1.6 = about 3 seconds of waiting in total. That covers only the pauses between attempts; the time each request takes, and any sign-in refresh, comes on top.
- Each failure is sorted (backend.rs). A 401 goes to sign-in recovery. A denial from a network policy returns its own text at once. Everything else, including 403, 5xx, connection, TLS and response-decoding failures, is retried.
- The exit. If the attempts run out first, you get
Failed to load cloud config bundle (workspace-managed policies).If the timer runs out first, you gettimed out waiting for cloud config bundle after {N}s. The timer wraps the whole step, not a single request: loading the sign-in, reading the cache, every attempt, the waits between them and any sign-in recovery.

When errors come back quickly, five attempts can be used up in a few seconds, so a broken certificate chain, a rejected request or a dead sign-in often produces the failed-to-load message. A route that accepts the connection but never answers, such as a stalled proxy or a firewall that drops packets silently, can keep an attempt waiting until the timer ends. Neither pattern is guaranteed: errors that each take several seconds to come back, plus the waits between them, can also use up the 15 or 20 seconds and end as a timeout. Use the elapsed time as a clue for where to look first, and let the logs decide.
Sign-in problems can land on either side of that line. When a 401 arrives, Codex tries to refresh the token. If the refresh fails for a temporary reason, Codex counts it as one more attempt, so a revoked or stale sign-in can still end in the generic failed-to-load text. Only when no refresh is possible do you see the clearer log-out message (handle_unauthorized).
The user-facing text never includes the HTTP status. Codex's own logs do: look for Failed to fetch cloud config bundle; retrying with a status next to it, or Cloud config bundle request was unauthorized.
Record these details before you retry Codex
Keep the record small enough to compare after one change:
- the exact message, including its prefix, local time and timezone;
- the Codex surface (CLI, IDE extension, desktop app, JetBrains) and its version;
- the operating system and the actual execution host: local, WSL, Remote SSH or a container;
- which workspace you are signed into, without account identifiers;
- network type and any approved proxy, VPN or TLS-inspection product;
- whether another Codex surface works with the same account right now.
Then check two things that cost nothing. First, look at OpenAI Status for a ChatGPT, sign-in or Codex incident. A relevant incident means you should wait and keep the timestamp instead of reinstalling. A green page does not rule out a problem specific to your account, workspace or network. OpenAI has published no troubleshooting page or status-code mapping for either message.
Second, on a CLI install, collect local health:
codex --version
codex doctor --summaryThe Codex command reference describes codex doctor as a summary of installation, configuration, authentication, runtime, Git, terminal, app-server and thread-inventory checks. Review the output before sharing it, and remove local paths, internal hostnames and account details. A clean summary does not prove the bundle route works; a specific auth or configuration failure gives you a better next step than a blind relaunch.

Fix "Failed to load cloud config bundle (workspace-managed policies)."
Work through these in order. Each one tests a cause that usually returns an error instead of hanging.
Logged in but still failing: check the sign-in this client uses
codex login statusThis reports the active sign-in mode and succeeds when credentials are present. It does not refresh the token or fetch the bundle, so "Logged in using ChatGPT" does not prove the sign-in still works.
One public case shows why. On a Windows ChatGPT app with Enterprise, WSL and Zscaler, the failed-to-load message survived repair, reset, reinstall and an app update. codex login status reported a valid sign-in. The app-server's logs showed a 401 with token_revoked and Failed to refresh token. The fix was to quit the app, run the desktop's own bundled codex logout with the desktop's CODEX_HOME and CODEX_SQLITE_HOME, then sign in again inside the app (kzmasa on Qiita, in Japanese). A plain codex logout in another environment would have cleared a different set of credentials.
Sign out only when you have matching evidence: a 401 or token_revoked in the logs, a token-refresh error, a recent account or workspace switch, or the log-out message itself. The documented codex logout removes saved API-key and ChatGPT credentials for that Codex home, so make sure you are targeting the home the failing client uses. For refresh errors that show up as their own message, see Codex Token Exchange Failed: Diagnose the Login Phase Before You Reset It.
Corporate VPN or TLS inspection: check certificate trust
If your company inspects HTTPS traffic, the Codex process has to trust the company's root certificate, and it does not always read the same store as your browser. One Enterprise user on macOS saw invalid peer certificate: UnknownIssuer next to the older Failed to load cloud requirements text. Exporting the approved company CA to a PEM file, setting SSL_CERT_FILE to it, restarting the shell and signing in again fixed it (#21837). The per-process setup for each Codex surface is in Codex self signed certificate in certificate chain: 4 Fixes.
Use only a certificate your IT team approves, and do not turn off certificate verification to test.
Compare one adjacent Codex version
A client regression can produce the same message. One Business user got it on 0.144.5 while 0.144.4 worked, and later both worked again (#25246). Server-side changes were happening at the same time, so treat a one-version comparison as a clue to report, not as a reason to pin an old build.
If sign-in, certificates and version all check out, the request is likely being rejected for a reason only the workspace admin or OpenAI support can see. Go to the escalation section below.
Fix "timed out waiting for cloud config bundle after 15s"
The timeout means the startup load as a whole did not finish before the timer. Most often a request was left waiting on the network, but slow errors and retries can add up to the same result. If you can read the logs, Failed to fetch cloud config bundle; retrying lines with a status mean the attempts were returning errors; follow that status. If there are none, look at the network path first.
Compare one approved network route
A browser that reaches ChatGPT does not prove that Codex Desktop, a terminal, an IDE extension host, Remote SSH, WSL or a container uses the same proxy, DNS, certificate trust or firewall path. Keep the account, workspace, client and version fixed, and change one approved condition: the corporate route versus a permitted ordinary connection, or VPN on versus off where policy allows it.
Do not disable a corporate control to see whether it helps. If policy forbids an alternate route, record the failure on the managed network and pass it to your network or workspace admin.
Update a client that still waits 15 seconds
An after 15s message means the client predates 0.156.0. Updating gives you the 20-second timer and the system-proxy retry for startup requests. If the desktop app still shows 15 seconds after the CLI is current, the app's bundled build is older; update the app itself.
Give the background retry a chance before relaunching repeatedly
Since #40637 (August 25, 2026), a Codex process that stays open after a startup timeout, such as the desktop app, retries in the background every 5 seconds instead of every 15 minutes. A successful retry writes the cache, and the next start can use it. A background refresh never changes the requirements already loaded in a running process, so close and reopen the thread or session once after the route is fixed.
Why deleting or renaming .codex is the wrong first fix
Reinstalling does not touch the cause. In the Windows case above, repair, reset and reinstall all left the error in place. Renaming the whole folder causes its own trouble: another Windows user renamed %USERPROFILE%\.codex, which forced a fresh sign-in that worked, but past chats and Projects disappeared from the app and had to be restored by hand from the old folder (cal_peace on Qiita, in Japanese). The same folder holds your credentials, sessions and local state, not only the policy cache.
The cache file itself is signed, tied to your identity and short-lived. Deleting a valid one only forces the network fetch you are trying to fix, and an expired one is already ignored. Leave it alone unless OpenAI support asks for something specific.
When to hand the error to your workspace admin
Cloud-managed requirements are a delivery channel for policies your admin sets; they do not grant workspace access, and ordinary user settings cannot override them (managed configuration). Escalate when the error follows one account or workspace across clients, when logs show a 403, or when you have run the checks for your message and the next launch stops at the same point.
Send a short packet, not your home folder or credential files:
- the exact message with prefix, and local time with timezone;
- Codex surface, version and operating system;
- the workspace, without sensitive identifiers;
- the execution host and network type;
- what OpenAI Status showed;
- the one condition you changed and its result;
- reviewed lines from
codex doctor --summaryand any status code from the logs.
The admin can confirm that the policy targets the right user or group and that every managed client version supports the selected keys.
Other Codex timeouts that are not the cloud config bundle
If the session opens and something else times out later, it is a different wait with a different fix:
| What you see | What is waiting | First check |
|---|---|---|
request timed out or operation timed out after the session opened, or Connecting / Reconnecting | The model request or its stream | Codex Keeps Reconnecting? Find the Cause Without Losing Your Task |
An MCP server fails during startup, such as MCP client for `codex_apps` timed out after 30 seconds | That MCP server's startup, named in backticks | Run codex mcp list, then check the server's command or URL; startup_timeout_sec sets this wait |
| One MCP tool call times out | The tool, its downstream service or its input size | Run the smallest read-only call on the same server; tool_timeout_sec sets this wait |
| A shell command never exits | A watcher, stdin, an open handle or a child process | Run the command directly in the same directory and environment |
| HTTP 429 after a request was sent | A usage, project or workspace limit | Codex 429 After Retries: Find the Limit That Owns the Request |
Raising startup_timeout_sec or tool_timeout_sec changes only MCP waits. Neither setting extends the cloud config bundle timer, which is fixed in the client build.

![Codex browser access host unavailable: a Codex CLI and IDE window returns browsers: [], while a ChatGPT desktop app chat shows the browser working](/posts/en/codex-browser-access-host-unavailable/img/cover.webp)




