CodexUse logo CodexUse Download

Codex not working? Quick fixes and triage

Before you reinstall anything, run through this checklist. Most Codex issues are auth problems, rate limits, or config mistakes. All fixable in under a minute.

Step 1: Check if you are authenticated

The most common reason Codex is not working is expired or missing credentials. Run codex in your terminal:

Auth troubleshooting

Step 2: Check for rate limits

If Codex was working earlier but now fails or responds slowly, you may have hit rate limits. The CLI shows a 429 error with a reset time.

Rate limit solutions

Step 3: Verify network and OpenAI status

Sometimes the issue is not on your end:

Step 4: Check your config

The Codex CLI configuration can cause issues if misconfigured. Common problems:

Step 5: Check CLI version

Verify you are running the version you expect:

codex --version

Version issues

Troubleshooting table

Symptom Likely cause Action
"Command not found: codex" CLI not installed or not in PATH Run npm install -g @openai/codex
Browser opens every time you run codex Auth token keeps expiring or not saving Check file permissions; ensure config directory is writable
Hangs without any output Network timeout or slow connection Check internet; disable VPN if using one
"Model not found" error Invalid model name in config Remove model line from config or use a valid model
Works in terminal, fails in scripts Different shell environment Use absolute path to codex binary
CodexUse shows expired profile Refresh token invalidated by OpenAI Delete the profile and re-add with fresh authentication

When to actually reinstall

Reinstall the Codex CLI only if:

What to avoid

Related

What should I check first when Codex is not working?

Check authentication (run codex to see if it prompts for login), verify you are not rate-limited, and confirm network connectivity.

Do I need to reinstall Codex CLI to fix errors?

Rarely. Most issues are auth, rate limits, or config problems. Only reinstall after ruling out these common causes.

Why does Codex keep asking me to log in?

Your token expired or was invalidated. Re-authenticate through the browser flow.

Download CodexUse for easier troubleshooting