@henryqw/pi-multi-codex
v0.3.10
Published
Use multiple ChatGPT Codex OAuth accounts in Pi.
Readme
@henryqw/pi-multi-codex
Use multiple ChatGPT Codex OAuth accounts in Pi.
Install
pi install npm:@henryqw/pi-multi-codexWith
| Package | Why |
| --- | --- |
| @henryqw/pi-model-thinking | Improves. Thinking level follows the model across slots. |
| @henryqw/pi-task-models | Improves. Numbered slots share one profile route. |
| @henryqw/pi-subagent | Improves. Isolated children keep Main's active Codex slot. |
Use
| Surface | Type | Purpose |
| --- | --- | --- |
| /codex-add | command | Create the next numbered slot, then authenticate that slot. |
| /codex-status | command | Show shared seven-day quota snapshots. Never waits on network. |
| /codex-switch | command | Pick an authenticated slot. |
Extension reads 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.
Quota snapshots live in ~/.pi/agent/config/pi-multi-codex/usage.json. They are credential-free cache, not user-edited config.
Remove
pi remove npm:@henryqw/pi-multi-codexDevelopment
npm test --workspace @henryqw/pi-multi-codex
npm run typecheck --workspace @henryqw/pi-multi-codex
npm run pack:check --workspace @henryqw/pi-multi-codex