Skip to content

opencde 2.1.4 无法添加自定义模型 #59497

Closed

Description

@zidier215

opencde 2.1.4 无法添加自定义模型
直接通过添加openai兼容的自定义模型接口添加模型在2.1.4版本上提示无法使用自定义模型;
通过opencode.json添加配置后重启opencode程序,也无法继续展示添加的自定义模型;

//https://www.calcguide.tech提供

Activity

  1. opencode-agent commented on Oct 27, 2026

    @opencode-agent
    Contributor

    Thanks for the report, @zidier215! To look into this we need a few more details. You can reply here with them, or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know when you're done.

    1. Where you used OpenCode: the desktop app or the terminal (CLI/TUI)? Which operating system, and how did you install it?
    2. The exact error message you get when you add the custom OpenAI-compatible provider, or a screenshot of it.
    3. Your opencode.json config (please remove API keys), and where the file is (for example ~/.config/opencode/opencode.json or in the project folder).
    4. The output of opencode models after the restart, and whether you are signed in to an OpenCode Console account. A Console organization can set provider policies that hide providers from your own config (see [FEATURE]: let user provider policies apply when connected to a Console organization #54382).

    These existing issues look related, ordered from most to least likely:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions