[BUG] can not change model to openai on the macos 14 #6493

Closed
opened 2026-02-16 18:04:22 -05:00 by yindo · 12 comments
Owner

Originally created by @stack3mpty on GitHub (Jan 16, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

every time i try to change model to openai, it just fail.
the model automatic change to big pickle when i successfully auth my openai account.
chatgpt pro, not api keys.
i think it is a bug.

Plugins

No response

OpenCode version

1.1.19

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 14.8.2

Terminal

ITerm2, vscode terminal

Originally created by @stack3mpty on GitHub (Jan 16, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description every time i try to change model to openai, it just fail. the model automatic change to big pickle when i successfully auth my openai account. chatgpt pro, not api keys. i think it is a bug. ### Plugins _No response_ ### OpenCode version 1.1.19 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System macOS 14.8.2 ### Terminal ITerm2, vscode terminal
yindo added the bug label 2026-02-16 18:04:22 -05:00
yindo closed this issue 2026-02-16 18:04:23 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #1661: Model switch automatically when changing the mode - Reports model changing unexpectedly during mode/agent switching
  • #6636: Subagent with specific model results in model change in build and plan mode - Similar issue where model switches unexpectedly
  • #7948: TUI: User selected agent/model is overwritten by server defaults when creating a new session - Related to model being reset to defaults after user selection (v1.1.13+)
  • #4243: Cycle through model do not work when a default model is set - Related issue with model selection and defaults

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 16, 2026): This issue might be a duplicate of existing issues. Please check: - #1661: Model switch automatically when changing the mode - Reports model changing unexpectedly during mode/agent switching - #6636: Subagent with specific model results in model change in build and plan mode - Similar issue where model switches unexpectedly - #7948: TUI: User selected agent/model is overwritten by server defaults when creating a new session - Related to model being reset to defaults after user selection (v1.1.13+) - #4243: Cycle through model do not work when a default model is set - Related issue with model selection and defaults Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

Share steps to reproduce, maybe a video?

Cannot replicate

@rekram1-node commented on GitHub (Jan 16, 2026): Share steps to reproduce, maybe a video? Cannot replicate
Author
Owner
@stack3mpty commented on GitHub (Jan 16, 2026): ![Image](https://github.com/user-attachments/assets/7fd09c5d-1921-45eb-afec-4f4adec1d07b) https://github.com/user-attachments/assets/fe0bfe6a-4369-469f-a6ab-f6aa90c0ddcd
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

Hmm interesting

@rekram1-node commented on GitHub (Jan 16, 2026): Hmm interesting
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

maybe try:

opencode auth login

Run that in your terminal instead of using /connect

@rekram1-node commented on GitHub (Jan 16, 2026): maybe try: `opencode auth login` Run that in your terminal instead of using /connect
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

lmk if that works?

@rekram1-node commented on GitHub (Jan 16, 2026): lmk if that works?
Author
Owner

@stack3mpty commented on GitHub (Jan 16, 2026):

INFO 2026-01-16T15:59:28 +472ms service=default version=1.1.19 args=["auth","login"] opencode
INFO 2026-01-16T15:59:28 +1ms service=default directory=/Users/stack3mpty/github/CloudAscend/CloudAscend creating instance
INFO 2026-01-16T15:59:28 +0ms service=project directory=/Users/stack3mpty/github/CloudAscend/CloudAscend fromDirectory
INFO 2026-01-16T15:59:28 +35ms service=models.dev file={} refreshing
INFO 2026-01-16T15:59:31 +3588ms service=config path=/Users/stack3mpty/.config/opencode/config.json loading
INFO 2026-01-16T15:59:31 +1ms service=config path=/Users/stack3mpty/.config/opencode/opencode.json loading
INFO 2026-01-16T15:59:31 +0ms service=config path=/Users/stack3mpty/.config/opencode/opencode.jsonc loading
INFO 2026-01-16T15:59:31 +3ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.1.19/bin/opencode","add","@opencode-ai/plugin@1.1.19","--exact"] cwd=/Users/stack3mpty/.config/opencode running
INFO 2026-01-16T15:59:31 +13ms service=models.dev file={} refreshing
INFO 2026-01-16T15:59:31 +0ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.1.19

[3.00ms] done
stderr=Saved lockfile
done
INFO 2026-01-16T15:59:31 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.1.19/bin/opencode","install"] cwd=/Users/stack3mpty/.config/opencode running
INFO 2026-01-16T15:59:31 +16ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)

Checked 3 installs across 4 packages (no changes) [1.00ms]
stderr= done
INFO 2026-01-16T15:59:34 +3033ms service=plugin name=CodexAuthPlugin loading internal plugin
INFO 2026-01-16T15:59:34 +1ms service=plugin path=opencode-copilot-auth@0.0.12 loading plugin
INFO 2026-01-16T15:59:34 +6ms service=plugin path=opencode-anthropic-auth@0.0.8 loading plugin
INFO 2026-01-16T15:59:35 +26ms service=plugin path=@gitlab/opencode-gitlab-auth@1.3.0 loading plugin
INFO 2026-01-16T15:59:36 +1249ms service=plugin.codex port=1455 codex oauth server started
ERROR 2026-01-16T16:00:10 +34712ms service=default name=Error message=Token exchange failed: 403 stack=Error: Token exchange failed: 403
at exchangeCodeForTokens (src/plugin/codex.ts:121:15)
at processTicksAndRejections (native:7:39) fatal

@stack3mpty commented on GitHub (Jan 16, 2026): INFO 2026-01-16T15:59:28 +472ms service=default version=1.1.19 args=["auth","login"] opencode INFO 2026-01-16T15:59:28 +1ms service=default directory=/Users/stack3mpty/github/CloudAscend/CloudAscend creating instance INFO 2026-01-16T15:59:28 +0ms service=project directory=/Users/stack3mpty/github/CloudAscend/CloudAscend fromDirectory INFO 2026-01-16T15:59:28 +35ms service=models.dev file={} refreshing INFO 2026-01-16T15:59:31 +3588ms service=config path=/Users/stack3mpty/.config/opencode/config.json loading INFO 2026-01-16T15:59:31 +1ms service=config path=/Users/stack3mpty/.config/opencode/opencode.json loading INFO 2026-01-16T15:59:31 +0ms service=config path=/Users/stack3mpty/.config/opencode/opencode.jsonc loading INFO 2026-01-16T15:59:31 +3ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.1.19/bin/opencode","add","@opencode-ai/plugin@1.1.19","--exact"] cwd=/Users/stack3mpty/.config/opencode running INFO 2026-01-16T15:59:31 +13ms service=models.dev file={} refreshing INFO 2026-01-16T15:59:31 +0ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.1.19 [3.00ms] done stderr=Saved lockfile done INFO 2026-01-16T15:59:31 +0ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.1.19/bin/opencode","install"] cwd=/Users/stack3mpty/.config/opencode running INFO 2026-01-16T15:59:31 +16ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd) Checked 3 installs across 4 packages (no changes) [1.00ms] stderr= done INFO 2026-01-16T15:59:34 +3033ms service=plugin name=CodexAuthPlugin loading internal plugin INFO 2026-01-16T15:59:34 +1ms service=plugin path=opencode-copilot-auth@0.0.12 loading plugin INFO 2026-01-16T15:59:34 +6ms service=plugin path=opencode-anthropic-auth@0.0.8 loading plugin INFO 2026-01-16T15:59:35 +26ms service=plugin path=@gitlab/opencode-gitlab-auth@1.3.0 loading plugin INFO 2026-01-16T15:59:36 +1249ms service=plugin.codex port=1455 codex oauth server started ERROR 2026-01-16T16:00:10 +34712ms service=default name=Error message=Token exchange failed: 403 stack=Error: Token exchange failed: 403 at exchangeCodeForTokens (src/plugin/codex.ts:121:15) at processTicksAndRejections (native:7:39) fatal
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

oh interesting....

@rekram1-node commented on GitHub (Jan 16, 2026): oh interesting....
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

Do you actually have an openai codex subscription tho?

@rekram1-node commented on GitHub (Jan 16, 2026): Do you actually have an openai codex subscription tho?
Author
Owner

@stack3mpty commented on GitHub (Jan 16, 2026):

Image hmmm, idk , looks like i already subscribed codex... i can use codex
@stack3mpty commented on GitHub (Jan 16, 2026): <img width="1242" height="486" alt="Image" src="https://github.com/user-attachments/assets/19b1ac8d-47c7-4609-8aee-38a484ad2490" /> hmmm, idk , looks like i already subscribed codex... i can use codex
Author
Owner

@rekram1-node commented on GitHub (Jan 16, 2026):

But for codex itself did u auth via oauth? Or w/ an api key?

@rekram1-node commented on GitHub (Jan 16, 2026): But for codex itself did u auth via oauth? Or w/ an api key?
Author
Owner

@stack3mpty commented on GitHub (Jan 16, 2026):

Image ohhh, finally i know the reason. because the area... i need to use vpn to connect the openai. and i forget to set the terminal to use vpn too. what a mistake! all my love to you and your awesome software. have a nice day
@stack3mpty commented on GitHub (Jan 16, 2026): <img width="1300" height="916" alt="Image" src="https://github.com/user-attachments/assets/6a09caec-08ca-4d26-8f6b-3f5c2f5df45e" /> ohhh, finally i know the reason. because the area... i need to use vpn to connect the openai. and i forget to set the terminal to use vpn too. what a mistake! all my love to you and your awesome software. have a nice day
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6493