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

AI-powered command-line workflow tool for developers. Version 0.19.6 via Homebrew; verified 2026-07-04.

## 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
- **Package manager page:** <https://formulae.brew.sh/formula/qwen-code>
- **Version:** 0.19.6
- **Source summary:** AI-powered command-line workflow tool for developers
- **Homepage:** <https://github.com/QwenLM/qwen-code>
- **Repository:** <https://github.com/QwenLM/qwen-code>
- **Upstream docs:** <https://github.com/QwenLM/qwen-code#readme>
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/@qwen-code/qwen-code/-/qwen-code-0.19.6.tgz>
- **Last updated:** 2026-07-04T20:12:39Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- qwen (cli)
- qwen (alias)

## Dependencies

- node
- ripgrep

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.19.6
- Package-manager updated: 2026-07-04
- Local data: ok
- Upstream repository: https://github.com/QwenLM/qwen-code
- info: No cached GitHub release or tag data was available.

## 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** qwen-code
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 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.17.1-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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://www.automicvault.com/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [ripgrep](https://www.automicvault.com/pkg/brew/ripgrep/) - Runtime dependency declared by Homebrew.
- [cline](https://www.automicvault.com/pkg/brew/cline/) - Shares av.db curated category or tags: ai, ai-coding, cli, coding-agent, developer-tools.
- [claude-cmd](https://www.automicvault.com/pkg/brew/claude-cmd/) - Shares av.db curated category or tags: ai-coding, cli, developer-tools, developer-workflow.
- [cai](https://www.automicvault.com/pkg/brew/cai/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.
- [claude-code-router](https://www.automicvault.com/pkg/brew/claude-code-router/) - Shares av.db curated category or tags: ai-coding, cli, developer-tools.
- [claude-code-templates](https://www.automicvault.com/pkg/brew/claude-code-templates/) - Shares av.db curated category or tags: ai-coding, cli, developer-tools.
- [claude-hooks](https://www.automicvault.com/pkg/brew/claude-hooks/) - Shares av.db curated category or tags: ai-coding, cli, developer-tools.
- [claude-squad](https://www.automicvault.com/pkg/brew/claude-squad/) - Shares av.db curated category or tags: ai-coding, cli, developer-tools.
- [claudekit](https://www.automicvault.com/pkg/brew/claudekit/) - Shares av.db curated category or tags: ai-coding, cli, developer-tools.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
