Codex CLI v0.63.0 always interrupts conversation and hangs on basic prompts (Pop!_OS)
What version of Codex is running?
codex --version OpenAI Codex (v0.63.0)
What subscription do you have?
ChatGPT Plus + Project API Key (with active billing credits)
Which model were you using?
gpt-5.1-codex-max (reasoning: medium)
What platform is your computer?
Pop!_OS 22.04 (Ubuntu-based) Linux x86_64 (node v20.19.6, npm v11.6.4)
What issue are you seeing?
Title: Codex CLI v0.63.0 interrupts every prompt and produces no output
Version:
OpenAI Codex (v0.63.0)
Subscription:
ChatGPT Plus + Project API Key
Model:
gpt-5.1-codex-max
Platform:
Pop!_OS 22.04 (Ubuntu)
Linux x86_64
node v20.19.6
npm v11.6.4
Issue Description:
Codex CLI authenticates successfully but cannot respond to any prompt. Every message immediately fails with:
■ Conversation interrupted - tell the model what to do differently. Something went wrong?
This happens with simple inputs like "hello". Codex never produces output. /status shows a valid session, valid API key, and zero tokens used. Other OpenAI APIs work fine on this machine.
Example:
$ codex
hello
■ Conversation interrupted - tell the model what to do differently. Something went wrong?
$ codex /status
Model: gpt-5.1-codex-max
API key configured
Session: 019acd8f-2841-7a50-a804-99571fb9ea4a
Token usage: 0 total
Steps to Reproduce:
- Install Codex with: npm i -g @openai/codex
- Run: codex
- Authenticate with ChatGPT login or project API key
- Type any prompt (e.g., "hello")
- Codex immediately fails with the above error
Expected Behavior:
Codex should respond with completions or perform actions. Instead, every prompt is interrupted and no output is generated.
Additional Info:
- Issue occurs 100% of the time
- Reinstalling does not fix it
- Using ChatGPT login or project key makes no difference
- All other OpenAI API calls work normally
What steps can reproduce the bug?
- Install Codex CLI:
npm i -g @openai/codex
- Launch Codex:
codex
- Authenticate using either:
- ChatGPT Plus login, or
- Project API key
- After Codex loads, type any prompt:
hello
- Codex immediately fails with:
■ Conversation interrupted - tell the model what to do differently. Something went wrong?
This happens 100% of the time, even in an empty directory and even with different authentication methods.
Session ID example:
019acd8f-2841-7a50-a804-99571fb9ea4a
Token usage:
0 total (0 input / 0 output)
Context window usage:
0 used / 272K available
Codex does not execute any tasks and does not generate any output.
What is the expected behavior?
Codex CLI should accept a prompt and generate a normal model response. For simple inputs like "hello," Codex should return a short completion instead of interrupting the conversation. For coding-related tasks, Codex should analyze the directory, read files, propose edits, or execute agent actions without failing immediately.
In general, expected behavior is:
- Codex processes the input prompt
- Codex produces a model-generated response or action plan
- Token usage increases from 0
- The session continues normally without interruption
Instead, Codex stops instantly with an error and provides no output.
Additional information
Codex CLI worked previously on this same machine but began failing recently without any configuration changes. The issue persists across reinstalls, different directories, different authentication methods, DNS resets, and system restarts. Other OpenAI API tools (curl requests and the official OpenAI CLI) work correctly with the same project API key. This failure appears isolated to the Codex CLI executable itself.
If helpful: DNS resolution for cli.openai.com returns NXDOMAIN on all major resolvers (Cloudflare, Google), while other OpenAI domains resolve correctly. This may indicate an upstream infrastructure issue affecting the CLI.
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Title: Codex CLI rejects valid project API keys — "invalid_api_key" &
Conversation interrupted
Description:
Hi — I’m hitting an auth failure when trying to run the Codex CLI with a
project API key. I’ve followed the documented steps: removed
~/.codex/auth.json, set
~/.codex/config.tomlwithpreferred_auth_method, exported= "apikey"
OPENAI_API_KEYin the shell, and usecodex-cli.v0.63.0
/statusshows “API key configured (run codex login to useChatGPT)”, but any attempt to talk to the model returns “Conversation
interrupted” and curl requests to the API return:
{"error":{"message":"Incorrect API key provided:
sk-proj-****CTED","code":"invalid_api_key"}}
What I tried:
shell, and tested with
curl— every key returnsinvalid_api_key.launch Codex.
~/.codex/auth.jsonand~/.codex/sessions.Diagnostics (redact keys before posting):
codex --version: v0.63.0/statusblock: [paste full /status output here]~/.codex/config.toml: [paste contents]tail -n 200 ~/.codex/log: [paste the last ~200 lines]curloutput (redact the key): [pastecurlresponse which containsinvalid_api_key]
Problem summary:
Codex CLI appears to be sending a key that the backend rejects with
invalid_api_key. The same keys created in the platform UI consistentlyreturn the invalid API key error when used from my machine. This prevents
Codex from establishing a conversation (Conversation interrupted /
Reconnecting). My account: @.***
Please advise whether:
with Codex CLI, or
or uses the wrong header, or
account.
I can provide additional logs or live debugging info on request. Thanks.
On Fri, Nov 28, 2025 at 9:13 PM github-actions[bot] <
@.***> wrote:
This bug report hasn't received any upvotes or additional posts in three months. Closing.
Im experiencing this as well now on Ubuntu with codex-cli 0.142.0