# Install qwen-code with Homebrew, Nix, pacman, winget

AI-powered command-line workflow tool for developers. Version 0.21.3 via Homebrew; verified 2026-08-02. Also installable with nix: nix profile install nixpkgs#qwen-code.

## Install

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

## Agent safety answer

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

- **Credential access:** May access model credentials, repository files, environment variables, and local tool config.
- **Remote mutation:** Can drive commands that mutate Git, packages, or cloud state.
- **Publish/artifact risk:** Can generate code and invoke release workflows.
- **Recommended control:** Run in containment and gate sensitive host tool calls.
- **Agent-use guidance:** Limit workspace scope; require approval for secrets, publishing, and remote writes.

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:qwen-code
- **Package manager:** Homebrew
- **Version:** 0.21.3
- **Source summary:** AI-powered command-line workflow tool for developers
- **Homepage:** <https://github.com/QwenLM/qwen-code>
- **Last updated:** 2026-08-02T18:07:13Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- qwen (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.21.3

## Security Notes

No matching local secret-handling manifest was found for qwen-code. Nucleus package metadata is still published here so future coverage has a stable package 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
## Other Package-Manager Records

- 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)


## Sources

- 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
