An OAuth plugin that helps personal coding assistants connect subscriber accounts using OpenAI’s official auth method.
Detailed Introduction
OpenCode OpenAI Codex Auth is an open-source authentication plugin designed for personal coding assistants, implementing OpenAI’s official OAuth flow so tools that leverage Codex/ChatGPT subscriptions can securely access user subscriptions. The project focuses on reducing integration effort while keeping the implementation lightweight and extensible for local or self-hosted setups.
Main Features
- Implements OpenAI’s OAuth authorization flow for Codex/ChatGPT subscriptions.
- Simple integration interfaces and example code for quick front-end or back-end onboarding.
- Open-source MIT-friendly approach with minimal dependencies for easy auditing and local deployment.
Use Cases
- Enable users to authorize their ChatGPT/Codex subscriptions in personal coding assistants.
- Provide compliant access to subscription credentials in privacy-sensitive or self-hosted environments.
- Developers rapidly prototype and reuse sample authorization flows across environments.
Technical Features
- Standard OAuth-based implementation compatible with various front-end and back-end stacks.
- Example projects and documentation to simplify customization and integration.
- Lightweight TypeScript codebase with minimal runtime dependencies.