Skip to content

does not remember the last choosen model and ignores the model in opencode.json #1433

Closed

Description

@michabbb

~/.config/opencode/opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "theme": "github",
  "model": "moonshotai/kimi-k2-instruct",
  "autoupdate": true
 }
  • opencode starts with "Anthropic Claude Sonnet 4"
  • choose kimi
  • send "hi" (just for testing)
  • exit opencode
  • start opencode
  • "Anthropic Claude Sonnet 4" is set again - WHY? 😢

this only happens after i created ~/.config/opencode/opencode.json - i only created that file because i wanted to test MCPs.

this btw: opencode -m "moonshotai/kimi-k2-instruct" does NOT work 😢 still it loads sonnect......

looks like #1371

Activity

  1. michabbb commented on Jul 30, 2025

    @michabbb
    Author

    okay, my mistake 😖

    the correct name of the model is: groq/moonshotai/kimi-k2-instruct

    so i would to make the suggestion to show a very prominent error if the user chooses a model that does not exist, because typos can happen all the time 🙈

  2. michabbb commented on Jul 30, 2025

    @michabbb
    Author

    what´s also very confusing here:

    https://models.dev/?search=kimi

    the "copy" button behind the model name DOES NOT copy the provider, only the model name, that´s very misleading and caused my issues here, maybe there is a way to optimize that 🙏

  3. self-assigned this
    on Aug 4, 2025
  4. rekram1-node commented on Sep 5, 2025

    @rekram1-node
    Collaborator

    @michabbb for future reference you can run opencode models to get full list of models you can specify

  5. michabbb commented on Sep 5, 2025

    @michabbb
    Author

    @rekram1-node good to know, but still, whoever is responsible for the models.dev website should fix that copy button 😏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions