Skip to content
86% off$349 $48.86code BF2026

Guides

Codex CLI Hangs With No Response After Sending a Prompt

Codex CLI hangs after you send a prompt? Rule out your setup with an empty-folder test, update, fresh login and network checks, then report it.

GuideUpdated 6 min read

On this page

You send a prompt to Codex CLI and nothing comes back, in plan mode or normal mode, and the cursor just sits there. People reported this on the Codex GitHub repository (issue 14071) in March 2026. Duplicates describe it as hanging on all prompts, affecting macOS local clients, and lasting over 6 hours. None of the reports we saw quote an error message.

Why Codex CLI hangs with no response

We can't name one confirmed cause. The thread had no fix when we last saw it (March 2026), and we haven't seen an explanation from the Codex team. These are the realistic candidates, most likely first.

  1. A service-side problem. The reports describe every prompt hanging, from several people, with no error. That pattern points away from one misconfigured Mac. This is our reading of the reports, not a confirmed diagnosis.
  2. A bug in the version you run. OpenAI's changelog shows the CLI changing often. As of November 2026 it says Codex reports provider errors as soon as they arrive in a response stream. In August 2026 it noted that turns reconnect through temporary provider outages. A newer build may fail loudly or recover where an older one waits silently.
  3. A blocked or stalled connection. If a VPN, proxy, firewall or endpoint-protection tool swallows the requests, you see a silent wait instead of an error. OpenAI's changelog says codex doctor now diagnoses endpoint protection, network/proxy failures, desktop app state, and update connectivity.
  4. A stale login. An expired or broken session could leave a request waiting. No report we saw confirms this, so treat it as a cheap thing to rule out.
  5. Your project or an old session. A large repo or a stuck resumed session can make one folder hang while others work.

Step-by-step fixes

1. Test a trivial prompt in an empty folder

This tells you whether the problem is your project or Codex itself.

  1. Press Control-C to cancel the hung step. An older OpenAI help article for the CLI suggests CTRL‑C to cancel the current step and ask Codex to continue. If the terminal doesn't respond, close the tab.
  2. Create an empty folder and open a terminal in it.
  3. Run codex.
  4. Send a one-line prompt such as say hello.
  5. Wait two or three minutes before calling it a hang.

If it works here, your repo or an old session is the cause. Start a fresh session in the repo instead of resuming the old one.

2. Try a one-shot run

If the interactive screen looks frozen, a one-shot run shows whether the request itself completes.

bash
codex exec "say hello"

This sends one prompt without the interactive screen and exits. It changes no settings. If it returns text while the interactive session hangs, the terminal interface is the likelier problem. If both hang, look at the request path: service, network or login.

3. Check whether it's a service problem

Open status.openai.com and look for an open incident touching Codex or ChatGPT. OpenAI's help center gives the same first step for slow or stuck work: Check OpenAI Status for a reported incident. Then read the newest comments on GitHub issue 14071 and any duplicates it links. If other people reported the same hang in the last few hours, waiting is reasonable. Nothing on your Mac fixes a service-side fault.

4. Update Codex

Check your version:

bash
codex --version

This prints the installed version and changes nothing. Compare it with the latest entry in OpenAI's Codex changelog.

OpenAI's CLI setup page says to upgrade a standalone install, rerun the installer. If you installed with npm or Homebrew, update through that tool instead. The install section of the Codex CLI getting-started page lists the current standalone installer. Then repeat the empty-folder test.

Older tutorials still show an npm install and an OPENAI_API_KEY quick start. Current docs describe more install and sign-in options, so follow the current page.

5. Log in again or switch sign-in method

  1. Run codex login and sign in again.
  2. Retest in the empty folder.
  3. If you used a ChatGPT sign-in, try an API key, or the reverse.

OpenAI's docs say you can authenticate with your ChatGPT account or an API key. If the hang follows you across both, credentials are unlikely to be the cause. Also check your plan's usage limits and your API spend limit in your OpenAI account. We haven't seen limits confirmed as a cause of this hang.

6. Check the network path

A silently blocked connection can look like a hang. These two commands check that your Mac can reach OpenAI hosts:

bash
curl -I https://api.openai.com
curl -I https://chatgpt.com

Each sends one request and prints response headers. Any HTTP status line, even an error status, means the request reached a server. A long wait or a connection error points to a network problem. This can't prove every connection Codex makes works, but a failure here is a strong clue.

Then check whether your shell has a proxy set:

bash
env | grep -i proxy

This only prints matching variables. If it lists a proxy you don't expect, or you're on a VPN, disconnect and retest. Neither command changes anything.

7. Run Codex's own diagnostics

OpenAI's help center says that running codex doctor in the Codex CLI gives diagnostics covering startup, connectivity and performance issues. That line sits in the Windows section of the article, so the command may not exist in older builds. If your version doesn't know it, update first (step 4). Copy its output into your report.

Which fix matches which symptom

SymptomLikely causeTry
Hangs only in one repoProject size or an old sessionStep 1, new session
Hangs everywhere, codex exec also hangsService, network or loginSteps 3, 5, 6
Interactive screen frozen, codex exec worksTerminal interface bugStep 4, update
Started after a VPN or proxy changeBlocked connectionSteps 6, 7
Hangs on one sign-in method onlyLogin or limitsStep 5

Checklist before you report it

  • You waited a few minutes on a one-line prompt in an empty folder.
  • You ran codex --version and updated if it was old.
  • You logged in again and tried the other sign-in method.
  • The status page showed no open incident, or you noted the incident.
  • curl reached the host for your sign-in type, with no VPN or proxy in the way.

While you wait

When Codex recovers, codex resume --last picks up your most recent session. Cancelling a step with Control-C doesn't delete the session. You can also leave the prompt queued in your notes and retry after the status page clears.

If nothing works

Add your details to the GitHub issue so maintainers can match your case to the others. A report with these details is more useful than another "same here." You can also contact OpenAI support through the help center, which is where OpenAI says to go for a Codex problem that continues after troubleshooting.

Include:

  • the output of codex --version
  • your macOS version and terminal app
  • your sign-in method (ChatGPT or API key) and plan
  • whether plan mode, normal mode or both hang
  • whether codex exec "say hello" hangs too
  • the empty-folder result and the curl results
  • the codex doctor output, if your version has it
  • when it started, and what the status page showed
text
Codex CLI hangs after I send any prompt, with no error message.

Version: (output of codex --version)
macOS: (version), terminal: (app)
Login: ChatGPT / API key, plan: (plan)
Modes affected: plan and normal
Empty folder test: hangs / works
codex exec "say hello": hangs / works
curl to api.openai.com and chatgpt.com: reachable / not reachable
VPN or proxy: yes / no
codex doctor output: (paste, if available)
Started around: (date and time, timezone)
Already tried: update, fresh login, switched login method.

Common questions

Is this a problem with my Mac?

Possibly not, but the thread doesn't prove it either way. If the empty-folder test still hangs after an update and a fresh login, a local cause becomes less likely.

Will reinstalling Codex fix it?

The thread doesn't show a reinstall fixing it. Update first and retest. An update is cheap, but it isn't a documented cure for this symptom.

Why is there no error message?

None of the reports we saw quote one. A silent wait usually means a request is still open or was dropped without a reply, which is why the network and status checks come first. Newer builds report provider errors sooner, so updating may turn a silent hang into a readable message.

Does Control-C lose my session?

No. Cancelling the current step doesn't delete the session, and codex resume --last picks up your most recent one afterwards.

Every app.
One purchase.