# numman-ali/opencode-openai-codex-auth

OAuth authentication plugin for personal coding assistance with ChatGPT Plus/Pro subscriptions - uses OpenAI's official authentication method

Repository: https://github.com/numman-ali/opencode-openai-codex-auth
Canonical: https://ross.abutalabs.com/products/opencode-openai-codex-auth
Homepage: https://numman-ali.github.io/opencode-openai-codex-auth/
Language: TypeScript
License: NOASSERTION
License Family: other
Last push: 2026-01-09T14:00:49+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 61, release rhythm 65, longevity 24
- inputs: {"age_days": 336, "days_push": 236, "days_rel": 236, "gap_med": 2, "n_releases_24m": 20}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2183, forks 153 (observed 2026-08-28T04:06:23.395342+00:00)

## What it is
An OpenCode plugin that authenticates via OpenAI's official ChatGPT OAuth flow, letting users with ChatGPT Plus/Pro subscriptions access GPT-5.x and Codex models instead of paying for API credits. It installs model presets, handles token refresh, and supports both modern and legacy OpenCode versions.

## Use cases
- use my ChatGPT Plus subscription with opencode instead of API credits
- authenticate opencode with ChatGPT OAuth
- set up GPT-5 Codex models in opencode with one command
- configure codex model presets and reasoning variants for opencode
- fix token refresh and usage-aware errors for ChatGPT auth in opencode
- install opencode auth plugin over SSH or WSL with manual URL paste

## When to choose
- you have a personal ChatGPT Plus/Pro subscription and use OpenCode for coding assistance
- you want GPT-5.x/Codex model presets configured automatically without manual JSON editing
- you need automatic token refresh and usage-aware error handling for the Codex backend

## When to avoid
- you need production, commercial, or multi-user API access - use the OpenAI Platform API instead
- you don't use OpenCode as your coding assistant
- you want to use models outside the GPT-5.x/Codex families

## Facets
- artifact type: plugin
- maturity: active
- function: auth, plugin-system, llm-inference, configuration-management
- domain: developer-tools, large-language-models, artificial-intelligence
- platform: cli, cross-platform
- tags: opencode, oauth, chatgpt-plus, chatgpt-pro, codex, gpt-5, openai, auth-plugin, command-line, nodejs

## Member repositories
- numman-ali/opencode-openai-codex-auth (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.395342+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:48:15.199809+00:00, confidence not recorded.
  - readme: https://github.com/numman-ali/opencode-openai-codex-auth (fetched 2026-08-28T04:06:23.395342+00:00, sha 2878a5f6a23f)
  - homepage: https://numman-ali.github.io/opencode-openai-codex-auth/ (fetched 2026-08-29T10:28:36.702696+00:00, sha 3f2c0d48ed3d)
  - registry_npm: https://registry.npmjs.org/opencode-openai-codex-auth (fetched 2026-08-29T10:28:36.711712+00:00, sha 35211cec16c3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
