CLI installer silently drops back to the command-line when attempting to "Launching Codex"
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of Codex CLI is running?
0.153.2
What subscription do you have?
Pro
Which model were you using?
No response
What platform is your computer?
Linux 6.8.0-137-generic x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
Konsole
Codex doctor report
{
"schemaVersion": 1,
"generatedAt": "1788516001s since unix epoch",
"overallStatus": "fail",
"codexVersion": "0.153.2",
"checks": {
"app_server.status": {
"id": "app_server.status",
"category": "app-server",
"status": "ok",
"summary": "background server is not running",
"details": {
"control socket": "/root/.codex/app-server-control/app-server-control.sock",
"daemon state dir": "/root/.codex/app-server-daemon",
"mode": "ephemeral",
"pid file": "/root/.codex/app-server-daemon/app-server.pid (missing)",
"settings": "/root/.codex/app-server-daemon/settings.json (missing)",
"status": "not running",
"update-loop pid file": "/root/.codex/app-server-daemon/app-server-updater.pid (missing)"
},
"remediation": null,
"durationMs": 0
},
"auth.credentials": {
"id": "auth.credentials",
"category": "auth",
"status": "fail",
"summary": "no Codex credentials were found",
"details": {
"auth file": "/root/.codex/auth.json",
"auth storage mode": "File"
},
"remediation": "Run codex login or provide an API key through a supported auth env var.",
"durationMs": 0
},
"config.load": {
"id": "config.load",
"category": "config",
"status": "ok",
"summary": "config loaded",
"details": {
"CODEX_HOME": "/root/.codex",
"config.toml": [
"/root/.codex/config.toml",
"missing"
],
"cwd": "/",
"enabled feature flags": "shell_tool, view_image, sleep_tool, unified_exec, unified_exec_zsh_fork, shell_snapshot, content_item_kinds, code_mode_host, terminal_resize_reflow, sqlite, hooks, enable_request_compression, unbounded_connection_retries, multi_agent, apps, tool_search_always_defer_mcp_tools, tool_suggest, plugins, in_app_browser, in_app_chat, in_app_dictation, in_app_local_automation, in_app_updates, browser_use, browser_use_full_cdp_access, browser_use_external, computer_use, remote_plugin, plugin_sharing, image_generation, resize_all_images, item_ids, skill_mcp_dependency_install, skill_search, mentions_v2, steer, guardian_approval, goals, collaboration_modes, tool_call_mcp_elicitation, auth_elicitation, personality, fast_mode, tui_app_server, remote_compaction_v2, compaction_image_budget, workspace_dependencies",
"feature flag overrides": "none",
"feature flags enabled": "47",
"log dir": "/root/.codex/log",
"mcp servers": "0",
"model": "<default>",
"model provider": "openai",
"sqlite home": "/root/.codex"
},
"remediation": null,
"durationMs": 0
},
"git.environment": {
"id": "git.environment",
"category": "git",
"status": "ok",
"summary": "git executable not found",
"details": {
"PATH git entries": "0",
"repo detected": "false",
"selected git": "not found"
},
"remediation": null,
"durationMs": 0
},
"installation": {
"id": "installation",
"category": "install",
"status": "ok",
"summary": "installation looks consistent",
"details": {
"current executable": "/root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl/bin/codex",
"install context": "standalone (unix, package /root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl, bin /root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl/bin, resources /root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl/codex-resources, path /root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl/codex-path)",
"managed by Vite+": "false",
"managed by bun": "false",
"managed by npm": "false",
"managed by pnpm": "false",
"managed package root": "not set"
},
"remediation": null,
"durationMs": 2
},
"mcp.config": {
"id": "mcp.config",
"category": "mcp",
"status": "ok",
"summary": "no MCP servers configured",
"details": {},
"remediation": null,
"durationMs": 0
},
"network.env": {
"id": "network.env",
"category": "network",
"status": "ok",
"summary": "network-related environment looks readable",
"details": {
"managed proxy": "not configured",
"proxy env vars": "none",
"respect system proxy": "disabled"
},
"remediation": null,
"durationMs": 0
},
"network.provider_reachability": {
"id": "network.provider_reachability",
"category": "reachability",
"status": "ok",
"summary": "active provider endpoints are reachable over HTTP",
"details": {
"ChatGPT inference URL": "https://chatgpt.com/backend-api/<redacted> reachable (HTTP 405)",
"reachability mode": "ChatGPT auth"
},
"remediation": null,
"durationMs": 241
},
"network.websocket_reachability": {
"id": "network.websocket_reachability",
"category": "websocket",
"status": "warning",
"summary": "Responses WebSocket failed; HTTPS fallback may still work",
"details": {
"DNS": "2 IPv4, 2 IPv6, first IPv4",
"auth mode": "none",
"connect timeout": "15000 ms",
"endpoint": "wss://api.openai.com/v1/<redacted>",
"handshake transport error": "http 401 Unauthorized: Some(\"{\\n \\\"error\\\": {\\n \\\"message\\\": \\\"Missing bearer or basic authentication in header\\\",\\n \\\"type\\\": \\\"invalid_request_error\\\",\\n \\\"param\\\": null,\\n \\\"code\\\": null\\n }\\n}\")",
"model provider": "openai",
"provider name": "OpenAI",
"proxy env vars": "none",
"supports websockets": "true",
"wire API": "responses"
},
"remediation": "Check proxy, VPN, firewall, DNS, custom CA, and WebSocket policy support.",
"durationMs": 710
},
"runtime.provenance": {
"id": "runtime.provenance",
"category": "runtime",
"status": "ok",
"summary": "running standalone on linux-x86_64",
"details": {
"commit": "unknown",
"current executable": "/root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl/bin/codex",
"install method": "standalone (unix, package /root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl, bin /root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl/bin, resources /root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl/codex-resources, path /root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl/codex-path)",
"platform": "linux-x86_64",
"version": "0.153.2"
},
"remediation": null,
"durationMs": 0
},
"runtime.search": {
"id": "runtime.search",
"category": "search",
"status": "ok",
"summary": "search is OK (bundled)",
"details": {
"search command": "/root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl/codex-path/rg",
"search command readiness": "file exists",
"search provider": "bundled"
},
"remediation": null,
"durationMs": 0
},
"sandbox.helpers": {
"id": "sandbox.helpers",
"category": "sandbox",
"status": "ok",
"summary": "sandbox configuration is readable",
"details": {
"approval policy": "OnRequest",
"codex-linux-sandbox helper": "/root/.codex/tmp/arg0/codex-arg0D9MUKy/codex-linux-sandbox",
"execve wrapper helper": "/root/.codex/tmp/arg0/codex-arg0D9MUKy/codex-execve-wrapper",
"filesystem sandbox": "restricted",
"network sandbox": "restricted"
},
"remediation": null,
"durationMs": 0
},
"security.endpoint": {
"id": "security.endpoint",
"category": "security",
"status": "ok",
"summary": "endpoint protection is not inspected on this platform",
"details": {
"endpoint products": "not inspected on this platform"
},
"remediation": null,
"durationMs": 0
},
"state.paths": {
"id": "state.paths",
"category": "state",
"status": "ok",
"summary": "state paths and databases are inspectable",
"details": {
"CODEX_HOME": "/root/.codex (dir)",
"active rollout files": "0 files, 0 total bytes, 0 average bytes",
"archived rollout files": "0 files, 0 total bytes, 0 average bytes",
"goals DB": "/root/.codex/goals_1.sqlite (missing)",
"goals DB integrity": "skipped (missing)",
"log DB": "/root/.codex/logs_2.sqlite (missing)",
"log DB integrity": "skipped (missing)",
"log dir": "/root/.codex/log (missing)",
"memories DB": "/root/.codex/memories_1.sqlite (missing)",
"memories DB integrity": "skipped (missing)",
"queue DB": "/root/.codex/queue_1.sqlite (missing)",
"queue DB integrity": "skipped (missing)",
"sqlite home": "/root/.codex (dir)",
"standalone release cache": "1 entries in /root/.codex/packages/standalone/releases",
"state DB": "/root/.codex/state_5.sqlite (missing)",
"state DB integrity": "skipped (missing)",
"thread history DB": "/root/.codex/thread_history_1.sqlite (missing)",
"thread history DB integrity": "skipped (missing)"
},
"remediation": null,
"durationMs": 0
},
"state.rollout_db_parity": {
"id": "state.rollout_db_parity",
"category": "threads",
"status": "ok",
"summary": "no rollout/state DB inventory to compare",
"details": {
"default model provider": "openai",
"rollout DB active files": "0",
"rollout DB archived files": "0",
"rollout DB malformed file names": "0",
"rollout DB rows": "skipped (state DB missing)",
"rollout DB scan cap reached": "false",
"rollout DB scan errors": "0"
},
"remediation": null,
"durationMs": 0
},
"system.disk": {
"id": "system.disk",
"category": "disk",
"status": "ok",
"summary": "sufficient free disk space (527.9 GiB)",
"details": {
"CODEX_HOME available": "527.9 GiB",
"failure threshold": "1.0 GiB",
"warning threshold": "5.0 GiB",
"worktree available": "527.9 GiB"
},
"remediation": null,
"durationMs": 0
},
"system.environment": {
"id": "system.environment",
"category": "system",
"status": "ok",
"summary": "OS language unavailable",
"details": {
"EDITOR": "not set",
"VISUAL": "not set",
"os": "Ubuntu 24.4.0 [64-bit]",
"os language": "unavailable",
"os type": "Ubuntu",
"os version": "24.4.0"
},
"remediation": null,
"durationMs": 8
},
"terminal.env": {
"id": "terminal.env",
"category": "terminal",
"status": "ok",
"summary": "terminal metadata was detected",
"details": {
"TERM": "xterm",
"color output": "enabled",
"stderr is terminal": "true",
"stdin is terminal": "true",
"stdout is terminal": "true",
"terminal": "unknown",
"terminal size": "115x61"
},
"remediation": null,
"durationMs": 0
},
"terminal.title": {
"id": "terminal.title",
"category": "title",
"status": "ok",
"summary": "terminal title default",
"details": {
"terminal title activity": "true",
"terminal title items": "activity, project-name",
"terminal title project source": "cwd",
"terminal title project value": "/",
"terminal title source": "default"
},
"remediation": null,
"durationMs": 0
},
"updates.status": {
"id": "updates.status",
"category": "updates",
"status": "ok",
"summary": "update configuration is locally consistent",
"details": {
"check for update on startup": "true",
"latest version": "0.153.2",
"latest version status": "current version is not older",
"update action": "standalone installer",
"version cache": [
"/root/.codex/version.json",
"missing"
]
},
"remediation": null,
"durationMs": 421
}
}
}
What issue are you seeing?
The installer failed to launch the installed CLI and silently dropped back to the shell:
brlin@host:/workdir$ curl -fsSL https://chatgpt.com/codex/install.sh | sh
==> Installing Codex CLI
==> Detected platform: Linux (x64)
==> Resolved version: 0.153.2
==> Downloading Codex CLI
==> Installing standalone package to /home/brlin/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl
==> Current terminal: export PATH="/home/brlin/.local/bin:$PATH" && codex
==> Future terminals: open a new terminal and run: codex
==> PATH was added to /home/brlin/.bashrc
Codex CLI 0.153.2 installed successfully.
Start Codex now? [y/N] y
==> Launching Codex
brlin@host:/workdir$ echo $?
1
What steps can reproduce the bug?
docker container run --rm -it ubuntu:24.04apt update && apt install -y curlcurl -fsSL https://chatgpt.com/codex/install.sh | sh
What is the expected behavior?
Codex CLI launched normally.
Additional information
It doesn't seem to be related to whether ~/.local/bin is currently in the command search PATHs, in both cases CLI failed to launch.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure on Ubuntu 24.04 with Codex CLI 0.153.2 from the standalone executable at /root/.codex/packages/standalone/releases/0.153.2-x86_64-unknown-linux-musl/bin/codex, using Konsole. Trace the "Launching Codex" path and verify that it either launches the intended interface or reports the reason for returning to the command line instead of failing silently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100