Skip to content

v0.1.12: skip API-key prompt for codex in merlion model#20

Merged
lai3d merged 1 commit into
mainfrom
claude/codex-auth-model-cmd
May 21, 2026
Merged

v0.1.12: skip API-key prompt for codex in merlion model#20
lai3d merged 1 commit into
mainfrom
claude/codex-auth-model-cmd

Conversation

@lai3d

@lai3d lai3d commented May 21, 2026

Copy link
Copy Markdown
Contributor

v0.1.10 fixed this for merlion setup but I missed merlion model. Both paths (no-arg wizard and merlion model codex:... shortcut) still ran the generic API-key prompt and printed a misleading hint that looked like a shell command.

Fixed: when the provider is codex, skip the API-key prompt and print a clear status line ("Codex auth detected" / "Run codex login").

🤖 Generated with Claude Code

v0.1.10 added a codex special-case to `merlion setup` so the wizard
checks ~/.codex/auth.json instead of trying to read a phantom env var.
I missed the parallel path in `merlion model` — both `merlion model`
(no-arg wizard) and `merlion model codex:gpt-5.5` (shortcut) still
ran the generic API-key prompt for codex, then printed the misleading
hint "Add `(codex login / ~/.codex/auth.json)=...` to .env" which the
user reasonably interpreted as a shell command and ran as
`codex login / ~/.codex/auth.json` (= unrecognized subcommand).

Mirror the setup-wizard fix in both model_cmd paths:
- Skip the API-key prompt when the provider is codex.
- Print "Codex auth detected (~/.codex/auth.json)" if the file exists,
  or "Run `codex login`" with a clear standalone-command hint
  otherwise.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lai3d lai3d merged commit a9371f3 into main May 21, 2026
2 checks passed
@lai3d lai3d deleted the claude/codex-auth-model-cmd branch May 21, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant