# 使用 Homebrew 安装 gptline

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

## 安装

```sh
sudo av install brew:gptline
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gptline
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:gptline
- **软件包管理器:** Homebrew
- **版本:** 1.0.8
- **来源摘要:** ChatGPT client with native iTerm2 support
- **主页:** <https://github.com/gnachman/gptline>
- **仓库:** <https://github.com/gnachman/gptline>
- **最后更新:** 2026-07-09T10:49:36Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gptline (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

gptline is George Nachman's Python command-line ChatGPT client, designed around multi-line terminal conversations, searchable history, prompt editing, response regeneration, and iTerm2 marks.

### 项目历史

The official GitHub repository was created in September 2023, during the first large wave of small ChatGPT terminal clients. The project uses Python packaging and has no GitHub release series; its README and source tree are the primary public record.

Its implementation stores conversations and settings in a local SQLite database while reading an OpenAI API key from `OPENAI_API_KEY` or the legacy `OPENAI_KEY` environment variable.

### 采用历史

The README supports installation from Python packaging with `pip3 install gptline`, while the supplied metadata records a Homebrew formula. This gives the niche client both Python-native and system-package installation paths.

### 使用方式

After setting an OpenAI API-key environment variable, users run `gptline` to enter the interactive client. It supports multiple conversations, full-text search, editing and regenerating messages, and iTerm2 marks for moving between messages; `Ctrl+C` exits.

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

gptline captures the early post-ChatGPT pattern of wrapping a hosted model API in a focused Unix command. Its small Python package, console entry point, local SQLite history, environment-based credentials, and Homebrew availability make it a useful snapshot of that packaging moment.

### 时间线

- 2023: The official GitHub repository is created and gptline is published as a Python terminal client.
- 2023–2024: The client gains conversation search, editing, regeneration, and terminal-oriented interaction.
- 2020s: Homebrew adds a packaged installation route alongside pip.

### Related projects

- OpenAI GPT models provide the remote chat service used by gptline.
- iTerm2 supplies the terminal marks that gptline uses for message navigation.

### 来源

- <https://github.com/gnachman/gptline>
- <https://github.com/gnachman/gptline#readme>
- <https://github.com/gnachman/gptline/blob/main/src/db.py>
- <https://github.com/gnachman/gptline/blob/main/src/main.py>
- source_facts.package-manager


## 安全说明

没有找到 gptline 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
