# Install baidupcs-go with Homebrew, Nix, pacman, winget

Terminal utility for Baidu Network Disk. Version 4.0.1 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#baidupcs-go.

## Install

```sh
sudo av install brew:baidupcs-go
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install baidupcs-go
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#baidupcs-go
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ba/baidupcs-go/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S baidupcs-go
```

  Evidence: Arch Linux sync databases: baidupcs-go from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- winget (92%):

```sh
winget install --id qjfoidnh.BaiduPCS-Go -e
```

  Evidence: Windows Package Manager source index: qjfoidnh.BaiduPCS-Go from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:baidupcs-go
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/baidupcs-go>
- **Version:** 4.0.1
- **Source summary:** Terminal utility for Baidu Network Disk
- **Homepage:** <https://github.com/qjfoidnh/BaiduPCS-Go>
- **Repository:** <https://github.com/qjfoidnh/BaiduPCS-Go>
- **Upstream docs:** <https://github.com/qjfoidnh/BaiduPCS-Go#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/qjfoidnh/BaiduPCS-Go/archive/refs/tags/v4.0.1.tar.gz>
- **Generated:** 2026-07-25T07:20:51+00:00

## Executables

- baidupcs-go (cli)
- baidupcs-go (alias)

## Build dependencies

- go

## 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-25
- Package-manager version: 4.0.1
- Local data: ok
- Upstream repository: https://github.com/qjfoidnh/BaiduPCS-Go
- Upstream latest detected: v4.0.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

BaiduPCS-Go is a Go command-line client for Baidu Network Disk that presents cloud-storage operations through shell-like commands. The maintained qjfoidnh repository describes itself as continuing from iikira/BaiduPCS-Go v3.6.2 and adding transfer/save support for shared links.

### Project history

The README says BaiduPCS-Go was inspired by GangZhuo/BaiduPCS, then based on iikira/BaiduPCS-Go, and that this maintained version continues from iikira's original v3.6.2. The qjfoidnh GitHub repository was created on November 6, 2020.

The project has had to track changing Baidu service behavior. Its README changelog includes repeated fixes for upload, download, rapid-transfer, and shared-link transfer behavior, including v4.0.0 in 2025 and v4.0.1 in 2026.

### Adoption history

BaiduPCS-Go has a sizable niche audience for users who prefer scripting Baidu Network Disk operations from terminals and servers. GitHub reported 5,219 stars for qjfoidnh/BaiduPCS-Go, and the Homebrew formula API reported stable version 4.0.1 with 91 installs in the previous 30 days as of June 30, 2026.

Package-manager coverage in the input includes Homebrew, Nix, Arch pacman, and winget, indicating cross-platform packaging beyond the upstream binary releases.

### How it is used

The README organizes usage around login, account switching, listing remote directories, downloading, uploading, generating direct links, copying, moving, sharing, offline downloads, recycle-bin management, glob-style matching, and configuration commands. It is intended to feel like Linux shell file handling for Baidu Network Disk.

### Why package nerds care

BaiduPCS-Go is a classic cloud-storage CLI package: it wraps a consumer service with a scriptable command surface, stores session/config state locally, and keeps chasing upstream API changes. That makes it useful to package nerds who automate backups, remote file movement, and headless server workflows around a service that otherwise favors GUI clients.

### Timeline

- 2020-11-06: qjfoidnh/BaiduPCS-Go repository created.
- 2021-2025: README changelog documents frequent fixes for Baidu upload/download and transfer behavior.
- 2025-10-29: v4.0.0 released with upload policy changes and interface-change notes.
- 2026-03-26: v4.0.1 released as an emergency fix for command parameter errors.

### Related projects

- GangZhuo/BaiduPCS is cited by the README as an inspiration.
- iikira/BaiduPCS-Go is cited by the README as the direct base for this maintained line.

### Sources

- <https://api.github.com/repos/qjfoidnh/BaiduPCS-Go>
- <https://api.github.com/repos/qjfoidnh/BaiduPCS-Go/releases/latest>
- <https://formulae.brew.sh/api/formula/baidupcs-go.json>
- <https://raw.githubusercontent.com/qjfoidnh/BaiduPCS-Go/main/README.md>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## 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: ~/.config/BaiduPCS-Go/pcs_config.json
- Windows: %APPDATA%\BaiduPCS-Go\pcs_config.json

## Credential files

- Unix: ~/.config/BaiduPCS-Go/pcs_config.json
- Windows: %APPDATA%\BaiduPCS-Go\pcs_config.json
## Source Database Details

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

## Other Package-Manager Records

- Nix - baidupcs-go: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/baidupcs-go/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - baidupcs-go - 4.0.1-1: normalized package name match | Arch Linux sync databases: baidupcs-go from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Terminal utility for Baidu Network Disk | https://github.com/qjfoidnh/BaiduPCS-Go
- winget - qjfoidnh.BaiduPCS-Go: normalized package name match | Windows Package Manager source index: qjfoidnh.BaiduPCS-Go 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.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [duck](https://www.automicvault.com/pkg/brew/duck/) - Shares av.db curated category or tags: cli, cloud-storage, file-transfer, networking.
- [airshare](https://www.automicvault.com/pkg/brew/airshare/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [bbftp-client](https://www.automicvault.com/pkg/brew/bbftp-client/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [c-kermit](https://www.automicvault.com/pkg/brew/c-kermit/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [cadaver](https://www.automicvault.com/pkg/brew/cadaver/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [croc](https://www.automicvault.com/pkg/brew/croc/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [davix](https://www.automicvault.com/pkg/brew/davix/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [ffsend](https://www.automicvault.com/pkg/brew/ffsend/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [piknik](https://www.automicvault.com/pkg/brew/piknik/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, file, file-transfer, network, networking.

## Combined YAML source

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


## Sources

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