Codex, Plugin
Codex Switch
Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes.
Compatibility: Codex.
Grade B
Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
Rescanned at commit 091074849de7, unchanged since the check below.
PERMISSION_DELETE_FILES NETWORK_NO_FIXED_HOST
Why this grade
- PERMISSION_DELETE_FILES Low
Contains a call that can delete files.
scripts/generate-icon.py, line 108
shutil.rmtree(ICONSET) - NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
src/codex_switch/cli.py, line 1151
with urllib.request.urlopen(request, timeout=timeout) as response:
Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.
Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.
What was checked
Plain notes from the hygiene checks.
Permissions
Concern
can delete files.
PERMISSION_DELETE_FILES
scripts/generate-icon.py, line 108
shutil.rmtree(ICONSET)
scripts/generate-icon.py, line 131
subprocess.run(["iconutil", "-c", "icns", str(ICONSET), "-o", str(ICNS)], check=True)
src/codex_switch/cli.py, line 416
subprocess.run(["launchctl", "enable", f"{launchctl_gui_target()}/{label}"], check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
Show more
src/codex_switch/cli.py, line 501
result = subprocess.run(["launchctl", "getenv", key], check=False, capture_output=True, text=True)
src/codex_switch/cli.py, line 513
subprocess.run(["launchctl", "setenv", key, proxy_url], check=True)
src/codex_switch/cli.py, line 515
subprocess.run(["launchctl", "setenv", key, no_proxy], check=True)
src/codex_switch/cli.py, line 522
subprocess.run(["launchctl", "unsetenv", key], check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
src/codex_switch/cli.py, line 552
subprocess.run(["launchctl", "bootout", launchctl_gui_target(), str(path)], check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
src/codex_switch/cli.py, line 554
subprocess.run(["launchctl", "bootstrap", launchctl_gui_target(), str(path)], check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
Install and update
Pass
No install-time script found, and dependencies are pinned or absent.
Network
Concern
can reach a host that is not written as a fixed address.
NETWORK_NO_FIXED_HOST
src/codex_switch/cli.py, line 1151
with urllib.request.urlopen(request, timeout=timeout) as response:
src/codex_switch/cli.py, line 1369
with urllib.request.urlopen(request, timeout=timeout) as response:
src/codex_switch/cli.py, line 1695
with urllib.request.urlopen(upstream_request, timeout=600) as response:
Show more
src/codex_switch/cli.py, line 1731
with urllib.request.urlopen(upstream_req, timeout=600) as resp:
src/codex_switch/cli.py, line 1793
response = urllib.request.urlopen(upstream_req, timeout=1800)
src/codex_switch/cli.py, line 2084
response = urllib.request.urlopen(upstream_req, timeout=1800)
Secrets
Pass
No read of a credential file or secret environment variable found.
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Pass
No encoded or minified payload found.
Licence
Pass
A licence file is present (LICENSE).
Maintainer activity
Pass
The latest commit is within the last 365 days.
Note
Hygiene check of commit 091074849de7. can delete files. can reach a host that is not written as a fixed address.
Date and source
Date checked:
github.com
Commit graded: 091074849de70d058bff8f6f4529f393a06fa5b1
This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.