@poolzin/pool-bot 2026.2.18 → 2026.2.20

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.
@@ -0,0 +1,82 @@
1
+ # OpenAI Codex CLI Auth (Pool Bot plugin)
2
+
3
+ Use OpenAI models with your **ChatGPT Plus/Pro subscription** via the Codex CLI OAuth tokens.
4
+
5
+ This plugin reads authentication from the [OpenAI Codex CLI](https://github.com/openai/codex) and uses those OAuth credentials to access OpenAI models — no separate API key required.
6
+
7
+ ## Enable
8
+
9
+ Bundled plugins are disabled by default. Enable this one:
10
+
11
+ ```bash
12
+ poolbot plugins enable openai-codex-auth
13
+ ```
14
+
15
+ Restart the Gateway after enabling.
16
+
17
+ ## Prerequisites
18
+
19
+ 1. **ChatGPT Plus or Pro subscription** — required for Codex CLI access
20
+ 2. **Codex CLI installed and authenticated**:
21
+
22
+ ```bash
23
+ # Install Codex CLI
24
+ npm install -g @openai/codex
25
+
26
+ # Authenticate (opens browser for OAuth)
27
+ codex login
28
+ ```
29
+
30
+ This creates `~/.codex/auth.json` with your OAuth tokens.
31
+
32
+ ## Authenticate with Pool Bot
33
+
34
+ After Codex CLI is authenticated:
35
+
36
+ ```bash
37
+ poolbot models auth login --provider openai-codex --set-default
38
+ ```
39
+
40
+ ## Available Models
41
+
42
+ The following models are available through Codex CLI authentication:
43
+
44
+ - `openai/gpt-4.1`, `openai/gpt-4.1-mini`, `openai/gpt-4.1-nano`
45
+ - `openai/gpt-4o`, `openai/gpt-4o-mini`
46
+ - `openai/o1`, `openai/o1-mini`, `openai/o1-pro`
47
+ - `openai/o3`, `openai/o3-mini`
48
+ - `openai/o4-mini`
49
+
50
+ Default model: `openai/o3`
51
+
52
+ ## How It Works
53
+
54
+ 1. The plugin reads `~/.codex/auth.json` created by `codex login`
55
+ 2. OAuth tokens from your ChatGPT subscription are extracted
56
+ 3. Pool Bot uses these tokens to authenticate with OpenAI's API
57
+ 4. Tokens auto-refresh when needed (handled by Pool Bot's credential system)
58
+
59
+ ## Why Use This?
60
+
61
+ - **No separate API key** — use your existing ChatGPT Plus/Pro subscription
62
+ - **No usage-based billing** — covered by your subscription
63
+ - **Access to latest models** — same models available in ChatGPT
64
+
65
+ ## Troubleshooting
66
+
67
+ ### "No Codex auth found"
68
+
69
+ Run `codex login` to authenticate the Codex CLI first.
70
+
71
+ ### Tokens expired
72
+
73
+ Re-run `codex login` to refresh your tokens, then re-authenticate:
74
+
75
+ ```bash
76
+ codex login
77
+ poolbot models auth login --provider openai-codex --set-default
78
+ ```
79
+
80
+ ### Model not available
81
+
82
+ Some models may require specific subscription tiers (e.g., o1-pro requires ChatGPT Pro).
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@poolzin/openai-codex-auth",
3
+ "version": "2026.2.18",
4
+ "private": true,
5
+ "description": "OpenAI Codex CLI auth provider plugin - use ChatGPT Plus/Pro subscription for OpenAI models",
6
+ "type": "module",
7
+ "devDependencies": {
8
+ "poolbot": "workspace:*"
9
+ },
10
+ "poolbot": {
11
+ "extensions": [
12
+ "./index.ts"
13
+ ]
14
+ }
15
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "id": "openai-codex-auth",
3
+ "providers": ["openai-codex"],
4
+ "configSchema": {
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "properties": {}
8
+ }
9
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "id": "phone-control",
3
+ "name": "Phone Control",
4
+ "description": "Arm/disarm high-risk phone node commands (camera/screen/writes) with an optional auto-expiry.",
5
+ "configSchema": {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {}
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "id": "talk-voice",
3
+ "name": "Talk Voice",
4
+ "description": "Manage Talk voice selection (list/set).",
5
+ "configSchema": {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {}
9
+ }
10
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "id": "thread-ownership",
3
+ "name": "Thread Ownership",
4
+ "description": "Prevents multiple agents from responding in the same Slack thread. Uses HTTP calls to the slack-forwarder ownership API.",
5
+ "configSchema": {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "forwarderUrl": {
10
+ "type": "string"
11
+ },
12
+ "abTestChannels": {
13
+ "type": "array",
14
+ "items": { "type": "string" }
15
+ }
16
+ }
17
+ },
18
+ "uiHints": {
19
+ "forwarderUrl": {
20
+ "label": "Forwarder URL",
21
+ "help": "Base URL of the slack-forwarder ownership API (default: http://slack-forwarder:8750)"
22
+ },
23
+ "abTestChannels": {
24
+ "label": "A/B Test Channels",
25
+ "help": "Slack channel IDs where thread ownership is enforced"
26
+ }
27
+ }
28
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolzin/pool-bot",
3
- "version": "2026.2.18",
3
+ "version": "2026.2.20",
4
4
  "description": "🎱 Pool Bot - AI assistant with PLCODE integrations",
5
5
  "keywords": [],
6
6
  "license": "MIT",