Install this version:
emerge -a =app-misc/qwen-code-0.14.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-misc/qwen-code-0.14.0
Or alternatively:
emerge --autounmask-write -a =app-misc/qwen-code-0.14.0
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
DESCRIPTION="An open-source AI agent that lives in your terminal"
HOMEPAGE="https://github.com/QwenLM/qwen-code"
SRC_URI="https://github.com/QwenLM/qwen-code/releases/download/v${PV}/cli.js -> ${P}.js"
S="${WORKDIR}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RDEPEND="
net-libs/nodejs
"
src_install() {
# nodejs defaults to disabling deprecation warnings when running code
# from any path containing a node_modules directory. Since we're installing
# outside of the realm of npm, explicitly pass an option to disable
# deprecation warnings so it behaves the same as it does if installed via
# npm. It's proprietary; not like Gentoo users can fix the warnings anyway.
sed -i 's/env node/env -S node --no-deprecation/' "${DISTDIR}/${P}.js" || die
newbin "${DISTDIR}/${P}.js" qwen
}
net-libs/nodejs
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | qwen-code-0.14.0.js | 21489160 bytes | https://github.com/QwenLM/qwen-code/releases/download/v0.14.0/cli.js |