
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
opencode-alibaba-qwen-cli-auth
Advanced tools
Alibaba Qwen OAuth authentication plugin for opencode - use your Qwen account instead of API keys
Plugin OAuth cho OpenCode để dùng mô hình Qwen qua tài khoản Qwen, không cần tự quản lý DashScope API key.
Khi dùng plugin này, bạn tự chịu trách nhiệm tuân thủ các chính sách của Qwen/Alibaba:
Nếu bạn cần môi trường production hoặc thương mại, nên dùng DashScope API key: https://dashscope.console.aliyun.com/
opencode auth login.resource_url từ token để xác định API base URL động, có fallback an toàn.coder-model khi gửi lên Qwen Portal API.QWEN_MODE để điều chỉnh cách bridge prompt giữa OpenCode và Qwen.>=20 (nếu bạn build/test package từ source).Thêm plugin vào file cấu hình OpenCode:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-alibaba-qwen-cli-auth"],
"model": "alibaba/coder-model"
}
Sau đó chạy đăng nhập:
opencode auth login
Chọn Alibaba -> Qwen Account (OAuth).
opencode run "tạo file hello world" --model=alibaba/coder-model
opencode chat --model=alibaba/coder-model
Lưu ý: luôn dùng tiền tố provider alibaba/ trong cấu hình model của OpenCode.
QWEN_MODEƯu tiên cấu hình:
QWEN_MODE~/.opencode/qwen/auth-config.jsontrueVí dụ file ~/.opencode/qwen/auth-config.json:
{
"qwenMode": true
}
Giá trị hợp lệ qua env:
QWEN_MODE=1 hoặc QWEN_MODE=trueQWEN_MODE=0 hoặc QWEN_MODE=falseDEBUG_QWEN_PLUGIN=1 opencode run "your prompt"
ENABLE_PLUGIN_REQUEST_LOGGING=1 opencode run "your prompt"
Đường dẫn log: ~/.opencode/logs/qwen-plugin/
~/.opencode/qwen/oauth_token.json~/.opencode/qwen/auth-config.json~/.opencode/cache/Authentication required. Please run: opencode auth loginToken không tồn tại hoặc refresh thất bại. Chạy lại:
opencode auth login
Quá trình xác thực device code đã timeout hoặc code đã hết hạn. Chạy lại opencode auth login và xác nhận trong trình duyệt sớm hơn.
429 (rate limit)Server đang giới hạn tần suất. Giảm tốc độ gửi request và thử lại sau.
Kiểm tra bạn đang dùng đúng model trong OpenCode:
model: alibaba/coder-model
rm -rf ~/.opencode/qwen/
Remove-Item -Recurse -Force "$HOME/.opencode/qwen"
Sau đó đăng nhập lại bằng opencode auth login.
npm run build
npm run typecheck
npm run test
npm run lint
MIT
FAQs
Alibaba Qwen OAuth authentication plugin for opencode - use your Qwen account instead of API keys
We found that opencode-alibaba-qwen-cli-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.