# 使用 Homebrew, Nix, pacman, winget 安装 qwen-code

查看 qwen-code 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:qwen-code
```

## 代理安全回答

qwen-code is an AI coding tool with local file and command access potential.

- **凭据访问:** May access model credentials, repository files, environment variables, and local tool config.
- **远程变更:** Can drive commands that mutate Git, packages, or cloud state.
- **发布/制品风险:** Can generate code and invoke release workflows.
- **推荐控制:** Run in containment and gate sensitive host tool calls.
- **代理使用指南:** Limit workspace scope; require approval for secrets, publishing, and remote writes.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install qwen-code
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#qwen-code
```

  证据: nixpkgs package indexes: pkgs/by-name/qw/qwen-code/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S qwen-code
```

  证据: Arch Linux sync databases: qwen-code from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- winget (92%):

```sh
winget install --id Alibaba.Qwen -e
```

  证据: Windows Package Manager source index: Alibaba.Qwen from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:qwen-code
- **软件包管理器:** Homebrew
- **版本:** 0.21.3
- **来源摘要:** AI-powered command-line workflow tool for developers
- **主页:** <https://github.com/QwenLM/qwen-code>
- **最后更新:** 2026-08-02T18:07:13Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- qwen (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.21.3

## 安全说明

没有找到 qwen-code 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.qwen/settings.json

## Credential files

- Unix: ~/.qwen/settings.json
## 其他软件包管理器记录

- Nix - qwen-code: normalized package name match | nixpkgs package indexes: pkgs/by-name/qw/qwen-code/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - qwen-code - 0.19.3-1: normalized package name match | Arch Linux sync databases: qwen-code from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Open-source AI agent for the terminal, optimized for Qwen-Coder | https://github.com/QwenLM/qwen-code
- winget - Alibaba.Qwen: installed executable or alias match | Windows Package Manager source index: Alibaba.Qwen from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/qwen-code.yml](https://github.com/mxcl/pkgdb/blob/main/combined/qwen-code.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
