# Install tgpt with Homebrew, Nix, pacman

AI Chatbots in terminal without needing API keys. Version 2.12.0 via Homebrew; verified 2026-07-27. Also installable with nix: nix profile install nixpkgs#tgpt.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tgpt
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:tgpt
- **Package manager:** Homebrew
- **Version:** 2.12.0
- **Source summary:** AI Chatbots in terminal without needing API keys
- **Homepage:** <https://github.com/aandrew-me/tgpt>
- **Repository:** <https://github.com/aandrew-me/tgpt>
- **Last updated:** 2026-07-27T01:52:16Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- tgpt (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.12.0
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- 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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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
## Other Package-Manager Records

- 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)


## Sources

- 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
