oc-codex-setup
Install or refresh oc-codex-multi-auth in OpenCode, choose the right config mode, and verify Codex OAuth with ChatGPT Plus or Pro access.
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
oc-codex-setup
Use this skill when the user wants to install, reinstall, upgrade, or troubleshoot oc-codex-multi-auth in OpenCode.
Default install (provider preserving)
npx -y oc-codex-multi-auth@latest
This is the default. It registers the OpenCode and TUI plugin entries without changing provider.openai.
Compact modern catalog
npx -y oc-codex-multi-auth@latest --modern
Use this when the shipped 13 base OAuth model families and 59 OpenCode variant presets are required.
Config-safe update
npx -y oc-codex-multi-auth@latest update
Use this to refresh an existing installation. It only clears the managed package cache and never reads or writes opencode.json or tui.json. Restart OpenCode afterward.
Plugin-only install
npx -y oc-codex-multi-auth@latest install --plugin-only
Use this when the user already manages provider.openai. It registers the OpenCode and TUI plugin entries without changing that provider configuration.
Full install (explicit selector IDs)
npx -y oc-codex-multi-auth@latest --full
Use this when the user needs direct selector IDs such as openai/gpt-5.5-medium, openai/gpt-6-astra-high, or openai/gpt-5.6-sol-high in addition to the compact bases.
Legacy install (older OpenCode)
npx -y oc-codex-multi-auth@latest --legacy
Use this on older OpenCode versions that do not support variant-based model entries. Installs 59 explicit model IDs only.
Other installer flags
--dry-run— show changed config paths without values or writes--no-cache-clear— skip clearing the OpenCode plugin cache--modern— install the compact modern catalog--plugin-only— preserveprovider.openai; cannot be combined with a catalog mode
Standalone CLI (no agent cost)
oc-codex-multi-auth status
oc-codex-multi-auth list
oc-codex-multi-auth warm
oc-codex-multi-auth doctor
Also available: limits, dashboard, health, diag.
Login and verification
- Run
opencode auth login. - Run a quick verification request after OpenCode or
--modernsupplies the selector:
opencode run "Explain this repository" --model=openai/gpt-5.5 --variant=medium
Do not use openai/gpt-5.5-medium unless the user installed with --full or --legacy.
- Optional GPT-6 Astra / GPT-5.6 smoke:
opencode run "Explain this repository" --model=openai/gpt-6-astra --variant=medium
opencode run "Explain this repository" --model=openai/gpt-5.6-sol --variant=medium
- For a Codex-focused workflow, try:
opencode run "Refactor the retry logic and update the tests" --model=openai/gpt-5-codex --variant=high
- After
--full, explicit IDs are valid:
opencode run "Explain this repository" --model=openai/gpt-5.5-medium
Troubleshooting
- Confirm
"plugin": ["oc-codex-multi-auth"]is present in the OpenCode config. - Re-run
opencode auth loginif tokens expired or the wrong workspace was selected. - Inspect
~/.opencode/logs/codex-plugin/after a failed request. - Set
ENABLE_PLUGIN_REQUEST_LOGGING=1for deeper request logging. - For full docs, see
docs/getting-started.md,docs/configuration.md,docs/troubleshooting.md, anddocs/faq.md.
Usage boundaries
This project is for personal development use with your own ChatGPT Plus or Pro subscription. For production or shared services, prefer the OpenAI Platform API.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/ndycode/oc-chatgpt-multi-auth/skills/oc-codex-setup/SKILL.md