# 使用 Homebrew, Nix 安装 swgp-go

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swgp-go
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:swgp-go
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/swgp-go>
- **版本:** 1.10.0
- **来源摘要:** Simple WireGuard proxy with minimal overhead for WireGuard traffic
- **主页:** <https://github.com/database64128/swgp-go>
- **仓库:** <https://github.com/database64128/swgp-go>
- **上游文档:** <https://github.com/database64128/swgp-go#readme>
- **许可证:** AGPL-3.0-or-later
- **源码归档:** <https://github.com/database64128/swgp-go/archive/refs/tags/v1.10.0.tar.gz>
- **最后更新:** 2026-06-12T17:28:09Z
- **已生成:** 2026-07-26T07:20:29+00:00

## 可执行文件

- swgp-go (cli)
- swgp-go (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-26
- 管理器版本: 1.10.0
- 管理器更新时间: 2026-06-12
- 本地数据: OK
- 上游仓库: https://github.com/database64128/swgp-go
- 检测到的最新版本: v1.10.0 (当前)
## 项目历史与用法

swgp-go is a small Go proxy that obfuscates or encrypts WireGuard traffic with minimal overhead. It provides client and server modes intended to sit immediately outside an ordinary WireGuard tunnel.

### 项目历史

The official repository was created in March 2022. The project developed multiple proxy modes that balance overhead and traffic-shape concealment, with newer 2026 modes adding timestamped replay protection while retaining legacy modes for compatibility.

The project reached a 1.x release series and continued regular releases through 2026. Its deployment assets include JSON examples and both singleton and templated systemd unit files.

### 采用历史

Upstream distributes prebuilt release binaries and documents installation through Homebrew, AUR release and VCS packages, and `go install`; a community container image supplies another deployment route. The supplied metadata also records a Nix package.

### 使用方式

Operators run one swgp-go server near a WireGuard endpoint and one client near the WireGuard peer, configuring listen and endpoint addresses, a matching proxy mode and pre-shared key, and the path MTU. Linux deployments can use the supplied systemd units with JSON files under `/etc/swgp-go`.

### 为什么软件包爱好者会关心

swgp-go is appealing to package and network-tool enthusiasts because it is a single Go binary with no separate control service, conventional JSON configuration, systemd examples, and several installation channels. It addresses WireGuard traffic obfuscation without replacing WireGuard itself.

### 时间线

- 2022: The official swgp-go repository was created.
- 2025: Version 1.8.0 was released during the established 1.x series.
- 2026: Versions 1.9.0 and 1.10.0 were released, and the documented 2026 proxy modes added replay protection.

### Related projects

- WireGuard provides the tunnel traffic carried by swgp-go. The README uses `wg genpsk` for compatible pre-shared keys and points to a community-maintained container image for container deployment.

### 来源

- <https://github.com/database64128/swgp-go#readme>
- <https://github.com/database64128/swgp-go/releases>
- <https://github.com/database64128/swgp-go/tree/main/docs>
- source_facts.package-manager


## 安全说明

没有找到 swgp-go 的匹配本地密钥处理 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

- Linux: /etc/swgp-go/config.json, /etc/swgp-go/%i.json
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swgp-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

## 其他软件包管理器记录

- Nix - swgp-go: normalized package name match | nixpkgs package indexes: pkgs/by-name/sw/swgp-go/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [gof5](https://www.automicvault.com/zh-hans/pkg/brew/gof5/) - Shares av.db curated category or tags: cli, go, networking, vpn, wireguard.
- [obfs4proxy](https://www.automicvault.com/zh-hans/pkg/brew/obfs4proxy/) - Shares av.db curated category or tags: cli, go, networking, obfuscation, proxy.
- [wireguard-go](https://www.automicvault.com/zh-hans/pkg/brew/wireguard-go/) - Shares av.db curated category or tags: cli, go, networking, vpn, wireguard.
- [boringtun](https://www.automicvault.com/zh-hans/pkg/brew/boringtun/) - Shares av.db curated category or tags: cli, networking, vpn, wireguard.
- [brook](https://www.automicvault.com/zh-hans/pkg/brew/brook/) - Shares av.db curated category or tags: cli, networking, proxy, vpn.
- [chisel-tunnel](https://www.automicvault.com/zh-hans/pkg/brew/chisel-tunnel/) - Shares av.db curated category or tags: cli, go, networking, proxy.
- [geph4](https://www.automicvault.com/zh-hans/pkg/brew/geph4/) - Shares av.db curated category or tags: cli, networking, proxy, vpn.
- [getparty](https://www.automicvault.com/zh-hans/pkg/brew/getparty/) - Shares av.db curated category or tags: cli, go, networking, proxy.
- [simple-obfs](https://www.automicvault.com/zh-hans/pkg/brew/simple-obfs/) - Local package facts share a topical domain. Shared terms: cli, networking, obfuscation, proxy, simple.

## Combined YAML source

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


## 来源

- Nucleus package database
- 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
