Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ dist/
.history/
opencode.json
.opencode/
.omo/
.serena/
tmp
.codex-cache
.codex-cache*.tgz
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

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

## [4.5.0] - 2026-10-17

**Model release**: GPT-5.3 through GPT-6.1 work with ChatGPT accounts again.

### Added
- **GPT-5.3 / 5.4 / 5.5** model ids, including `-fast` variants.
- **GPT-5.6 Sol / Terra / Luna** and **GPT-6 Astra** in the model map and installer configs.
- **Any GPT-6 tier** (`gpt-6-sol`, `gpt-6-luna`, `gpt-6.1-sol`, ...) passes through unchanged; new tiers need no code change.

### Fixed
- **Silent downgrade to `gpt-5.1`**: unknown GPT-6 ids were rewritten to `gpt-5.1`, which the backend rejects for ChatGPT accounts.
- **`-fast` ids** map to their base model (the backend rejects them).
- **Reasoning effort**: `xhigh` kept for 5.6 / 6; `none` kept for GPT-6 Sol and Luna, lifted to `low` for Astra.
- **Prompts**: the 5.6 and GPT-6 families get the 5.2-generation Codex prompt.
- **SSE parsing** hardened for non-standard Codex streams.

## [4.4.0] - 2026-01-09

**Maintenance release**: OAuth success page version sync.
Expand Down
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
---
## 💡 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.
OpenCode should feel effortless. This plugin keeps the setup minimal while giving you full GPT‑5.x / GPT‑6 + Codex access via ChatGPT OAuth.
```
┌─────────────────────────────────────────────────────────┐
│ │
Expand All @@ -29,12 +29,12 @@ npx -y opencode-openai-codex-auth@latest
Then:
```bash
opencode auth login
opencode run "write hello world to test.txt" --model=openai/gpt-5.2 --variant=medium
opencode run "write hello world to test.txt" --model=openai/gpt-5.5 --variant=medium
```
Legacy OpenCode (v1.0.209 and below):
```bash
npx -y opencode-openai-codex-auth@latest --legacy
opencode run "write hello world to test.txt" --model=openai/gpt-5.2-medium
opencode run "write hello world to test.txt" --model=openai/gpt-5.5-medium
```
Uninstall:
```bash
Expand All @@ -43,12 +43,31 @@ npx -y opencode-openai-codex-auth@latest --uninstall --all
```
---
## 📦 Models
- **gpt-6-astra** (low/medium/high/xhigh/max)
- **gpt-5.6-sol** (none/low/medium/high/xhigh/max)
- **gpt-5.6-terra** (none/low/medium/high/xhigh/max)
- **gpt-5.6-luna** (none/low/medium/high/xhigh/max)
- **gpt-5.5** (none/low/medium/high/xhigh)
- **gpt-5.5-fast** (none/low/medium/high/xhigh)
- **gpt-5.4** (none/low/medium/high/xhigh)
- **gpt-5.4-fast** (none/low/medium/high/xhigh)
- **gpt-5.4-mini** (none/low/medium/high)
- **gpt-5.4-mini-fast** (none/low/medium/high)
- **gpt-5.3-codex** (low/medium/high/xhigh)
- **gpt-5.3-codex-spark** (low/medium/high/xhigh)
- **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)

> `gpt-6-astra` does not accept `none`; the Codex backend rejects it explicitly.
>
> The `-fast` ids are accepted but resolve to their base model. The Codex
> backend serves no separate fast tier over ChatGPT OAuth and returns
> `"The '<id>' model is not supported when using Codex with a ChatGPT account"`
> for every `-fast` id, so they are normalized rather than passed through.
---
## 🧩 Configuration
- Modern (OpenCode v1.0.210+): `config/opencode-modern.json`
Expand All @@ -58,7 +77,7 @@ Minimal configs are not supported for GPT‑5.x; use the full configs above.
---
## ✅ Features
- ChatGPT Plus/Pro OAuth authentication (official flow)
- 22 model presets across GPT‑5.2 / GPT‑5.2 Codex / GPT‑5.1 families
- 81 reasoning presets across 18 models, spanning the GPT‑6 / GPT‑5.6 / GPT‑5.5 / GPT‑5.4 / GPT‑5.3 / GPT‑5.2 / GPT‑5.1 families
- Variant system support (v1.0.210+) + legacy presets
- Multimodal input enabled for all models
- Usage‑aware errors + automatic token refresh
Expand Down
8 changes: 4 additions & 4 deletions config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ Both configs provide:
3. **Run opencode**:
```bash
# Modern config (v1.0.210+):
opencode run "task" --model=openai/gpt-5.2 --variant=medium
opencode run "task" --model=openai/gpt-5.2 --variant=high
opencode run "task" --model=openai/gpt-5.5 --variant=medium
opencode run "task" --model=openai/gpt-5.5 --variant=high

# Legacy config:
opencode run "task" --model=openai/gpt-5.2-medium
opencode run "task" --model=openai/gpt-5.2-high
opencode run "task" --model=openai/gpt-5.5-medium
opencode run "task" --model=openai/gpt-5.5-high
```

> **⚠️ 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.
Expand Down
2 changes: 1 addition & 1 deletion config/minimal-opencode.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
}
}
},
"model": "openai/gpt-5-codex"
"model": "openai/gpt-5.5"
}
Loading