Skip to content

Commit 269654b

Browse files
committed
feat: rename to oc-chatgpt-multi-auth to bypass OpenCode plugin blocking
BREAKING CHANGE: Package renamed from opencode-openai-codex-auth-multi to oc-chatgpt-multi-auth OpenCode blocks plugins containing 'opencode-openai-codex-auth' in the name. The new name bypasses this restriction. Update your config: plugin: ["oc-chatgpt-multi-auth@latest"] Closes #11
1 parent aa3fd72 commit 269654b

21 files changed

Lines changed: 340 additions & 231 deletions

CHANGELOG.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,28 @@
22

33
All notable changes to this project are documented here. Dates use the ISO format (YYYY-MM-DD).
44

5-
## [Unreleased]
5+
## [4.9.0] - 2026-01-26
66

7-
### Added
7+
**BREAKING: Package renamed from `opencode-openai-codex-auth-multi` to `oc-chatgpt-multi-auth`**
8+
9+
### Changed
10+
- **Package renamed** to bypass OpenCode's plugin blocking. OpenCode skips any plugin with `opencode-openai-codex-auth` in the name, which prevented the plugin from loading. The new name `oc-chatgpt-multi-auth` works correctly.
11+
- Updated all documentation, configs, and references to use new package name.
12+
- Added `multiAccount` flag check in loader to coexist with OpenCode's built-in auth.
13+
14+
### Fixed
15+
- Removed debug console.log statements from loader.
16+
- Plugin now properly detects when it should handle auth vs deferring to built-in.
17+
18+
### Migration
19+
Update your `~/.config/opencode/opencode.json`:
20+
```json
21+
{
22+
"plugin": ["oc-chatgpt-multi-auth@latest"]
23+
}
24+
```
25+
26+
## [4.8.2] - 2026-01-25
827

928
### Changed
1029
- Fix Node ESM plugin load by importing tool from `@opencode-ai/plugin/tool` and ensuring runtime dependency is installed.
@@ -161,7 +180,7 @@ export CODEX_AUTH_RETRY_ALL_MAX_RETRIES=1
161180

162181

163182
### Added
164-
- **One-command installer/update**: `npx -y opencode-openai-codex-auth-multi@latest` (global config, backup, cache clear) with `--legacy` for OpenCode v1.0.209 and below.
183+
- **One-command installer/update**: `npx -y oc-chatgpt-multi-auth@latest` (global config, backup, cache clear) with `--legacy` for OpenCode v1.0.209 and below.
165184
- **Modern variants config**: `config/opencode-modern.json` for OpenCode v1.0.210+; legacy presets remain in `config/opencode-legacy.json`.
166185
- **Installer CLI** bundled as package bin for cross-platform use (Windows/macOS/Linux).
167186

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing Guidelines
22

3-
Thank you for your interest in contributing to opencode-openai-codex-auth-multi!
3+
Thank you for your interest in contributing to oc-chatgpt-multi-auth!
44

55
Before submitting contributions, please review these guidelines to ensure all changes maintain compliance with OpenAI's Terms of Service and the project's goals.
66

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# OpenAI Codex Auth Plugin for OpenCode
22

3-
[![npm version](https://img.shields.io/npm/v/opencode-openai-codex-auth-multi.svg)](https://www.npmjs.com/package/opencode-openai-codex-auth-multi)
4-
[![npm downloads](https://img.shields.io/npm/dw/opencode-openai-codex-auth-multi.svg)](https://www.npmjs.com/package/opencode-openai-codex-auth-multi)
5-
[![Tests](https://github.com/ndycode/opencode-chatgpt-multi-auth/actions/workflows/ci.yml/badge.svg)](https://github.com/ndycode/opencode-chatgpt-multi-auth/actions)
3+
[![npm version](https://img.shields.io/npm/v/oc-chatgpt-multi-auth.svg)](https://www.npmjs.com/package/oc-chatgpt-multi-auth)
4+
[![npm downloads](https://img.shields.io/npm/dw/oc-chatgpt-multi-auth.svg)](https://www.npmjs.com/package/oc-chatgpt-multi-auth)
5+
[![Tests](https://github.com/ndycode/oc-chatgpt-multi-auth/actions/workflows/ci.yml/badge.svg)](https://github.com/ndycode/oc-chatgpt-multi-auth/actions)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
77

88
Enable OpenCode to authenticate against **OpenAI's Codex backend** via OAuth so you can use ChatGPT Plus/Pro rate limits and access models like `gpt-5.2`, `gpt-5.2-codex`, and `gpt-5.1-codex-max` with your ChatGPT credentials.
99

10-
> [!WARNING]
11-
> **Known Issue:** OpenCode currently blocks this plugin by design. The plugin downloads but never loads because OpenCode's plugin loader skips plugins containing `opencode-openai-codex-auth` in the name (to prevent conflicts with the built-in auth). We're working on an upstream fix. See [Issue #11](https://github.com/ndycode/opencode-chatgpt-multi-auth/issues/11) and [Troubleshooting](docs/troubleshooting.md#known-limitations) for details.
10+
> [!NOTE]
11+
> **Renamed from `opencode-openai-codex-auth-multi`** — If you were using the old package, update your config to use `oc-chatgpt-multi-auth` instead. The rename was necessary because OpenCode blocks plugins containing `opencode-openai-codex-auth` in the name.
1212
1313
## What You Get
1414

@@ -51,13 +51,13 @@ Enable OpenCode to authenticate against **OpenAI's Codex backend** via OAuth so
5151
Paste this into any LLM agent (Claude Code, OpenCode, Cursor, etc.):
5252

5353
```
54-
Install the opencode-openai-codex-auth-multi plugin and add the OpenAI model definitions to ~/.config/opencode/opencode.json by following: https://raw.githubusercontent.com/ndycode/opencode-chatgpt-multi-auth/main/README.md
54+
Install the oc-chatgpt-multi-auth plugin and add the OpenAI model definitions to ~/.config/opencode/opencode.json by following: https://raw.githubusercontent.com/ndycode/oc-chatgpt-multi-auth/main/README.md
5555
```
5656

5757
**Option B: One-command install**
5858

5959
```bash
60-
npx -y opencode-openai-codex-auth-multi@latest
60+
npx -y oc-chatgpt-multi-auth@latest
6161
```
6262

6363
This writes the config to `~/.config/opencode/opencode.json`, backs up existing config, and clears the plugin cache.
@@ -70,7 +70,7 @@ This writes the config to `~/.config/opencode/opencode.json`, backs up existing
7070

7171
```json
7272
{
73-
"plugin": ["opencode-openai-codex-auth-multi@latest"]
73+
"plugin": ["oc-chatgpt-multi-auth@latest"]
7474
}
7575
```
7676

@@ -102,7 +102,7 @@ This writes the config to `~/.config/opencode/opencode.json`, backs up existing
102102
2. Add the plugin to the `plugin` array:
103103
```json
104104
{
105-
"plugin": ["opencode-openai-codex-auth-multi@latest"]
105+
"plugin": ["oc-chatgpt-multi-auth@latest"]
106106
}
107107
```
108108

@@ -150,7 +150,7 @@ Add this to your `~/.config/opencode/opencode.json`:
150150
```json
151151
{
152152
"$schema": "https://opencode.ai/config.json",
153-
"plugin": ["opencode-openai-codex-auth-multi@latest"],
153+
"plugin": ["oc-chatgpt-multi-auth@latest"],
154154
"provider": {
155155
"openai": {
156156
"options": {
@@ -363,7 +363,7 @@ OpenCode uses `~/.config/opencode/` on **all platforms** including Windows.
363363
**Solutions:**
364364
1. Update plugin:
365365
```bash
366-
npx -y opencode-openai-codex-auth-multi@latest
366+
npx -y oc-chatgpt-multi-auth@latest
367367
```
368368
2. Ensure config has:
369369
```json
@@ -408,7 +408,7 @@ Works alongside oh-my-opencode. No special configuration needed.
408408
```json
409409
{
410410
"plugin": [
411-
"opencode-openai-codex-auth-multi@latest",
411+
"oc-chatgpt-multi-auth@latest",
412412
"oh-my-opencode@latest"
413413
]
414414
}
@@ -421,7 +421,7 @@ List this plugin BEFORE DCP:
421421
```json
422422
{
423423
"plugin": [
424-
"opencode-openai-codex-auth-multi@latest",
424+
"oc-chatgpt-multi-auth@latest",
425425
"@tarquinen/opencode-dcp@latest"
426426
]
427427
}

config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Both configs provide:
7878

7979
> **⚠️ Important**: Use the config file appropriate for your OpenCode version. Using the modern config with an older OpenCode version (v1.0.209 or below) will not work correctly.
8080
81-
> **Note**: The config templates use an **unversioned** plugin entry (`opencode-openai-codex-auth-multi`) so the installer can always pull the latest release. If you need reproducibility, pin a specific version manually.
81+
> **Note**: The config templates use an **unversioned** plugin entry (`oc-chatgpt-multi-auth`) so the installer can always pull the latest release. If you need reproducibility, pin a specific version manually.
8282
8383
### Minimal config (advanced)
8484

config/minimal-opencode.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://opencode.ai/config.json",
3-
"plugin": ["opencode-openai-codex-auth-multi"],
3+
"plugin": ["oc-chatgpt-multi-auth"],
44

55
"provider": {
66
"openai": {

config/opencode-legacy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://opencode.ai/config.json",
33
"plugin": [
4-
"opencode-openai-codex-auth-multi"
4+
"oc-chatgpt-multi-auth"
55
],
66

77
"provider": {

config/opencode-modern.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://opencode.ai/config.json",
33
"plugin": [
4-
"opencode-openai-codex-auth-multi"
4+
"oc-chatgpt-multi-auth"
55
],
66

77
"provider": {

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ This plugin bridges two different systems with careful engineering:
3232

3333
---
3434

35-
**Quick Links**: [GitHub](https://github.com/ndycode/opencode-openai-codex-auth-multi)[npm](https://www.npmjs.com/package/opencode-openai-codex-auth-multi)[Issues](https://github.com/ndycode/opencode-openai-codex-auth-multi/issues)
35+
**Quick Links**: [GitHub](https://github.com/ndycode/oc-chatgpt-multi-auth)[npm](https://www.npmjs.com/package/oc-chatgpt-multi-auth)[Issues](https://github.com/ndycode/oc-chatgpt-multi-auth/issues)
3636

docs/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Complete reference for configuring the OpenCode OpenAI Codex Auth Plugin.
99
```json
1010
{
1111
"$schema": "https://opencode.ai/config.json",
12-
"plugin": ["opencode-openai-codex-auth-multi@latest"],
12+
"plugin": ["oc-chatgpt-multi-auth@latest"],
1313
"provider": {
1414
"openai": {
1515
"options": {
@@ -113,7 +113,7 @@ Apply same settings to all models:
113113

114114
```json
115115
{
116-
"plugin": ["opencode-openai-codex-auth-multi@latest"],
116+
"plugin": ["oc-chatgpt-multi-auth@latest"],
117117
"provider": {
118118
"openai": {
119119
"options": {
@@ -188,7 +188,7 @@ Different agents use different models:
188188
**Global** (`~/.config/opencode/opencode.json`):
189189
```json
190190
{
191-
"plugin": ["opencode-openai-codex-auth-multi@latest"],
191+
"plugin": ["oc-chatgpt-multi-auth@latest"],
192192
"provider": {
193193
"openai": {
194194
"options": { "reasoningEffort": "medium" }

docs/development/CONFIG_FLOW.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ For a given model, options are merged:
194194
### Example 1: Global Options Only
195195
```json
196196
{
197-
"plugin": ["opencode-openai-codex-auth-multi"],
197+
"plugin": ["oc-chatgpt-multi-auth"],
198198
"provider": {
199199
"openai": {
200200
"options": {
@@ -212,7 +212,7 @@ For a given model, options are merged:
212212
### Example 2: Per-Model Override
213213
```json
214214
{
215-
"plugin": ["opencode-openai-codex-auth-multi"],
215+
"plugin": ["oc-chatgpt-multi-auth"],
216216
"provider": {
217217
"openai": {
218218
"options": {
@@ -248,7 +248,7 @@ For a given model, options are merged:
248248
```json
249249
{
250250
"$schema": "https://opencode.ai/config.json",
251-
"plugin": ["opencode-openai-codex-auth-multi"],
251+
"plugin": ["oc-chatgpt-multi-auth"],
252252
"model": "openai/gpt-5-codex-medium",
253253
"provider": {
254254
"openai": {

0 commit comments

Comments
 (0)