# 使用 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 ots
```

  证据: Debian stable package indexes: ots 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 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>
- **最后更新:** 2026-07-27T23:46:53+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ots (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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-37.fc45: normalized package name match | Fedora Rawhide package metadata: ots from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A text summarizer | http://libots.sourceforge.net/
- dnf - ots-devel - 0.5.0-37.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Libraries and include files for developing with libots | http://libots.sourceforge.net/
- dnf - ots-libs - 0.5.0-37.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Shared libraries for ots | http://libots.sourceforge.net/


## Combined YAML source

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


## 来源

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