ChatGPT login token missing api.responses.write scope
Resolved 💬 3 comments Opened Jul 8, 2026 by ivy921 Closed Jul 8, 2026
Environment
- Codex CLI: 0.142.5
- OS: Ubuntu
- ChatGPT Plus
- Personal organization
- Organization Owner
- Default project
Authentication
- Logged in using ChatGPT (
codex login status) - No
OPENAI_API_KEYor anyOPENAI_*environment variables - Installed from the official npm package
@openai/codex
Problem
After logging in with ChatGPT successfully, every prompt fails with:
401 Unauthorized
Missing scopes: api.responses.write
The access token only contains these scopes:
- openid
- profile
- offline_access
- api.connectors.read
- api.connectors.invoke
It does not include api.responses.write.
Steps to reproduce
- Install
@openai/codex0.142.5 - Run
codex login - Sign in with a ChatGPT Plus account
- Run
codex - Enter any prompt (for example:
Hello)
Expected behavior
ChatGPT login should authorize Codex CLI to use the Responses API.
Actual behavior
Every prompt returns:
401 Unauthorized
Missing scopes: api.responses.write
Troubleshooting already performed
- Reinstalled Codex CLI from the official npm registry
- Logged out and logged in again
- Deleted
~/.codex/auth.jsonand logged in again - Confirmed there is no
OPENAI_API_KEY - Confirmed I am the Organization Owner of the Personal organization
If needed, I can provide the request ID from the error message or run additional diagnostics.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗