# TRex

一款 macOS 菜单栏应用，通过 OCR 识别屏幕文字并复制到剪贴板。

> 这是 OpenNavo 上 TRex 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/trex>

- **最新版本**: `2.0.0`
- **开发者**: Ameba Labs, LLC
- **主页**: <https://github.com/amebalabs/TRex/>
- **分类**: [系统工具](https://opennavo.com/zh/categories/utilities)
- **安装**: `brew install --cask trex`
- **近 30 天安装**: 135
- **Homebrew**: Homebrew 仍提供，OpenNavo 已暂停推荐
- **下载地址**: <https://github.com/amebalabs/TRex/releases/download/v2.0.0/TRex-2.0.0.zip>
- **SHA-256**: `4e8defc680daa6e09cb2daba576aa243683c775b93a9510ce5f12544d222de4d`

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "app": [
        "TRex.app"
      ],
      "target": "/Applications/TRex.app"
    },
    "phase": "install",
    "sources": [
      "TRex.app"
    ],
    "target": "/Applications/TRex.app",
    "type": "app"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/Library/Application Scripts/com.ameba.TRex-LaunchAtLoginHelper",
            "~/Library/Caches/com.ameba.TRex",
            "~/Library/Containers/com.ameba.TRex-LaunchAtLoginHelper",
            "~/Library/Preferences/com.ameba.TRex.plist"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

TRex 是一款 macOS 菜单栏应用，可提取通常无法直接选中的屏幕内容中的文字。通过菜单栏或可配置的全局快捷键启动捕捉，选择屏幕区域后，TRex 会将识别出的文字放入剪贴板。

- 使用 OCR 识别屏幕捕捉中的文字，包括不可选择的 PDF、截图、视频和共享屏幕中的文字。
- 可读取二维码和条形码，并可设置识别语言和自定义词表。
- 支持配置全局快捷键及自动化操作，例如运行快捷指令或打开捕捉内容中的 URL。
- 内含命令行工具，并支持用于捕捉、自动化和打开偏好设置的 `trex://` URL scheme。
- 所列识别功能可离线使用。

使用 `brew install --cask trex` 安装。Homebrew cask 会安装 `TRex.app`，并要求 macOS 14 或更高版本。安装后打开应用，通过菜单栏命令或快捷键选择屏幕内容进行识别。

[TRex 官方项目](https://github.com/amebalabs/TRex/) · [Homebrew cask](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/t/trex.rb)

## 系统要求

- macOS 14 起 · 应用版本: 2.0.0 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/trex.rb> · 核查于 2026-12-06
  - <https://github.com/amebalabs/TRex/releases/download/v2.0.0/TRex-2.0.0.zip>
  - SHA-256: `4e8defc680daa6e09cb2daba576aa243683c775b93a9510ce5f12544d222de4d`
- macOS 14 起 · 应用版本: 2.0.0 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/trex.rb> · 核查于 2026-12-06
  - <https://github.com/amebalabs/TRex/releases/download/v2.0.0/TRex-2.0.0.zip>
  - SHA-256: `4e8defc680daa6e09cb2daba576aa243683c775b93a9510ce5f12544d222de4d`

## 价格

- US$7.99 (美国) — Mac App Store: <https://apps.apple.com/us/app/trex-copy-the-uncopyable/id1554515538?mt=12> · <https://apps.apple.com/us/app/trex-copy-the-uncopyable/id1554515538?mt=12> · 核查于 2026-12-06 · 这是 App Store 版的下载价格，不代表可以免费使用；应用内购买和订阅不在其中。

## TRex 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- <https://github.com/amebalabs/TRex> · 是否开源: 是 — <https://github.com/amebalabs/TRex> · 核查于 2026-11-13

## 卸载

- `brew uninstall --cask trex`

普通卸载会删除应用本身，设置和缓存会保留。

### 深度清理（可选）

- `brew uninstall --zap --cask trex`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `~/Library/Application Scripts/com.ameba.TRex-LaunchAtLoginHelper` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/trex.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/com.ameba.TRex` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/trex.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Containers/com.ameba.TRex-LaunchAtLoginHelper` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/trex.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/com.ameba.TRex.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/trex.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-06；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 2.0.1-beta.6 (2026-12-03)

### TRex v2.0.1 Beta 6 Release Notes

This beta targets the slow first capture reported on some Macs, makes "Ignore Line Breaks" work with every OCR engine, and moves LLM API keys into the keychain.

#### Fixes

- The first capture after an update no longer waits on Apple's text recognition model. TRex now prepares the model in the background at launch and after the Mac wakes, so captures stay fast. (#122, #115)
- Reduced capture latency: a recognition that is slow but succeeding is no longer abandoned and restarted, recovery after a stall starts with the fast model, text reaches the clipboard before the notification and history entry are written, QR detection runs off the main thread, and multiple displays are captured concurrently when freezing the screen. (#121, #115)
- "Ignore Line Breaks" now applies to every OCR engine, including Tesseract, LLM OCR, and the built-in fallback used when the Mac is offline. (#124, #119)
- LLM API keys are stored in the login keychain instead of the preferences file, and kept separately per provider, so a key entered for OpenAI or Anthropic is never sent to a custom endpoint. Existing keys are migrated on first launch. Model names are kept per provider as well. (#125, #120)

#### Changes

- LLM OCR requests get up to 30 seconds before TRex falls back to Apple Vision. Previously they shared the 5-second on-device budget and almost always fell back. Tesseract gets the same 30 seconds. (#121)
- Switching the provider in Settings → AI now shows that provider's own API key and model. Custom starts with an empty, optional key. (#125)

#### Known Issues

- The multi-monitor crosshair fix and the concurrent display capture still need confirmation on a physical multi-monitor setup. (#110)
- LLM OCR combined with automatic language detection still runs Apple Vision. The fix is in review. (#123)

Requires macOS 14 or later. Includes support for Apple Silicon and Intel Macs.

## 资料与来源

- <https://opennavo.com/zh/apps/trex>
- <https://opennavo.com/zh/apps/trex/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/trex.rb> · 核查于 2026-12-06
- <https://formulae.brew.sh/cask/trex>
- <https://apps.apple.com/us/app/trex-copy-the-uncopyable/id1554515538?mt=12> · 核查于 2026-12-06
- <https://github.com/amebalabs/TRex> · 核查于 2026-11-13
