mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-21 08:15:23 -04:00
[GH-ISSUE #311] [Enhancement]: Add ChatGPT Plus/Pro authentication as an alternative to OpenAI API key #97
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rwxce on GitHub (May 13, 2026).
Original GitHub issue: https://github.com/vxcontrol/pentagi/issues/311
Originally assigned to: @asdek on GitHub.
Target Component
Core Services (Frontend UI/Backend API)
Enhancement Description
Problem Statement:
Current Limitation:
PentAGI currently supports OpenAI connection through an API key only.
Use Case:
I run PentAGI in a self-hosted environment and would like to connect OpenAI using my ChatGPT Plus/Pro account, not only through an API key.
A similar authentication model exists in tools such as OpenCode, where users can authenticate with their ChatGPT account (headless) instead of relying only on an OpenAI API key.
Proposed Solution:
Feature Description:
Add support for ChatGPT Plus/Pro authentication as an additional OpenAI connection method.
Suggested login methods:
The browser flow would be useful for local deployments.
The headless flow would be useful for Docker, VPS, CI, homelab, and SSH-only environments.
Expected Benefits:
Technical Details
Implementation Approach:
Architecture Changes:
Add an OpenAI authentication abstraction that supports multiple authentication methods:
The selected authentication method should be stored in the existing configuration system and used transparently by PentAGI agents.
New Components:
Dependencies:
If possible, use a standards-based OAuth/device-code flow or the same authentication approach used by comparable tools such as OpenCode/Codex-style clients.
Integration Points:
AI Agents:
Agents should use the configured OpenAI authentication method transparently.
Memory System:
No direct changes expected.
Monitoring:
Add logs or status events for:
Security Considerations:
Designs and Mockups
Suggested UI:
OpenAI Connection Method:
Suggested headless flow:
Alternative Solutions
Alternative Approaches:
Keep API key only
Manual token import
Reason for Preferred Solution:
Supporting both browser and headless ChatGPT Plus/Pro authentication would make PentAGI more flexible for local and self-hosted deployments while keeping API key authentication available for users who prefer the current setup.
Verification
@sickwell commented on GitHub (May 15, 2026):
Hello, and thank you for the issue proposal.
Currently, PentAGI already supports OpenAI integration via API key, which is also the officially supported authentication method for the OpenAI API.
Supporting ChatGPT Plus/Pro session-based authentication would not be a small configuration change: it would require a separate authentication/client layer and likely significant changes or workarounds around langchain-go. We don’t plan to maintain that path, especially given PentAGI’s cybersecurity-related use cases and the additional approval requirements that may apply there.