README config path is outdated: references ~/.opencode/opencode.jsonc instead of ~/.config/opencode/opencode.json
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:
- Config path: Change
~/.opencode/opencode.jsoncto~/.config/opencode/opencode.json - Plugin installation: Clarify that adding the package to the
pluginarray in the config file is sufficient — OpenCode handles npm installation automatically at startup - File format: The actual config file is
opencode.json(notopencode.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/
Update: I think this plugin is broken permanently. Alibaba is doing some creative json field checks and fingerprinting to lock their OAuth endpoints down
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.
🎉 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.