Bug: opencode always choosing OpenAI Codex as the provider, not respecting other providers #245

Closed
opened 2026-02-16 17:25:54 -05:00 by yindo · 4 comments
Owner

Originally created by @Dizzzmas on GitHub (Jun 23, 2025).

Originally assigned to: @adamdotdevin on GitHub.

Can't use opencode because of this

Regardless of me having aws env vars i.e. AWS_PROFILE exported, opencode is picking OpenAI Codex
Image

Running opencode auth login & then picking AWS Bedrock also isn't helping

Downgrading the CLI to previous versions also doesn't help

Originally created by @Dizzzmas on GitHub (Jun 23, 2025). Originally assigned to: @adamdotdevin on GitHub. Can't use opencode because of this Regardless of me having aws env vars i.e. `AWS_PROFILE` exported, opencode is picking OpenAI Codex <img width="946" alt="Image" src="https://github.com/user-attachments/assets/9936dc24-a07d-4768-8227-a3af887b99b0" /> Running `opencode auth login` & then picking AWS Bedrock also isn't helping Downgrading the CLI to previous versions also doesn't help
yindo closed this issue 2026-02-16 17:25:54 -05:00
Author
Owner

@Dizzzmas commented on GitHub (Jun 23, 2025):

log:

INFO  2025-06-23T18:04:33 +25ms service=default version=0.1.110 args=--print-logs opencode
INFO  2025-06-23T18:04:33 +2ms service=app cwd=/Users/dizzzmas/Projects/personal/enigma-ios creating
INFO  2025-06-23T18:04:33 +3ms service=app git
INFO  2025-06-23T18:04:33 +4ms service=app name=provider registering service
INFO  2025-06-23T18:04:33 +0ms service=app name=config registering service
INFO  2025-06-23T18:04:33 +3ms service=config $schema=https://opencode.ai/config.json loaded
INFO  2025-06-23T18:04:33 +1ms service=models.dev refreshing
INFO  2025-06-23T18:04:33 +2ms service=provider init
INFO  2025-06-23T18:04:33 +98ms service=provider providerID=amazon-bedrock found
INFO  2025-06-23T18:04:33 +0ms service=provider providerID=openai found
INFO  2025-06-23T18:04:33 +0ms service=app name=share registering service
INFO  2025-06-23T18:04:33 +0ms service=bus type=storage.write subscribing
INFO  2025-06-23T18:04:33 +0ms service=app name=bus registering service
INFO  2025-06-23T18:04:34 +108ms service=server method=POST path=/config_get request
INFO  2025-06-23T18:04:34 +1ms service=server duration=1 response
INFO  2025-06-23T18:04:34 +7ms service=server method=GET path=/event request
INFO  2025-06-23T18:04:34 +0ms service=server event connected
INFO  2025-06-23T18:04:34 +2ms service=bus type=* subscribing
INFO  2025-06-23T18:04:34 +1ms service=server duration=3 response
INFO  2025-06-23T18:04:34 +13ms service=server method=POST path=/provider_list request
                                                                                      INFO  2025-06-23T18:04:34 +1ms service=server duration=1 response
                                                                                                                                                       INFO  2025-06-23T18:04:39 +4759ms service=bus type=* unsubscribing
INFO  2025-06-23T18:04:39 +0ms service=server event disconnected
@Dizzzmas commented on GitHub (Jun 23, 2025): log: ``` INFO 2025-06-23T18:04:33 +25ms service=default version=0.1.110 args=--print-logs opencode INFO 2025-06-23T18:04:33 +2ms service=app cwd=/Users/dizzzmas/Projects/personal/enigma-ios creating INFO 2025-06-23T18:04:33 +3ms service=app git INFO 2025-06-23T18:04:33 +4ms service=app name=provider registering service INFO 2025-06-23T18:04:33 +0ms service=app name=config registering service INFO 2025-06-23T18:04:33 +3ms service=config $schema=https://opencode.ai/config.json loaded INFO 2025-06-23T18:04:33 +1ms service=models.dev refreshing INFO 2025-06-23T18:04:33 +2ms service=provider init INFO 2025-06-23T18:04:33 +98ms service=provider providerID=amazon-bedrock found INFO 2025-06-23T18:04:33 +0ms service=provider providerID=openai found INFO 2025-06-23T18:04:33 +0ms service=app name=share registering service INFO 2025-06-23T18:04:33 +0ms service=bus type=storage.write subscribing INFO 2025-06-23T18:04:33 +0ms service=app name=bus registering service INFO 2025-06-23T18:04:34 +108ms service=server method=POST path=/config_get request INFO 2025-06-23T18:04:34 +1ms service=server duration=1 response INFO 2025-06-23T18:04:34 +7ms service=server method=GET path=/event request INFO 2025-06-23T18:04:34 +0ms service=server event connected INFO 2025-06-23T18:04:34 +2ms service=bus type=* subscribing INFO 2025-06-23T18:04:34 +1ms service=server duration=3 response INFO 2025-06-23T18:04:34 +13ms service=server method=POST path=/provider_list request INFO 2025-06-23T18:04:34 +1ms service=server duration=1 response INFO 2025-06-23T18:04:39 +4759ms service=bus type=* unsubscribing INFO 2025-06-23T18:04:39 +0ms service=server event disconnected ```
Author
Owner

@thdxr commented on GitHub (Jun 23, 2025):

can you press ctrl-x, m that should open up the model switcher? or /model

@thdxr commented on GitHub (Jun 23, 2025): can you press `ctrl-x, m` that should open up the model switcher? or `/model`
Author
Owner

@thdxr commented on GitHub (Jun 23, 2025):

@adamdotdevin assigned to you just as an FYI people might be getting confused here

@thdxr commented on GitHub (Jun 23, 2025): @adamdotdevin assigned to you just as an FYI people might be getting confused here
Author
Owner

@Dizzzmas commented on GitHub (Jun 23, 2025):

ah damn, my bad

i was thinking /models was scoped to the provider - so i'd be choosing between OpenAI offerings
if i looked closer would've seen that menu has non-OpenAI models

@Dizzzmas commented on GitHub (Jun 23, 2025): ah damn, my bad i was thinking `/models` was scoped to the provider - so i'd be choosing between OpenAI offerings if i looked closer would've seen that menu has non-OpenAI models
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#245