# 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
- **Package manager page:** <https://formulae.brew.sh/formula/tgpt>
- **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>
- **License:** GPL-3.0-only
- **Source archive:** <https://github.com/aandrew-me/tgpt/archive/refs/tags/v2.12.0.tar.gz>
- **Last updated:** 2026-07-27T01:52:16Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- tgpt (cli)
- tgpt (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-08-04
- Package-manager version: 2.12.0
- Package-manager updated: 2026-07-27
- Local data: ok
- Upstream repository: https://github.com/aandrew-me/tgpt
- Upstream latest detected: v2.12.0 (current)
## 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
## Source Database Details

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


## Related links

- [Source-control packages](https://pkg.so/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://pkg.so/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://pkg.so/brew/go/) - Build dependency declared by Homebrew.
- [mods](https://pkg.so/brew/mods/) - Shares pkgdb curated category or tags: ai, cli, model-tools, terminal.
- [gptline](https://pkg.so/brew/gptline/) - Shares pkgdb curated category or tags: ai, cli, model-tools, terminal.
- [chatblade](https://pkg.so/brew/chatblade/) - Shares pkgdb curated category or tags: ai, cli, model-tools, terminal.
- [ollama](https://pkg.so/brew/ollama/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [llama.cpp](https://pkg.so/brew/llama-cpp/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [llmfit](https://pkg.so/brew/llmfit/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [cliproxyapi](https://pkg.so/brew/cliproxyapi/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [llm](https://pkg.so/brew/llm/) - Shares pkgdb curated category or tags: ai, cli, model-tools.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
