Skip to content

Commit cb5d950

Browse files
committed
chore(release): v0.3.3
1 parent 4a37c94 commit cb5d950

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ opencode auth login --provider openai
4545

4646
In a normal TTY terminal it opens a navigable account-management menu. In non-TTY environments it falls back to a readline flow.
4747

48+
From this menu you can add accounts in three ways:
49+
50+
- `Add account (browser)` starts the normal browser OAuth flow
51+
- `Add account (headless)` starts the device-code flow for remote or browserless environments
52+
- `Import ChatGPT access token` imports an existing ChatGPT OAuth access token directly
53+
54+
To use an access token directly, select `Import ChatGPT access token`, enter an account label, then paste the ChatGPT OAuth access token when prompted. The token must be a valid, unexpired ChatGPT OAuth JWT that includes both the ChatGPT user ID and account or workspace ID used for Codex routing.
55+
56+
Access-token imports are non-refreshable unless the same account was already added through OAuth. When an imported token expires or receives an authorization failure, the plugin disables that account and you need to import a fresh ChatGPT access token. Re-importing a token for the same ChatGPT identity updates the saved token; if that identity already has an OAuth refresh token, the refresh token is preserved.
57+
4858
From the management flow you can:
4959

5060
- Inspect which account is currently active for routing
@@ -64,15 +74,17 @@ While the plugin is active, `openai` OAuth is treated as the Codex subscription
6474
## Requirements
6575

6676
- OpenCode with npm plugin loading enabled
67-
- A Codex-compatible OpenAI account
77+
- A Codex-compatible OpenAI account or a valid ChatGPT OAuth access token
6878
- Bun for local development and test runs
6979

7080
## Behavior
7181

82+
- Supports browser OAuth, headless device-code login, and direct ChatGPT OAuth access-token imports
7283
- Sticky account selection
7384
- Switches immediately on `429`
7485
- Tracks per-account Codex usage windows from response headers and `GET /backend-api/wham/usage`
7586
- Respects 5-hour, weekly, and alternate metered-bucket exhaustion during account rotation
87+
- Disables expired or unauthorized access-token-only accounts instead of trying OAuth refresh
7688
- Fails fast when all accounts are rate-limited
7789

7890
## Config

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "opencode-codex",
4-
"version": "0.3.2",
4+
"version": "0.3.3",
55
"description": "Multi-account ChatGPT Codex auth plugin for OpenCode",
66
"license": "MIT",
77
"repository": {

0 commit comments

Comments
 (0)