[GH-ISSUE #451] [Feature]: ChatGPT style login #199

Closed
opened 2026-10-20 17:26:10 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @brandonm4 on GitHub (May 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/451

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

This would allow users to utilize OpenAI/ChatGPT using their ChatGPT logins instead of an API Key.

Proposed solution

Create an openai - chatgpt - oauth provider. On the connection page you will click a login button which will provide you with the device code and then open the openai oauth login screen. Once logged in you provide the device code and it links Marinara-Engine as a ChatGPT device. This is the way Codex and other apps do it. I referenced the Codex source and followed the way they did it.

Additional context

I have it working - I have created a provider and wired it into the openai.providers.ts, connections.routes.ts, and created a openai-chatgpt.provider.ts. I could provide a pull request if there is interest.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • [] I DID NOT read this template and provide the requested details.
Originally created by @brandonm4 on GitHub (May 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/451 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? This would allow users to utilize OpenAI/ChatGPT using their ChatGPT logins instead of an API Key. ## Proposed solution Create an openai - chatgpt - oauth provider. On the connection page you will click a login button which will provide you with the device code and then open the openai oauth login screen. Once logged in you provide the device code and it links Marinara-Engine as a ChatGPT device. This is the way Codex and other apps do it. I referenced the Codex source and followed the way they did it. ## Additional context I have it working - I have created a provider and wired it into the openai.providers.ts, connections.routes.ts, and created a openai-chatgpt.provider.ts. I could provide a pull request if there is interest. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:10 +07:00
Author
Owner

@cha1latte commented on GitHub (May 6, 2026):

Triage note: labeling this as scope-risk because ChatGPT-style login would add a new authentication path with provider/security/maintenance implications beyond the existing API-key connection flow.

Least risky next step is to get a maintainer decision on whether this auth model is supported before accepting or building the provider changes.

<!-- gh-comment-id:4392822884 --> @cha1latte commented on GitHub (May 6, 2026): Triage note: labeling this as `scope-risk` because ChatGPT-style login would add a new authentication path with provider/security/maintenance implications beyond the existing API-key connection flow. Least risky next step is to get a maintainer decision on whether this auth model is supported before accepting or building the provider changes.
Author
Owner

@SpicyMarinara commented on GitHub (May 10, 2026):

We have a similar implementation for Anthropic with Claude Max; we'll do it the same way in Connections, but for the OpenAI endpoint.

<!-- gh-comment-id:4414962094 --> @SpicyMarinara commented on GitHub (May 10, 2026): We have a similar implementation for Anthropic with Claude Max; we'll do it the same way in Connections, but for the OpenAI endpoint.
Author
Owner

@SpicyMarinara commented on GitHub (May 10, 2026):

Implemented the ChatGPT-style OpenAI connection path following the existing Claude Subscription pattern in Connections.

What changed:

  • Added an OpenAI (ChatGPT) provider option that reads the local Codex ChatGPT login instead of requiring an OpenAI API key.
  • Routes requests through the ChatGPT Codex backend and forces the Responses API for this provider.
  • Refreshes the local Codex auth token when possible and fetches the ChatGPT model catalog, with a curated fallback model list.
  • Updated model/base URL gates across chat, game, maker, reviewer, translation, encounter, and Spotify DJ paths so local-auth providers work without user-entered base URLs.
  • Updated the Connections editor UX and CHANGELOG.md.

Validation:

  • pnpm --filter @marinara-engine/server lint
  • pnpm --filter @marinara-engine/client lint
  • pnpm check
<!-- gh-comment-id:4415222048 --> @SpicyMarinara commented on GitHub (May 10, 2026): Implemented the ChatGPT-style OpenAI connection path following the existing Claude Subscription pattern in Connections. What changed: - Added an OpenAI (ChatGPT) provider option that reads the local Codex ChatGPT login instead of requiring an OpenAI API key. - Routes requests through the ChatGPT Codex backend and forces the Responses API for this provider. - Refreshes the local Codex auth token when possible and fetches the ChatGPT model catalog, with a curated fallback model list. - Updated model/base URL gates across chat, game, maker, reviewer, translation, encounter, and Spotify DJ paths so local-auth providers work without user-entered base URLs. - Updated the Connections editor UX and CHANGELOG.md. Validation: - pnpm --filter @marinara-engine/server lint - pnpm --filter @marinara-engine/client lint - pnpm check
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#199
No description provided.