You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/codex-fast-proxy/SKILL.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: codex-fast-proxy
3
-
description: Installs, enables, checks, benchmarks, stops, or uninstalls Codex App Fast proxy. Use when the user asks for Codex App Fast, priority service_tier, PackyAPI Fast, provider acceleration, Fast/Priority A/B benchmark, or says phrases like "启用 Codex Fast proxy", "让 Codex App 使用 Fast", "跑 Fast proxy benchmark", "验证供应商是否支持 Fast", "查看 Fast proxy 状态", or "停止 Codex Fast proxy".
3
+
description: Installs, enables, checks, benchmarks, changes upstream URL, stops, or uninstalls Codex App Fast proxy. Use when the user asks for Codex App Fast, priority service_tier, PackyAPI Fast, provider acceleration, Fast/Priority A/B benchmark, or says phrases like "启用 Codex Fast proxy", "让 Codex App 使用 Fast", "跑 Fast proxy benchmark", "验证供应商是否支持 Fast", "把 Codex Fast proxy 的上游切到", "查看 Fast proxy 状态", or "停止 Codex Fast proxy".
4
4
---
5
5
6
6
Use this skill when the user wants Codex to manage the local Fast proxy for Codex App.
@@ -11,6 +11,7 @@ Use this skill when the user wants Codex to manage the local Fast proxy for Code
11
11
- App Fast requests such as `让 Codex App 使用 Fast`
12
12
- Provider-specific requests such as `PackyAPI 开 Fast`
13
13
- Benchmark requests such as `跑 Fast proxy benchmark`, `验证供应商是否支持 Fast`, `Fast 模式有没有变快`
14
+
- Upstream URL changes such as `把 Codex Fast proxy 的上游切到 https://api.example.com/v1`
14
15
- Maintenance requests such as `查看 Fast proxy 状态`, `停止 Fast proxy`, `卸载 Fast proxy`
15
16
16
17
## How to execute
@@ -20,6 +21,7 @@ Run the manager as the source of truth:
each new or resumed session; `autostart --quiet` does not log normal no-op checks.
42
44
- Do not run plain `install` to enable the proxy; the manager rejects config switching without `--start`.
43
45
- If proxy startup or config switching fails, the manager restores the backed-up config before returning.
46
+
- Use `set-upstream --upstream-base <url>` when the user wants to change the provider URL while the
47
+
proxy is already enabled. It must keep Codex config pointed at the local proxy, update the saved
48
+
upstream and uninstall baseline, and refuse to run if config no longer points to the recorded proxy.
49
+
Do not pass `--restart` unless the user explicitly accepts that restarting the proxy can interrupt
50
+
current proxy-backed Codex sessions. Without `--restart`, tell the user to restart Codex App, open a
51
+
new CLI process, or run `start` later to apply the new upstream.
52
+
- Do not edit the active provider `base_url` directly while the proxy is enabled. API key, model,
53
+
reasoning, and other Codex config fields can still be edited directly by the user or agent.
44
54
- Running Codex processes do not hot-switch provider config. After enable, restart Codex App and resume the same conversation if desired, or open a new CLI process.
45
55
- If the current process is already using the proxy, stopping the proxy can interrupt the conversation. Disable with `uninstall --defer-stop`, tell the user to restart Codex App or open a new CLI process, then run uninstall again to finish cleanup.
46
56
- Uninstall removes only the `codex-fast-proxy` hook and must preserve unrelated hooks.
@@ -82,6 +92,9 @@ Use `--provider <name>` only when the user names a provider or when `doctor` rep
82
92
83
93
Use `--upstream-base <url>` only when Codex config does not contain a usable provider `base_url` or the user explicitly wants a different upstream.
84
94
95
+
For upstream URL changes after enable, prefer `set-upstream --upstream-base <url>` over rerunning
96
+
`install --start --upstream-base <url>`.
97
+
85
98
## Result handling
86
99
87
100
- Treat the JSON output as the source of truth.
@@ -104,6 +117,10 @@ Use `--upstream-base <url>` only when Codex config does not contain a usable pro
104
117
-`install --start` backs up `~/.codex/config.toml`.
105
118
- The selected provider's original `base_url` becomes `upstream_base`.
106
119
- The selected provider's `base_url` becomes `http://127.0.0.1:8787/v1`.
120
+
-`set-upstream` updates the saved `upstream_base` and uninstall recovery baseline without changing
121
+
model, reasoning, tools, input, or API key settings. It applies immediately only when the proxy is
122
+
not running or the user explicitly accepted `--restart`; otherwise it defers restarting a running
123
+
proxy to avoid cutting off the current response.
107
124
- A `SessionStart` hook calls the current Python executable with
108
125
`-m codex_fast_proxy autostart --quiet` on future Codex sessions.
109
126
- The proxy only injects `service_tier="priority"` into `POST /v1/responses` when that field is absent.
0 commit comments