opencode-qwencode-auth icon indicating copy to clipboard operation
opencode-qwencode-auth copied to clipboard

README config path is outdated: references ~/.opencode/opencode.jsonc instead of ~/.config/opencode/opencode.json

Open thomasmaerz opened this issue 7 months ago • 3 comments

Issue

The README installation instructions reference an outdated config path.

What the README says

Step 2 says to edit ~/.opencode/opencode.jsonc:

{
  "plugin": ["opencode-qwencode-auth"]
}

What actually happens

OpenCode's current config location is ~/.config/opencode/opencode.json, not ~/.opencode/opencode.jsonc. The ~/.opencode/ directory and opencode.jsonc file do not exist on a fresh install.

Additionally, the install step says:

cd ~/.opencode && npm install opencode-qwencode-auth

But OpenCode auto-installs npm plugins at startup from the config file. The ~/.opencode/package.json approach appears to be from an older plugin system.

Suggested fix

Update the README to reflect the current config path and plugin installation method:

  1. Config path: Change ~/.opencode/opencode.jsonc to ~/.config/opencode/opencode.json
  2. Plugin installation: Clarify that adding the package to the plugin array in the config file is sufficient — OpenCode handles npm installation automatically at startup
  3. File format: The actual config file is opencode.json (not opencode.jsonc)

Corrected installation steps should be

1. Add the plugin to your config

Edit ~/.config/opencode/opencode.json:

{
  "plugin": ["opencode-qwencode-auth"]
}

OpenCode will automatically install the npm package on next startup.

2. Login

opencode auth login

Then select "Other" and type qwen-code.

References

  • OpenCode plugins docs: https://opencode.ai/docs/plugins/
  • Config docs: https://opencode.ai/docs/config/

thomasmaerz avatar Apr 07 '26 20:04 thomasmaerz

Update: I think this plugin is broken permanently. Alibaba is doing some creative json field checks and fingerprinting to lock their OAuth endpoints down

thomasmaerz avatar Apr 07 '26 23:04 thomasmaerz

Update: I think this plugin is broken permanently. Alibaba is doing some creative json field checks and fingerprinting to lock their OAuth endpoints down

Yeah, this is broken. I can't even use the plugin by authenticating inside the OpenCode CLI. Also by following your steps, the plugin doesn't even appear for me. It asks me for an API key, which I don't have.

Image Image

Yh0x1n avatar Apr 12 '26 21:04 Yh0x1n

🎉 News 2026-04-13: Qwen OAuth free tier policy update: daily quota adjusted to 100 requests/day (from 1,000). The free tier will be discontinued on 2026-04-15. Consider using OpenRouter, Fireworks AI, or Alibaba Cloud ModelStudio as alternatives.

luanweslley77 avatar Apr 14 '26 08:04 luanweslley77