# Install cotp with Homebrew, apk, apt, Nix, pacman

TOTP/HOTP authenticator app with import functionality. Version 1.10.0 via Homebrew; verified 2026-07-23. Also installable with debian: sudo apt install cotp.

## Install

```sh
sudo av install brew:cotp
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cotp
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cotp
```

  Evidence: Alpine Linux edge package indexes: cotp from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install cotp
```

  Evidence: Debian stable package indexes: cotp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#cotp
```

  Evidence: nixpkgs package indexes: pkgs/by-name/co/cotp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cotp
```

  Evidence: Arch Linux sync databases: cotp from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:cotp
- **Package manager:** Homebrew
- **Version:** 1.10.0
- **Source summary:** TOTP/HOTP authenticator app with import functionality
- **Homepage:** <https://github.com/replydev/cotp>
- **Repository:** <https://github.com/replydev/cotp>
- **Last updated:** 2026-07-23T01:10:16Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cotp (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.10.0
## Project history and usage

cotp is a command-line TOTP/HOTP authenticator aimed at users who want two-factor codes in a terminal-accessible, encrypted local database. Its niche is the intersection of password-manager-like local storage and Unix-style CLI workflows.

### Project history

The replydev/cotp repository was created in December 2020 and published its first GitHub release later that month. The README says the author created cotp to have minimalist, secure, desktop-accessible software for managing two-factor authentication codes.

### Adoption history

The project has remained a smaller security utility rather than a large platform. Its README notes distribution in Linux distro repositories and gives Homebrew, Cargo, and manual source installation paths, which is typical for Rust command-line tools that serve both desktop and shell users.

### How it is used

cotp initializes an encrypted database on first run, displays OTP codes in an interactive dashboard, can add TOTP and HOTP entries, lists records as JSON, imports encrypted Aegis backups, exports its database, and can copy selected codes to the clipboard.

### Why package nerds care

For package nerds, cotp is notable because it packages sensitive local credential material without depending on a cloud account. The distribution concern is less about daemons or services and more about preserving a stable CLI, encryption format, clipboard integration, and migration/import behavior.

### Timeline

- 2020: replydev/cotp repository created and first release published.
- 2020: README documented encrypted database storage and import/migration from other authenticator apps.
- 2026: Project continued publishing releases.

### Related projects

- Aegis, andOTP, Authy migration tooling, RFC 6238 TOTP, RFC 4226 HOTP.

### Sources

- <https://github.com/replydev/cotp>
- <https://api.github.com/repos/replydev/cotp>
- <https://api.github.com/repos/replydev/cotp/releases?per_page=100>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- Unix: ~/.cotp/db.cotp
## Other Package-Manager Records

- Debian apt - cotp - 1.9.2-1+b3: normalized package name match | Debian stable package indexes: cotp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality. | https://github.com/replydev/cotp
- Nix - cotp: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/cotp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cotp - 1.9.7-r0: normalized package name match | Alpine Linux edge package indexes: cotp from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality | https://github.com/replydev/cotp
- pacman - cotp - 1.10.0-1: normalized package name match | Arch Linux sync databases: cotp from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality | https://github.com/replydev/cotp


## Combined YAML source

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


## Sources

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