# trojan-go mit Homebrew, MacPorts, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für trojan-go in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install trojan-go
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install trojan-go
```

  Evidenz: MacPorts ports tree: net/trojan-go/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

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

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

## Paketfakten

- **Paketschlüssel:** brew:trojan-go
- **Paketmanager:** Homebrew
- **Version:** 0.10.6
- **Quellzusammenfassung:** Trojan proxy in Go
- **Homepage:** <https://p4gefau1t.github.io/trojan-go/>
- **Repository:** <https://github.com/p4gefau1t/trojan-go>
- **Zuletzt aktualisiert:** 2026-07-26T00:51:27+02:00
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- trojan-go (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 0.10.6
## Projektgeschichte und Nutzung

Trojan-Go is a Go implementation of the Trojan proxy protocol. The official README describes it as compatible with the original Trojan protocol and configuration file format, while adding performance, routing, WebSocket, AEAD, plugin, API, and YAML configuration features.

### Projektgeschichte

Trojan-Go's history is best understood as an extension-oriented reimplementation rather than a wholly separate protocol. Its README emphasizes compatibility with the original Trojan feature set, including TLS tunneling, UDP proxying, transparent proxy modes, detection-resistance mechanisms, MySQL persistence, user authentication, traffic statistics, and quota controls.

The Go implementation then adds features aimed at real-world deployment friction: a simplified mode, automatic SOCKS5/HTTP proxy adaptation, TProxy support, smux multiplexing, custom routing, WebSocket-over-TLS for CDN transit, TLS fingerprint handling, gRPC APIs, pluggable transports, Shadowsocks AEAD-style secondary encryption, and YAML configuration.

### Adoptionsgeschichte

The official README points users to precompiled release binaries, Docker deployment, and a Telegram feedback group. It also names graphical clients that support Trojan-Go extensions, including Qv2ray and Igniter-Go, while noting compatibility with original Trojan clients when extension-only features are not used.

This adoption history is concentrated in the proxy/censorship-circumvention tooling niche rather than general networking. Package managers such as Homebrew, MacPorts, and Nix make the daemon easier to install on developer machines and small servers, while the README's cross-compilation examples show interest in routers, Raspberry Pi, and other constrained targets.

### Wie es verwendet wird

The README documents quick server and client startup flags, conventional config-file operation with `trojan-go -config config.json`, URL-based client startup, and Docker deployment with host-mounted configuration. It shows separate server and client examples and provides both JSON and YAML client/server config examples.

Package users typically install the binary, write a server or client config, and run it as a local proxy, transparent proxy, relay, or daemon. The package is useful to operators who want the Trojan ecosystem with a single Go binary and extra transports such as WebSocket over TLS.

### Warum Paket-Nerds sich dafür interessieren

Trojan-Go is package-nerd-significant because it is a protocol-compatible reimplementation that exposes many deployment choices through one binary. It is also an example of proxy tooling where packaging, release binaries, Docker images, and cross-compilation all matter because users deploy the same tool on desktops, servers, routers, and small devices.

Its Homebrew formula is especially relevant for macOS users who want to test or operate proxy tooling without manually downloading release archives from GitHub.

### Zeitleiste

- Original Trojan compatibility: README documents compatibility with the original Trojan protocol and config format.
- Extension phase: README documents multiplexing, routing, WebSocket-over-TLS, AEAD, gRPC API, transport plugins, and YAML config.
- Current README: precompiled binaries, Docker deployment, quick-start flags, and config-file operation are documented as primary usage paths.

### Related projects

- Trojan, Qv2ray, Igniter-Go, Shadowsocks AEAD, smux, v2ray-plugin

### Quellen

- <https://github.com/p4gefau1t/trojan-go#readme>
- <https://p4gefau1t.github.io/trojan-go>


## Sicherheitshinweise

formula declares a Homebrew service.

- **Geiger-Risiko:** orange / mittel
- formula declares a Homebrew service


## 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.json, server.json, client.json, client.yaml
## Andere Paketmanager-Einträge

- Nix - trojan-go: normalized package name match | nixpkgs package indexes: pkgs/by-name/tr/trojan-go/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - trojan-go: normalized package name match | MacPorts ports tree: net/trojan-go/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/trojan-go.yml](https://github.com/mxcl/pkgdb/blob/main/combined/trojan-go.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
