# 使用 Homebrew 安装 toktop

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

## 安装

```sh
sudo av install brew:toktop
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install toktop
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:toktop
- **软件包管理器:** Homebrew
- **版本:** 0.1.5
- **来源摘要:** LLM usage monitor in terminal
- **主页:** <https://github.com/htin1/toktop>
- **仓库:** <https://github.com/htin1/toktop>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- toktop (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

toktop is a small terminal dashboard for monitoring OpenAI and Anthropic token usage and costs. Its own README frames it as "htop but for llm tokens", placing it in the recent wave of developer tools that turn cloud AI spend into a live terminal workflow.

### 项目历史

The official repository is a compact Rust project with a README, Cargo metadata, and a short changelog. The changelog records early 0.1.x releases in November and December 2025, with work focused on cost API fixes, chart rendering, filtering, grouping by model or API key, and richer usage summaries.

### 采用历史

Available history is limited to the official project repository and package metadata. Homebrew carries the tool as `toktop`, and the upstream README documents `cargo install toktop --locked`, so adoption appears centered on Rust/Cargo and Homebrew users who want terminal-native LLM account monitoring.

### 使用方式

The README documents running `toktop` after setting `OPENAI_ADMIN_KEY` and `ANTHROPIC_ADMIN_KEY`, passing an env file with `toktop -e .env`, or letting the program prompt for API keys. In package-manager terms, it is a single executable meant to sit beside other terminal observability tools.

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

For package nerds, toktop is interesting less as infrastructure history and more as a marker of a new CLI niche: local, terminal-first accounting for metered LLM APIs. Its packaging surface is intentionally small: one binary, MIT license, Cargo install path, and a Homebrew formula.

### 时间线

- 2025: Changelog records early 0.1.x releases focused on LLM usage and cost dashboard behavior.
- Current: README documents OpenAI and Anthropic admin-key based terminal monitoring.

### Related projects

- The README explicitly compares the experience to htop and notes that it is built with Ratatui, aligning it with terminal UI observability tools.

### 来源

- <https://github.com/htin1/toktop#readme>
- <https://raw.githubusercontent.com/htin1/toktop/main/CHANGELOG.md>
- source_facts.description
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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


## Combined YAML source

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


## 来源

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