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_KEY or any OPENAI_* 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
  • email
  • offline_access
  • api.connectors.read
  • api.connectors.invoke

It does not include api.responses.write.

Steps to reproduce

  1. Install @openai/codex 0.142.5
  2. Run codex login
  3. Sign in with a ChatGPT Plus account
  4. Run codex
  5. 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.json and 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗