|
| 1 | +--- |
| 2 | +name: oc-chatgpt-setup |
| 3 | +description: Install or refresh oc-chatgpt-multi-auth in OpenCode, choose the right config mode, and verify ChatGPT Plus or Pro OAuth login. |
| 4 | +--- |
| 5 | + |
| 6 | +# oc-chatgpt-setup |
| 7 | + |
| 8 | +Use this skill when the user wants to install, reinstall, upgrade, or troubleshoot `oc-chatgpt-multi-auth` in OpenCode. |
| 9 | + |
| 10 | +## Default install |
| 11 | + |
| 12 | +```bash |
| 13 | +npx -y oc-chatgpt-multi-auth@latest |
| 14 | +``` |
| 15 | + |
| 16 | +Use this when the user wants the full catalog config, including base entries like `gpt-5.4` and preset entries like `gpt-5.4-high`. |
| 17 | + |
| 18 | +## Modern compact install |
| 19 | + |
| 20 | +```bash |
| 21 | +npx -y oc-chatgpt-multi-auth@latest --modern |
| 22 | +``` |
| 23 | + |
| 24 | +Use this on OpenCode `v1.0.210+` when the user wants the compact variant-based config. |
| 25 | + |
| 26 | +## Login and verification |
| 27 | + |
| 28 | +1. Run `opencode auth login`. |
| 29 | +2. Run a quick verification request: |
| 30 | + |
| 31 | +```bash |
| 32 | +opencode run "Explain this repository" --model=openai/gpt-5.4 --variant=medium |
| 33 | +``` |
| 34 | + |
| 35 | +3. For a Codex-focused workflow, try: |
| 36 | + |
| 37 | +```bash |
| 38 | +opencode run "Refactor the retry logic and update the tests" --model=openai/gpt-5-codex --variant=high |
| 39 | +``` |
| 40 | + |
| 41 | +## Troubleshooting |
| 42 | + |
| 43 | +- Confirm `"plugin": ["oc-chatgpt-multi-auth"]` is present in the OpenCode config. |
| 44 | +- Re-run `opencode auth login` if tokens expired or the wrong workspace was selected. |
| 45 | +- Inspect `~/.opencode/logs/codex-plugin/` after a failed request. |
| 46 | +- Set `ENABLE_PLUGIN_REQUEST_LOGGING=1` for deeper request logging. |
| 47 | +- For full docs, see `docs/getting-started.md`, `docs/configuration.md`, `docs/troubleshooting.md`, and `docs/faq.md`. |
| 48 | + |
| 49 | +## Usage boundaries |
| 50 | + |
| 51 | +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. |
0 commit comments