npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-openai-codex-auth-multi

v4.3.0-multiaccount.1

Published

Fork of opencode-openai-codex-auth with multi-account rotation (ChatGPT OAuth / Codex backend)

Downloads

98

Readme

Image 1: opencode-openai-codex-auth-multi

Forked from numman-ali/opencode-openai-codex-auth (by Numman Ali) Maintained by ndycode

Twitter Follow npm version Tests npm downloads One install. Every Codex model. Install · Models · Configuration · Docs


💡 Philosophy

"One config. Every model." OpenCode should feel effortless. This plugin keeps the setup minimal while giving you full GPT‑5.x + Codex access via ChatGPT OAuth.

┌─────────────────────────────────────────────────────────┐
│                                                         │
│  ChatGPT OAuth → Codex backend → OpenCode               │
│  One command install, full model presets, done.         │
│                                                         │
└─────────────────────────────────────────────────────────┘

🚀 Quick Start

Install from npm (recommended)

npx -y opencode-openai-codex-auth-multi@latest

Legacy OpenCode (v1.0.209 and below):

npx -y opencode-openai-codex-auth-multi@latest --legacy

Then:

# Modern OpenCode (v1.0.210+)
opencode auth login
opencode run "write hello world to test.txt" --model=openai/gpt-5.2 --variant=medium

# Legacy OpenCode (v1.0.209 and below)
opencode run "write hello world to test.txt" --model=openai/gpt-5.2-medium

Install from source (optional)

git clone https://github.com/ndycode/opencode-openai-codex-auth-multi.git
cd opencode-openai-codex-auth-multi
npm ci
npm run build

Point OpenCode at the local build output (replace with your absolute path):

{
  "plugin": ["file:///absolute/path/to/opencode-openai-codex-auth-multi/dist"]
}

📦 Models

  • gpt-5.2 (none/low/medium/high/xhigh)
  • gpt-5.2-codex (low/medium/high/xhigh)
  • gpt-5.1-codex-max (low/medium/high/xhigh)
  • gpt-5.1-codex (low/medium/high)
  • gpt-5.1-codex-mini (medium/high)
  • gpt-5.1 (none/low/medium/high)

🧩 Configuration

  • Modern (OpenCode v1.0.210+): config/opencode-modern.json
  • Legacy (OpenCode v1.0.209 and below): config/opencode-legacy.json

Minimal configs are not recommended for GPT–5.x/Codex; use the full configs above. For advanced/debug use only, see config/minimal-opencode.json.

Multi-account

  • Add multiple accounts by running opencode auth login and choosing add more accounts.
  • Auto-rotation kicks in on rate limits.
  • Manage accounts with openai-accounts, openai-accounts-switch, and openai-accounts-status.
  • Storage: ~/.opencode/openai-codex-accounts.json

✅ Features

  • ChatGPT Plus/Pro OAuth authentication (official flow)
  • 22 model presets across GPT–5.2 / GPT–5.2 Codex / GPT–5.1 families
  • Variant system support (v1.0.210+) + legacy presets
  • Multimodal input enabled for all models
  • Usage–aware errors + automatic token refresh

📚 Docs

  • Getting Started: docs/getting-started.md
  • Configuration: docs/configuration.md
  • Troubleshooting: docs/troubleshooting.md
  • Architecture: docs/development/ARCHITECTURE.md

⚠️ Usage Notice

This plugin is for personal development use with your own ChatGPT Plus/Pro subscription. For production or multi‑user applications, use the OpenAI Platform API.

Built for developers who value simplicity.