# 使用 Homebrew, apt, dnf, Nix 安装 ots

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

## 安装

```sh
sudo av install brew:ots
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ots
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libots-dev
```

  证据: Debian stable package indexes: libots-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ots
```

  证据: Fedora Rawhide package metadata: ots from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ots
```

  证据: nixpkgs package indexes: pkgs/by-name/ot/ots/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ots
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ots>
- **版本:** 0.3.1
- **来源摘要:** Share end-to-end encrypted secrets with others via a one-time URL
- **主页:** <https://ots.sniptt.com>
- **仓库:** <https://github.com/sniptt-official/ots>
- **上游文档:** <https://github.com/sniptt-official/ots#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/sniptt-official/ots/archive/refs/tags/v0.3.1.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- ots (cli)
- ots (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.3.1
- 本地数据: OK
- 上游仓库: https://github.com/sniptt-official/ots
- 检测到的最新版本: v0.3.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

ots is a Go command-line tool from Sniptt for sharing secrets through one-time URLs. It encrypts a secret on the client side, uploads encrypted bytes to the service, and returns a URL intended to be opened once or expire after a chosen lifetime.

### 项目历史

Sniptt introduced ots publicly in a 14 June 2021 post about developer-focused secret sharing. The post described one-time URL sharing as a popular Sniptt use case and presented ots as a lightweight, zero-configuration Go CLI for creating end-to-end encrypted one-time secrets.

The GitHub repository keeps the implementation compact and Go-only. Its README positions the tool for API keys, signing secrets, passwords, and environment data, with support for interactive prompts, pipelines, expiry settings, and regional data residency.

### 采用历史

ots gained package-manager visibility through Homebrew, where the formula builds the Go CLI and installs shell completions. The GitHub repository lists fourteen releases and a substantially larger star count than many single-purpose secret-sharing CLIs, suggesting interest beyond the original Sniptt audience.

### 使用方式

Users can create a secret interactively with ots new, pass data through a shell pipeline such as pbpaste or cat .env, set an expiry, and choose a storage region. The hosted web page offers the same one-time-secret model from a browser and advertises the CLI install path.

The code encrypts bytes with AES-256-GCM using a randomly generated key and nonce before sending encrypted bytes to the API. The service model is therefore aimed at quick exchange of sensitive material without placing plaintext into chat, email, or issue trackers.

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

ots is interesting as a package because it turns a hosted security workflow into a Unix-friendly pipe target. It is not a general secret manager; its value is the narrow workflow of making one encrypted, expiring URL from terminal input.

### 时间线

- 14 June 2021: Sniptt's blog described ots as a zero-configuration Go CLI for one-time encrypted secret URLs.
- 8 February 2025: The GitHub repository lists v0.3.1 as a release, and Homebrew's formula builds from that tag.

### Related projects

- ots is related to Sniptt's broader secret-management tooling and web-ots, the hosted browser interface for one-time secrets.

### 来源

- <https://github.com/sniptt-official/ots>
- <https://ots.sniptt.com/>
- <https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/o/ots.rb>
- <https://raw.githubusercontent.com/sniptt-official/ots/main/crypto/encrypt/encrypt.go>
- <https://sniptt.medium.com/sharing-secrets-with-teams-82fde5b11149>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - libots-dev - 0.5.0-9+b1: normalized package name match | Debian stable package indexes: libots-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Open Text Summarizer (development) | http://libots.sourceforge.net/
- Debian apt - libots0 - 0.5.0-9+b1: normalized package name match | Debian stable package indexes: libots0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Open Text Summarizer (library) | http://libots.sourceforge.net/
- Debian apt - ots - 0.5.0-9+b1: normalized package name match | Debian stable package indexes: ots from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Open Text Summarizer | http://libots.sourceforge.net/
- Nix - ots: normalized package name match | nixpkgs package indexes: pkgs/by-name/ot/ots/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libots-dev - 0.5.0-9: normalized package name match | Ubuntu 24.04 LTS package indexes: libots-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Open Text Summarizer (development) | http://libots.sourceforge.net/
- Ubuntu apt - libots0 - 0.5.0-9: normalized package name match | Ubuntu 24.04 LTS package indexes: libots0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Open Text Summarizer (library) | http://libots.sourceforge.net/
- Ubuntu apt - ots - 0.5.0-9: normalized package name match | Ubuntu 24.04 LTS package indexes: ots from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Open Text Summarizer | http://libots.sourceforge.net/
- dnf - ots - 0.5.0-36.fc44: normalized package name match | Fedora Rawhide package metadata: ots from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A text summarizer | http://libots.sourceforge.net/
- dnf - ots-devel - 0.5.0-36.fc44: normalized package name match | Fedora Rawhide package metadata: ots-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Libraries and include files for developing with libots | http://libots.sourceforge.net/
- dnf - ots-libs - 0.5.0-36.fc44: normalized package name match | Fedora Rawhide package metadata: ots-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Shared libraries for ots | http://libots.sourceforge.net/


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [libgfshare](https://www.automicvault.com/zh-hans/pkg/brew/libgfshare/) - Shares av.db curated category or tags: cli, secret-sharing, security.
- [sss-cli](https://www.automicvault.com/zh-hans/pkg/brew/sss-cli/) - Shares av.db curated category or tags: cli, secret-sharing, security.
- [ssss](https://www.automicvault.com/zh-hans/pkg/brew/ssss/) - Shares av.db curated category or tags: cli, secret-sharing, security.
- [teller](https://www.automicvault.com/zh-hans/pkg/brew/teller/) - Shares av.db curated category or tags: cli, secret-management, security.
- [acme.sh](https://www.automicvault.com/zh-hans/pkg/brew/acme-sh/) - Shares av.db curated category or tags: cli, security.
- [aescrypt](https://www.automicvault.com/zh-hans/pkg/brew/aescrypt/) - Shares av.db curated category or tags: cli, security.
- [aespipe](https://www.automicvault.com/zh-hans/pkg/brew/aespipe/) - Shares av.db curated category or tags: cli, security.
- [afflib](https://www.automicvault.com/zh-hans/pkg/brew/afflib/) - Shares av.db curated category or tags: cli, security.

## Combined YAML source

View the package source record on GitHub. [combined/ots.yml](https://github.com/automic-vault/db/blob/main/combined/ots.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
