Skip to content

feat: add ChatGPT subscription authentication - #275

Open
salmonumbrella wants to merge 1 commit into
maathimself:mainfrom
salmonumbrella:feat/chatgpt-oauth
Open

feat: add ChatGPT subscription authentication#275
salmonumbrella wants to merge 1 commit into
maathimself:mainfrom
salmonumbrella:feat/chatgpt-oauth

Conversation

@salmonumbrella

@salmonumbrella salmonumbrella commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Add ChatGPT subscription accounts as an alternative to API-key billing for MailFlow's AI features. Administrators authorize through OpenAI's device flow; MailFlow stores the resulting credentials encrypted and uses the Codex Responses API without exposing tokens to the browser.

I9BBBde1@2x

Changes

  • Add a provider selector in AI settings so administrators can choose between an API key and a ChatGPT account.
  • Add ChatGPT subscription authentication through a device code, with encrypted credential storage and Codex Responses support.

Testing

Go to Settings → AI, select ChatGPT Account, and connect your ChatGPT account with the displayed device code.


Contributor License Agreement

By submitting this pull request I confirm that:

  • I have read and agree to the Contributor License Agreement.
  • My contribution is my own original work (or I have identified any third-party material and confirmed it is compatible with the CLA).
  • I have the right to submit this contribution under the terms of the CLA.

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