MerchantryTidbits

auth-integration / cli

opencode-openai-codex-auth

Capability: opencode-openai-codex-auth

Use it when

  • You already pay for ChatGPT Plus or Pro and want OpenCode to use that subscription for GPT-5.x and Codex models instead of racking up per-token OpenAI API charges
  • You keep having to re-authenticate your coding agent against OpenAI and want official ChatGPT OAuth with automatic token refresh and usage-aware errors

What it solves

Not the fit when

  • Commercial use, production use, or users requiring an OpenAI-supported or audited integration
  • Editors or agents other than OpenCode
  • Users without a ChatGPT Plus/Pro subscription
  • oauth-flow-headless
  • multi-model-routing
  • rate-limit-provider

Install

npx -y opencode-openai-codex-auth@latest (add --legacy for OpenCode v1.0.209 and below; --uninstall to remove)

Invoke

opencode auth login, then run e.g.: opencode run "write hello world to test.txt" --model=openai/gpt-5.2 --variant=medium

Alternatives

No reviewed alternatives recorded yet.