@victor-software-house/pi-multicodex 2.0.2 → 2.0.4
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
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
MultiCodex is a [pi](https://github.com/badlogic/pi-mono) extension that manages multiple ChatGPT Codex accounts and rotates between them automatically when you hit quota limits.
|
|
6
6
|
|
|
7
|
-
You add your Codex accounts once. After that, MultiCodex transparently picks the
|
|
7
|
+
You add your Codex accounts once. After that, MultiCodex transparently picks the best available account for every request. When one account runs dry mid-session, it switches to another and retries — no manual intervention needed.
|
|
8
8
|
|
|
9
9
|
## Getting started
|
|
10
10
|
|
|
@@ -24,9 +24,11 @@ When you start a session, MultiCodex:
|
|
|
24
24
|
|
|
25
25
|
1. Imports your existing pi Codex auth automatically (if present).
|
|
26
26
|
2. Checks usage data across all managed accounts.
|
|
27
|
-
3. Picks the
|
|
27
|
+
3. Picks the best available account — untouched accounts first, then the one whose weekly reset window ends soonest, then a random available account as fallback.
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
If you pin a specific account with `/multicodex use`, that account is used until it hits quota or you clear the override.
|
|
30
|
+
|
|
31
|
+
When a request hits a quota or rate limit **before** any output is streamed, MultiCodex marks that account exhausted, picks the next available one, and retries. This happens up to 5 times transparently. If the manual override account fails, the override is cleared and rotation continues with the remaining accounts. Once output has started streaming, the error is surfaced as-is — no mid-stream account switching.
|
|
30
32
|
|
|
31
33
|
## Commands
|
|
32
34
|
|
|
@@ -67,6 +69,8 @@ MultiCodex adds a live footer to your session showing the active account, 5-hour
|
|
|
67
69
|
|
|
68
70
|
You can customize which fields appear and their ordering with `/multicodex footer`.
|
|
69
71
|
|
|
72
|
+

|
|
73
|
+
|
|
70
74
|
## What it does under the hood
|
|
71
75
|
|
|
72
76
|
- **Provider override.** MultiCodex registers itself as the `openai-codex` provider. You do not need to select a different provider or change your model — it works with whatever Codex model you already use.
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@victor-software-house/pi-multicodex",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Codex account rotation extension for pi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"extensions": [
|
|
19
19
|
"./index.ts"
|
|
20
20
|
],
|
|
21
|
-
"image": "https://raw.githubusercontent.com/victor-
|
|
21
|
+
"image": "https://raw.githubusercontent.com/victor-software-house/pi-multicodex/main/assets/multicodex.png"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/victor-
|
|
25
|
+
"url": "git+https://github.com/victor-software-house/pi-multicodex.git"
|
|
26
26
|
},
|
|
27
|
-
"homepage": "https://github.com/victor-
|
|
27
|
+
"homepage": "https://github.com/victor-software-house/pi-multicodex#readme",
|
|
28
28
|
"bugs": {
|
|
29
|
-
"url": "https://github.com/victor-
|
|
29
|
+
"url": "https://github.com/victor-software-house/pi-multicodex/issues"
|
|
30
30
|
},
|
|
31
31
|
"author": "Victor",
|
|
32
32
|
"files": [
|