# 使用 Homebrew 安装 gptline

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gptline
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:gptline
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gptline>
- **版本:** 1.0.8
- **来源摘要:** ChatGPT client with native iTerm2 support
- **主页:** <https://github.com/gnachman/gptline>
- **仓库:** <https://github.com/gnachman/gptline>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://files.pythonhosted.org/packages/5b/28/d15a9a5b349c77a051a633e13141151314f352067ec7d516220bd6b20fcf/gptline-1.0.8.tar.gz>
- **最后更新:** 2026-07-09T10:49:36Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gptline (cli)
- gptline (别名)

## 依赖

- certifi
- freetype
- jpeg-turbo
- libraqm
- libtiff
- libyaml
- little-cms2
- pillow
- pydantic
- python@3.14
- webp

## 构建依赖

- pkgconf
- rust

## macOS 提供的库

- libxml2
- libxslt

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.8
- 管理器更新时间: 2026-07-09
- 本地数据: OK
- 上游仓库: https://github.com/gnachman/gptline
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gptline
- **Version Scheme:** 0
- **Revision:** 22
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://pkg.so/zh-hans/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libtiff](https://pkg.so/zh-hans/brew/libtiff/) - Runtime dependency declared by Homebrew.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Runtime dependency declared by Homebrew.
- [little-cms2](https://pkg.so/zh-hans/brew/little-cms2/) - Runtime dependency declared by Homebrew.
- [webp](https://pkg.so/zh-hans/brew/webp/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [chatblade](https://pkg.so/zh-hans/brew/chatblade/) - Shares pkgdb curated category or tags: ai, chatgpt, cli, model-tools, terminal.
- [mods](https://pkg.so/zh-hans/brew/mods/) - Shares pkgdb curated category or tags: ai, cli, model-tools, terminal.
- [tgpt](https://pkg.so/zh-hans/brew/tgpt/) - Shares pkgdb curated category or tags: ai, cli, model-tools, terminal.
- [tenere](https://pkg.so/zh-hans/brew/tenere/) - Shares pkgdb curated category or tags: ai, chatgpt, cli, model-tools.
- [ollama](https://pkg.so/zh-hans/brew/ollama/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [llama.cpp](https://pkg.so/zh-hans/brew/llama-cpp/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [llmfit](https://pkg.so/zh-hans/brew/llmfit/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [cliproxyapi](https://pkg.so/zh-hans/brew/cliproxyapi/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [oterm](https://pkg.so/zh-hans/brew/oterm/) - Both packages touch the same language runtime or ecosystem. Shared terms: ai, certifi, cli, client, libyaml.
- [rapid-mlx](https://pkg.so/zh-hans/brew/rapid-mlx/) - Both packages touch the same language runtime or ecosystem. Shared terms: ai, certifi, cli, libyaml, model.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
