Skip to content

/codex:setup returns 401 "OAuth token has expired" despite fresh ChatGPT login #41

@landonvivian

Description

@landonvivian

Codex CLI works fine from terminal (v0.117.0, auth mode: chatgpt).
Auth.json at ~/.codex/auth.json is populated with valid tokens.
codex launches and runs normally from terminal.

But all plugin commands inside Claude Code (v2.1.88) return:
API Error: 401 - authentication_error - "OAuth token has expired"

This happens even after:

  • Fresh codex login from terminal
  • /reload-plugins in Claude Code
  • pkill -f codex to clear background processes
  • Starting a new Claude Code session

macOS, Apple Silicon, Node v25.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions