Skip to content

[Ubuntu 26.04] Codex CLI 0.149.0 unexpected status 401 Unauthorized: missing api key #39820

Closed

Description

@rrmmxxuu

What version of Codex CLI is running?

0.149.0

What subscription do you have?

API key

Which model were you using?

No response

What platform is your computer?

Linux 7.0.0-30-generic x86_64 unknown

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

What issue are you seeing?

After updating to 0.149.0, did not change anything to auth.json, it showed unexpected status 401 Unauthorized: missing api key, url: http://127.0.0.1:48760/v1/responses. I am using Codex Manager for account managment. Everything worked fine beofore 0.149.0. After I downgraded to 0.148.0, the problem was gone immediately.

What steps can reproduce the bug?

Use openai api key to login in 0.149.0

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Aug 21, 2026
  2. added
    CLI
    auth
    on Aug 21, 2026
  3. Hero2633 commented on Aug 21, 2026

    @Hero2633

    在config.toml文件中的[model_providers.ID] 字段下面添加:
    requires_openai_auth = true可以解决

  4. Hero2633 commented on Aug 21, 2026

    @Hero2633
    Image
  5. rrmmxxuu commented on Aug 21, 2026

    @rrmmxxuu
    Author
    Image

    感谢!!!!

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

    CLIauthbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions