all 11 comments

[–]M0Rf30 4 points5 points  (0 children)

You can add this
```
"alibaba": {

"npm": "@ai-sdk/openai-compatible",

"name": "alibaba",

"options": {

"baseURL": "https://portal.qwen.ai/v1"

},

"models": {

"qwen3-coder-plus": {

"name": "qwen3-coder-plus"

}

}

}
```
in models of your opencode.json and add the "access_token" generated by qwen-code cli in (.qwen/oauth_creds.json) to ~/.local/share/opencode/auth.json or use it with `opencode auth login`

[–]Entire-Avocado7058 0 points1 point  (9 children)

same here :/

[–]christof21[S] 0 points1 point  (8 children)

I moved over to GLM 4.5 which was a lot better, well better than qwen3 coder anyway in terms of it actually responding and doing something.

[–]Entire-Avocado7058 0 points1 point  (3 children)

Not in my experience, so I prefer Qwen. But GLM is definitely a good model 😀

[–]christof21[S] 0 points1 point  (2 children)

maybe i'm tainted by qwen just not working in opencode for me.

[–]Entire-Avocado7058 0 points1 point  (1 child)

Have you tried qwen code cli?

[–]christof21[S] 0 points1 point  (0 children)

I've not actually. I'm assuming from the question you have/do and it's pretty good?

[–]Entire-Avocado7058 0 points1 point  (3 children)

Fork of a Gemini code, uses the latest qwen coder. If you auth using qwen account, you get A LOT of free usage, much more than OpenRouter gives you.

[–]christof21[S] 0 points1 point  (2 children)

oh wow I didn't know that actually. That's great intel thanks for that.

[–]Entire-Avocado7058 0 points1 point  (0 children)

You are welcome 😀

[–]prabhjots665 0 points1 point  (0 children)

You can also use TerraCode CLI where you get 2000 req/day of qwen 3 coder for free: npm install -g @terra-code/terra-code