@christiandoxa/prodex 0.138.0 → 0.139.0
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 +35 -8
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# prodex
|
|
2
2
|
|
|
3
|
-
`prodex` is a multi-account Codex wrapper with auto-rotation.
|
|
3
|
+
`prodex` is a multi-account, multi-provider Codex wrapper with auto-rotation.
|
|
4
4
|
|
|
5
|
-
Use multiple Codex accounts from one command line.
|
|
5
|
+
Use multiple Codex accounts and supported provider backends from one command line. OpenAI/Codex profiles get quota-aware routing and auto-rotation; provider adapters let `prodex s` launch the Codex front end against Gemini, Anthropic, Copilot, DeepSeek, and local OpenAI-compatible servers.
|
|
6
6
|
|
|
7
7
|
## Contents
|
|
8
8
|
|
|
9
9
|
- [Why prodex](#why-prodex)
|
|
10
10
|
- [Requirements](#requirements)
|
|
11
|
+
- [Supported providers](#supported-providers)
|
|
11
12
|
- [Installation](#installation)
|
|
12
13
|
- [Optional tools](#optional-tools)
|
|
13
14
|
- [Quick start](#quick-start)
|
|
@@ -27,6 +28,7 @@ Use `prodex` if you want to:
|
|
|
27
28
|
|
|
28
29
|
- use multiple Codex accounts from one CLI
|
|
29
30
|
- rotate to another account when quota runs out
|
|
31
|
+
- launch Codex/Super against non-OpenAI providers without changing front ends
|
|
30
32
|
- keep profile credentials separated
|
|
31
33
|
- keep sessions attached to the profile that created them
|
|
32
34
|
- run Codex, Caveman mode, Super mode, and Claude Code through the same wrapper
|
|
@@ -44,9 +46,33 @@ You need at least one logged-in Prodex profile.
|
|
|
44
46
|
| Claude-Mem | `mem` variants |
|
|
45
47
|
| RTK | `rtk` variants and `prodex s` / `prodex super` |
|
|
46
48
|
|
|
49
|
+
## Supported providers
|
|
50
|
+
|
|
51
|
+
Prodex supports two provider paths:
|
|
52
|
+
|
|
53
|
+
- **Profile-backed routing**: persisted profiles that Prodex can select, rotate, and inspect where provider APIs allow it.
|
|
54
|
+
- **Runtime provider launch**: `prodex s --provider ...` / `prodex super --provider ...` starts Codex with a temporary provider bridge for that session.
|
|
55
|
+
|
|
56
|
+
| Provider | Launch to Codex | Auth path | Quota view | Notes |
|
|
57
|
+
|---|---:|---|---:|---|
|
|
58
|
+
| OpenAI / Codex | `prodex`, `prodex run`, `prodex s` | ChatGPT OAuth, device code, or OpenAI/API-compatible key via `prodex login` | Yes | Full quota preflight and profile auto-rotation. |
|
|
59
|
+
| Google Gemini | `prodex s --provider gemini` | Google OAuth via `prodex login --with-google`, or `GEMINI_API_KEY` / `--api-key` | OAuth profiles | OAuth mode can rotate across Gemini profiles; API-key mode is runtime-only. |
|
|
60
|
+
| Anthropic Claude | `prodex s --provider anthropic` | Claude Code OAuth via `prodex login --with-claude` / `prodex profile import claude`, or `ANTHROPIC_API_KEY(S)` / `--api-key` | No | Runs through Prodex's local Responses-to-Anthropic adapter. |
|
|
61
|
+
| GitHub Copilot | `prodex s --provider copilot` | Imported Copilot CLI profile via `prodex profile import copilot`, or `GITHUB_COPILOT_API_KEY` / `--api-key` | Imported profiles | Native Copilot profile mode keeps continuations bound to the owning profile. |
|
|
62
|
+
| DeepSeek | `prodex s --provider deepseek` | `DEEPSEEK_API_KEY(S)` / `--api-key` | No | API-key-only provider; no OAuth login profile in Prodex. |
|
|
63
|
+
| Local OpenAI-compatible | `prodex super --url http://127.0.0.1:8131` | Local server auth/config | No | Injects a temporary local provider and skips quota preflight. |
|
|
64
|
+
| Bedrock / custom Codex `model_provider` | `prodex run` / `prodex caveman` direct pass-through | Codex-owned config | No | Prodex does not proxy or quota-check these profiles. |
|
|
65
|
+
|
|
66
|
+
<details>
|
|
67
|
+
<summary>Provider behavior details</summary>
|
|
68
|
+
|
|
69
|
+
The auto-rotate proxy is intentionally conservative. It rotates only before a request or stream is committed, preserves `previous_response_id`, turn-state, and session affinity, and does not rotate mid-stream. OpenAI/Codex remains the default quota-aware pool. Gemini OAuth and imported Copilot profiles have provider-specific quota views. Anthropic, DeepSeek, API-key Gemini, API-key Copilot, local URLs, and Bedrock/custom Codex providers skip Prodex quota preflight.
|
|
70
|
+
|
|
71
|
+
</details>
|
|
72
|
+
|
|
47
73
|
## Installation
|
|
48
74
|
|
|
49
|
-
<details
|
|
75
|
+
<details>
|
|
50
76
|
<summary>Install from npm</summary>
|
|
51
77
|
|
|
52
78
|
```bash
|
|
@@ -346,7 +372,7 @@ When you answer `y` to the `prodex super` / `prodex s` Presidio prompt or pass `
|
|
|
346
372
|
|
|
347
373
|
## Quick start
|
|
348
374
|
|
|
349
|
-
<details
|
|
375
|
+
<details>
|
|
350
376
|
<summary>Import your current Codex login</summary>
|
|
351
377
|
|
|
352
378
|
If your current Codex home is already logged in:
|
|
@@ -428,7 +454,7 @@ When you import a Copilot profile, Prodex does not move the Copilot token into P
|
|
|
428
454
|
|
|
429
455
|
## Daily command: `prodex s`
|
|
430
456
|
|
|
431
|
-
<details
|
|
457
|
+
<details>
|
|
432
458
|
<summary>Super mode overview</summary>
|
|
433
459
|
|
|
434
460
|
For daily work, I use:
|
|
@@ -488,7 +514,7 @@ Managed optimizer checkouts are discovered from `PRODEX_OPTIMIZERS_HOME`, `$XDG_
|
|
|
488
514
|
|
|
489
515
|
## Commands
|
|
490
516
|
|
|
491
|
-
<details
|
|
517
|
+
<details>
|
|
492
518
|
<summary>Most used commands</summary>
|
|
493
519
|
|
|
494
520
|
```bash
|
|
@@ -535,9 +561,10 @@ prodex super --dry-run
|
|
|
535
561
|
prodex quota --all
|
|
536
562
|
prodex quota --all --once
|
|
537
563
|
prodex quota --all --auth no-auth --once
|
|
564
|
+
prodex quota --all --detail --provider openai
|
|
538
565
|
```
|
|
539
566
|
|
|
540
|
-
The live `prodex quota --all --detail` view accepts `s` to cycle sort modes and `f` to cycle the provider filter through `all`, `openai`, and `gemini
|
|
567
|
+
The live `prodex quota --all --detail` view accepts `s` to cycle sort modes and `f` to cycle the provider filter through `all`, `openai`, `gemini`, `anthropic`, and `copilot`. Add `--provider openai`, `--provider gemini`, `--provider anthropic`, or `--provider copilot` to start locked to a single provider.
|
|
541
568
|
|
|
542
569
|
</details>
|
|
543
570
|
|
|
@@ -750,7 +777,7 @@ prodex claude --profile second -- -p --output-format json "show the latest diff"
|
|
|
750
777
|
|
|
751
778
|
## Profiles
|
|
752
779
|
|
|
753
|
-
<details
|
|
780
|
+
<details>
|
|
754
781
|
<summary>Common profile commands</summary>
|
|
755
782
|
|
|
756
783
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christiandoxa/prodex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.139.0",
|
|
4
4
|
"description": "Safe multi-account auto-rotate for Codex CLI with isolated CODEX_HOME profiles",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"@openai/codex": "latest"
|
|
17
17
|
},
|
|
18
18
|
"optionalDependencies": {
|
|
19
|
-
"@christiandoxa/prodex-linux-x64": "0.
|
|
20
|
-
"@christiandoxa/prodex-linux-arm64": "0.
|
|
21
|
-
"@christiandoxa/prodex-darwin-x64": "0.
|
|
22
|
-
"@christiandoxa/prodex-darwin-arm64": "0.
|
|
23
|
-
"@christiandoxa/prodex-win32-x64": "0.
|
|
24
|
-
"@christiandoxa/prodex-win32-arm64": "0.
|
|
19
|
+
"@christiandoxa/prodex-linux-x64": "0.139.0",
|
|
20
|
+
"@christiandoxa/prodex-linux-arm64": "0.139.0",
|
|
21
|
+
"@christiandoxa/prodex-darwin-x64": "0.139.0",
|
|
22
|
+
"@christiandoxa/prodex-darwin-arm64": "0.139.0",
|
|
23
|
+
"@christiandoxa/prodex-win32-x64": "0.139.0",
|
|
24
|
+
"@christiandoxa/prodex-win32-arm64": "0.139.0"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">=18"
|