LastChat icon indicating copy to clipboard operation
LastChat copied to clipboard

Please add ChatGPT OAuth Codex via Device Code

Open anshumanjha007 opened this issue 2 weeks ago • 2 comments

I'd really love to see this impemented.

One thing worth considering is the existing implementation in RikkaHub. It already supports ChatGPT subscription authentication through Codex Device Authorization, including token refresh, model discovery and streaming Responses API support.

Reference: https://github.com/rikkahub/rikkahub/pull/1752

Ideally, LastChat could support both authentication methods within the existing OpenAI provider configuration:

API Key: Keep the current functionality unchanged.

ChatGPT Subscription: Allow users to authenticate their ChatGPT account through the device code OAuth flow and use their subscription backed Codex models.

This would be particularly useful for users who already have ChatGPT subscriptions and want to use them in a third party Android client without relying on the official ChatGPT application.

It would also be great if the integration preserved LastChat's existing provider and model customization features.

anshumanjha007 avatar Nov 19 '26 12:11 anshumanjha007

Hey, I'm not a dev of this project but I'm pretty sure the next release will include this as I've compiled a build myself from the dev branch to preview some of the upcoming changes and it seems to be there Screenshot_20261119-172020.png

dynodevv avatar Nov 19 '26 16:11 dynodevv

Hey, I'm not a dev of this project but I'm pretty sure the next release will include this as I've compiled a build myself from the dev branch to preview some of the upcoming changes and it seems to be there Screenshot_20261119-172020.png

Thanks for sharing this.

I've been hoping to see ChatGPT subscription support in LastChat for a while now.

Really looking forward to the next release.

Appreciate you taking the time to compile and share a preview of the upcoming changes.

anshumanjha007 avatar Nov 20 '26 04:11 anshumanjha007