Skip to content

Add a new provider for qwen3-coder-plus requests --> alibaba-cn #2340

Closed

Description

@LePao1

Opencode Providers

alibaba is the international site; the endpoint for its qwen3-coder-plus model is
https://dashscope-intl.aliyuncs.com/compatible-mode/v1

alibaba-cn is the China-focused site, more convenient for mainland users. We generally use the latter; its endpoint is
https://dashscope.aliyuncs.com/compatible-mode/v1

Note that the API keys for the two sites are not interchangeable.

When I use the API key I applied for on alibaba-cn and enter it into the current “alibaba” option in Opencode, it doesn’t work.

Image

Activity

  1. gjczone commented on Aug 31, 2025

    @gjczone
    Image

    你可以手动配置一下。系统目录-.config/opencode/opencode.json文件里。你按我这个配置方式把url、api、模型替换了就能用。

  2. LePao1 commented on Aug 31, 2025

    @LePao1
    Author
    Image 你可以手动配置一下。系统目录-.config/opencode/opencode.json文件里。你按我这个配置方式把url、api、模型替换了就能用。

    感谢🙏

  3. gjczone commented on Aug 31, 2025

    @gjczone
    Image 你可以手动配置一下。系统目录-.config/opencode/opencode.json文件里。你按我这个配置方式把url、api、模型替换了就能用。

    感谢🙏

    https://opencode.ai/docs/providers/ 嗯,他们网站比较清楚,关于模型的部分在providers里写的比较清楚,我就照着配置的。还有很多配置也都可以写到json文件里。供参考

  4. assigned and unassigned on Sep 5, 2025
  5. fwang commented on Sep 18, 2025

    @fwang
    Contributor

    Added "Alibaba (China)" provider with https://dashscope.aliyuncs.com/compatible-mode/v1 endpoint.

    Thanks @LePao1!

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