{"library":"opencode-openai-codex-auth","title":"OpenCode OpenAI Codex Authentication Plugin","description":"This package provides an authentication plugin for the OpenCode AI platform, enabling users to leverage their existing ChatGPT Plus/Pro subscriptions with the OpenAI Codex backend instead of consuming API credits. The current stable version is 4.4.0, and the project demonstrates a very active release cadence with multiple minor and patch releases in quick succession, indicating ongoing development and maintenance. Key differentiators include a simplified one-command installer (`npx opencode-openai-codex-auth@latest`), comprehensive support for various GPT-5.x and Codex model families (including GPT-5.2 Codex), and an official OAuth flow for seamless integration. It handles multimodal input and automatically manages token refresh, aiming to provide a 'one config, every model' philosophy for OpenCode users. It is designed primarily for personal development use, with a warning against production or multi-user applications.","language":"javascript","status":"active","last_verified":"Wed Apr 22","install":{"commands":["npm install opencode-openai-codex-auth"],"cli":null},"imports":["import { OpenAICodexAuthPlugin } from 'opencode-openai-codex-auth';","import type { IOpenAICodexAuthOptions } from 'opencode-openai-codex-auth';","import { Installer } from 'opencode-openai-codex-auth/installer';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npx -y opencode-openai-codex-auth@latest\n\nopencode auth login\nopencode run \"write hello world to test.txt\" --model=openai/gpt-5.2 --variant=medium\n\n# For legacy OpenCode (v1.0.209 and below):\nnpx -y opencode-openai-codex-auth@latest --legacy\nopencode run \"write hello world to test.txt\" --model=openai/gpt-5.2-medium","lang":"bash","description":"This quickstart demonstrates the one-command installation and subsequent authentication and model usage with the OpenCode CLI.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}