Skip to content

[Bug]: hermes auth add openai-codex does not go to Oauth #42712

Closed as not planned

Description

@PattrnData

Bug Description

Recently updated to latest versions with all commits and trying to use hermes auth add openai-codex
However instead of the usual next step of logging in with an account it just asks for an API key

Steps to Reproduce

  1. Run hermes auth add openai-codex

Expected Behavior

After command this should appear:
To continue, follow these steps:

  1. Open this URL in your browser:
    https://auth.openai.com/codex/device

  2. Enter this code:
    XXXX-XXXX

Actual Behavior

After Command this appears:
Paste your API key:

Affected Component

Setup / Installation

Messaging Platform (if gateway-related)

N/A (CLI only)

Debug Report

Report       https://paste.rs/Jjsrt
  agent.log    https://dpaste.com/63B7NNBC9
  gateway.log  https://dpaste.com/H4B4CMBRX

Operating System

Ubuntu 24.04

Python Version

3.11.15

Hermes Version

0.16.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    P2Medium — degraded but workaround exists
    comp/cliCLI entry point, hermes_cli/, setup wizard
    area/authAuthentication, OAuth, credential pools
    on Jun 9, 2026
  2. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    Thanks for the report. Current main already routes this command through the Codex OAuth device-code flow; this is an automated hermes-sweeper review.

    • hermes_cli/auth_commands.py:169-176 defaults an unspecified credential type to OAuth for openai-codex.
    • hermes_cli/auth_commands.py:310-345 calls _codex_device_code_login() for that provider; Paste your API key is only in the explicit API-key branch at :197-202.
    • This behavior is present in c78b3e1d3 (fix(auth): add Codex OAuth accounts as distinct pool entries), included in v2026.6.19.
    • The cross-referenced regression-test PR test: cover openai-codex default oauth auth #43450 covered the same expected behavior; it was closed unmerged, while main already has the implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existsarea/authAuthentication, OAuth, credential poolscomp/cliCLI entry point, hermes_cli/, setup wizardprovider/openaiOpenAI / Codex Responses APIsweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions