Skip to content

Conversation

@colobas
Copy link

@colobas colobas commented Oct 13, 2025

Vibe coded codex auth via subscription. It's working for me.

@mortang2410
Copy link

Seconding this. It's such an obvious feature.

Copy link
Owner

@xenodium xenodium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! Added some minor comments.

(error "Must specify either :api-key or :login"))
(cond
(api-key `((:api-key . ,api-key)))
((stringp login) `((:login . t) (:login-method-id . ,login)))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get rid of (:login-method-id . ...) and use :login t only for now. Alternatively, it could also be named :chagpt-login. Either work for me.

Internally :login t (or alternative) implies (acp-make-authenticate-request :method-id "chatgpt").

When we have other methods to support, we can add something other than :login.

I know this requries explicitly extending keys later on but will enable us to keep track of what is and isn't supported.

:type 'alist
:group 'agent-shell)

(defcustom agent-shell-openai-codex-login-authentication-method-id "chatgpt"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. We can likely do without this variable and internally :login implies chatgpt.

(t
nil)))

(defun agent-shell-openai--codex-login-method-id ()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After previous suggested changes, we won't need this function.

@xenodium
Copy link
Owner

Hi there. Still keen to get this merged? Mind sorting out the conflicts?

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.

3 participants