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

AI-powered command-line workflow tool for developers. Version 0.21.4 via Homebrew; verified 2026-08-04. 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
- **Package manager page:** <https://formulae.brew.sh/formula/qwen-code>
- **Version:** 0.21.4
- **Source summary:** AI-powered command-line workflow tool for developers
- **Homepage:** <https://github.com/QwenLM/qwen-code>
- **Repository:** <https://github.com/QwenLM/qwen-code>
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/@qwen-code/qwen-code/-/qwen-code-0.21.3.tgz>
- **Last updated:** 2026-08-04T06:59:58Z
- **Generated:** 2026-08-04T22:13:35+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-08-04
- Package-manager version: 0.21.4
- Package-manager updated: 2026-08-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. 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.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


## Related links

- [Source-control packages](https://pkg.so/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://pkg.so/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [node](https://pkg.so/brew/node/) - Runtime dependency declared by Homebrew.
- [ripgrep](https://pkg.so/brew/ripgrep/) - Runtime dependency declared by Homebrew.
- [zot](https://pkg.so/brew/zot/) - Shares pkgdb curated category or tags: ai, cli, coding-agent, coding-agents, llm.
- [opencode](https://pkg.so/brew/opencode/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [rtk](https://pkg.so/brew/rtk/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [worktrunk](https://pkg.so/brew/worktrunk/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, developer-workflow.
- [beads](https://pkg.so/brew/beads/) - Shares pkgdb curated category or tags: ai, cli, coding-agent, coding-agents.
- [specify](https://pkg.so/brew/specify/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, developer-workflow.
- [repomix](https://pkg.so/brew/repomix/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [mistral-vibe](https://pkg.so/brew/mistral-vibe/) - Shares pkgdb curated category or tags: ai, cli, coding-agent, coding-agents.
- [claude-cmd](https://pkg.so/brew/claude-cmd/) - Both packages touch the same language runtime or ecosystem. Shared terms: agents, ai, cli, code, coding.
- [mimo-code](https://pkg.so/brew/mimo-code/) - Both packages touch the same language runtime or ecosystem. Shared terms: agent, agents, ai, cli, code.
- [openskills](https://pkg.so/brew/openskills/) - Both packages touch the same language runtime or ecosystem. Shared terms: agents, ai, cli, coding, coding-agents.

## 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
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
