# 使用 Homebrew, Nix, pacman 安装 tgpt

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

## 安装

```sh
sudo av install brew:tgpt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tgpt
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#tgpt
```

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

- pacman (92%):

```sh
sudo pacman -S tgpt
```

  证据: Arch Linux sync databases: tgpt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:tgpt
- **软件包管理器:** Homebrew
- **版本:** 2.12.0
- **来源摘要:** AI Chatbots in terminal without needing API keys
- **主页:** <https://github.com/aandrew-me/tgpt>
- **仓库:** <https://github.com/aandrew-me/tgpt>
- **最后更新:** 2026-07-27T01:52:16Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tgpt (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.12.0
## 项目历史与用法

tgpt is a cross-platform terminal client for AI chat providers. Its README presents the tool as a way to use AI in the terminal and emphasizes provider support without requiring a user-managed API key for the common path described in the package metadata.

### 项目历史

The public source-backed history is thin, but the project is clearly organized around a Go command-line executable, a provider list, release binaries, and installer scripts for Unix-like systems and Windows.

### 采用历史

The README documents installation through Homebrew, Arch Linux, FreeBSD ports/packages, Go, Scoop, and Chocolatey. The Homebrew input also records packaging in Homebrew, Nix, and pacman.

### 使用方式

Package users install the `tgpt` command to query AI chat services from a shell, update script-installed copies with `tgpt -u`, and optionally configure HTTP or SOCKS proxy settings through environment variables or proxy.txt files.

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

tgpt belongs to the post-LLM wave of small terminal-first AI tools: its package-manager relevance is less about a long lineage and more about making AI chat available as a simple executable in the same workflows where developers already use curl, shells, and package managers.

### 时间线

- 2020s: Project README documents multi-platform terminal AI usage and package-manager installation.
- 2020s: README documents Homebrew, Arch Linux, FreeBSD, Go, Scoop, and Chocolatey installation paths.

### Related projects

- The README links to its provider documentation for the currently available AI backends.

### 来源

- Official README: https://github.com/aandrew-me/tgpt#readme
- Official provider docs linked from README: https://github.com/aandrew-me/tgpt/blob/main/md/providers.md
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: ./proxy.txt, ~/.config/tgpt/proxy.txt
## 其他软件包管理器记录

- Nix - tgpt: normalized package name match | nixpkgs package indexes: pkgs/by-name/tg/tgpt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - tgpt - 2.11.1-1: normalized package name match | Arch Linux sync databases: tgpt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | AI Chatbots in terminal without needing API keys | https://github.com/aandrew-me/tgpt


## Combined YAML source

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


## 来源

- 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
