@henryqw/pi-multi-codex 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,19 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@henryqw/pi-multi-codex`
|
|
2
2
|
|
|
3
|
-
Use multiple ChatGPT Codex OAuth
|
|
3
|
+
Use multiple ChatGPT Codex OAuth accounts in Pi. Native `/login` still owns credentials.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
Codex for slot 1. Run `/codex-add`, then `/login` and select reported numbered
|
|
7
|
-
slot for each additional Codex OAuth credential.
|
|
5
|
+
## Install
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
```bash
|
|
8
|
+
pi install npm:@henryqw/pi-multi-codex
|
|
9
|
+
```
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
status never waits for network. Credential-free snapshots live in
|
|
13
|
-
`config/pi-multi-codex/usage.json` under Pi agent directory.
|
|
11
|
+
## Use
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
`/
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
| Surface | Purpose |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `/login` | Authenticate slot 1 as OpenAI Codex. |
|
|
16
|
+
| `/codex-add` | Create the next numbered slot, then `/login` and pick that slot. |
|
|
17
|
+
| `/codex-status` | Show shared seven-day quota snapshots. Never waits on network. |
|
|
18
|
+
| `/codex-switch` | Pick an authenticated slot. |
|
|
19
|
+
|
|
20
|
+
Extension reads native `auth.json` and never writes or refreshes credentials. Before the first agent start, a fresh snapshot routes a managed Codex model to the slot with the most seven-day quota. Routing preserves model ID and never changes in-progress work. Footer shows the active slot and fresh seven-day quota. Scoped sessions can switch only to exact scoped aliases; restart or update model scope after adding a slot.
|
|
21
|
+
|
|
22
|
+
Quota snapshots live in `~/.pi/agent/config/pi-multi-codex/usage.json`. They are credential-free cache, not user-edited config.
|
|
23
|
+
|
|
24
|
+
## Remove
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pi remove npm:@henryqw/pi-multi-codex
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Development
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm test --workspace @henryqw/pi-multi-codex
|
|
34
|
+
npm run typecheck --workspace @henryqw/pi-multi-codex
|
|
35
|
+
npm run pack:check --workspace @henryqw/pi-multi-codex
|
|
36
|
+
```
|