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

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

Originally created by @LePao1 on GitHub (Aug 31, 2025).

Originally assigned to: @fwang on GitHub.

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
Originally created by @LePao1 on GitHub (Aug 31, 2025). Originally assigned to: @fwang on GitHub. 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. <img width="2064" height="354" alt="Image" src="https://github.com/user-attachments/assets/a0e0c155-defe-4973-8640-5cce2a86f75c" />
yindo closed this issue 2026-02-16 17:31:27 -05:00
Author
Owner

@gjczone commented on GitHub (Aug 31, 2025):

Image

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

@gjczone commented on GitHub (Aug 31, 2025): <img width="731" height="420" alt="Image" src="https://github.com/user-attachments/assets/f163b6b5-8fdc-43ab-9a5f-569c17fa1944" /> 你可以手动配置一下。系统目录-.config/opencode/opencode.json文件里。你按我这个配置方式把url、api、模型替换了就能用。
Author
Owner

@LePao1 commented on GitHub (Aug 31, 2025):

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

感谢🙏

@LePao1 commented on GitHub (Aug 31, 2025): > <img alt="Image" width="731" height="420" src="https://private-user-images.githubusercontent.com/211226271/483963461-f163b6b5-8fdc-43ab-9a5f-569c17fa1944.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTY2NDUyNzMsIm5iZiI6MTc1NjY0NDk3MywicGF0aCI6Ii8yMTEyMjYyNzEvNDgzOTYzNDYxLWYxNjNiNmI1LThmZGMtNDNhYi05YTVmLTU2OWMxN2ZhMTk0NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODMxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgzMVQxMjU2MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MGQ2MzM1NjBhZTE2NjdlODEzYWNmNWUxYjNjODhiMjgzYjNlZmY2ZTIzZGQ4ZDQ1ZGE5ZGU1ZDg5N2NkYThkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.66a8O-C96_YfNvRE7dvpZEQuDbQ9FZ1wHo8Egtj5UZo"> > 你可以手动配置一下。系统目录-.config/opencode/opencode.json文件里。你按我这个配置方式把url、api、模型替换了就能用。 感谢🙏
Author
Owner

@gjczone commented on GitHub (Aug 31, 2025):

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

感谢🙏

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

@gjczone commented on GitHub (Aug 31, 2025): > > <img alt="Image" width="731" height="420" src="https://private-user-images.githubusercontent.com/211226271/483963461-f163b6b5-8fdc-43ab-9a5f-569c17fa1944.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTY2NDUyNzMsIm5iZiI6MTc1NjY0NDk3MywicGF0aCI6Ii8yMTEyMjYyNzEvNDgzOTYzNDYxLWYxNjNiNmI1LThmZGMtNDNhYi05YTVmLTU2OWMxN2ZhMTk0NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODMxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgzMVQxMjU2MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MGQ2MzM1NjBhZTE2NjdlODEzYWNmNWUxYjNjODhiMjgzYjNlZmY2ZTIzZGQ4ZDQ1ZGE5ZGU1ZDg5N2NkYThkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.66a8O-C96_YfNvRE7dvpZEQuDbQ9FZ1wHo8Egtj5UZo"> > > 你可以手动配置一下。系统目录-.config/opencode/opencode.json文件里。你按我这个配置方式把url、api、模型替换了就能用。 > > 感谢🙏 https://opencode.ai/docs/providers/ 嗯,他们网站比较清楚,关于模型的部分在providers里写的比较清楚,我就照着配置的。还有很多配置也都可以写到json文件里。供参考
Author
Owner

@fwang commented on GitHub (Sep 18, 2025):

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

Thanks @LePao1!

@fwang commented on GitHub (Sep 18, 2025): Added "Alibaba (China)" provider with `https://dashscope.aliyuncs.com/compatible-mode/v1` endpoint. Thanks @LePao1!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1546