🍺 BREW Explorer

← all formulae

cotp

brew install cotp v1.9.10 GPL-3.0-only

TOTP/HOTP authenticator app with import functionality

24
30-day installs · #6371
107
90-day · #5435
324
365-day · #6128
375
★ GitHub stars · updated 2mo ago

Build dependencies

GitHub topics

authentication authy clipboard commandline google-authenticator hotp linux rust totp totp-codes tui-rs windows xchacha20-poly1305

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "TOTP/HOTP authenticator app with import functionality",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:37+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "cotp",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-18T15:42:39Z",
  "github_readme_excerpt": "# cotp - command line TOTP/HOTP authenticator\n\n[![Actions Status](https://github.com/replydev/cotp/workflows/Build/badge.svg)](https://github.com/replydev/cotp/actions)\n[![crates.io](https://img.shields.io/crates/v/cotp)](https://crates.io/crates/cotp) \n[![Downloads](https://img.shields.io/crates/d/cotp)](https://crates.io/crates/cotp)\n\n[![Packaging status](https://repology.org/badge/vertical-allrepos/cotp.svg)](https://repology.org/project/cotp/versions)\n\nI believe that security is of paramount importance, especially in this digital world. I created cotp because I needed a\nminimalist, secure, desktop accessible software to manage my two-factor authentication codes.\n\n# Overview\n\n## Interface\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"/img/cotp_demo.gif?raw=true\"/\u003e\u003c/p\u003e\n\nType `i` to get some instruction. Otherwise just enter `cotp --help`.\nIn the first run you will be prompted to insert a password to initialize the database.\n\n## TL;DR\n\n```bash\n# Display all the OTP codes in the interactive dashboard\ncotp # select any code with arrow keys, press enter to copy into the clipboard, even in an SSH remote shell\n\n# Add a new TOTP code from a BASE32 secret key\ncotp add --label myaccount@gmail.com --issuer Google\n\n# Add a new HOTP code with custom algorithm, digits and counter\ncotp add --label example --type hotp --algorithm SHA256 --digits 8 --counter 10\n\n# Edit the digits of the 4th OTP code\ncotp edit --index 4 --digits 8\n\n# List all the codes in JSON format passing password through stdin\necho \"mysecretpassword\" | cotp --password-stdin list --json\n\n# Extract the first matching OTP code with \"google\" issuer and copy it into the clipboard\ncotp extract --issuer google --copy-clipboard\n\n# Import an encrypted Aegis Database backup\ncotp import --path my_db.json --aegis-encrypted\n\n# Export the cotp database\ncotp export\n```\n\n## Compatibility\n\ncotp can generate both **TOTP** and **HOTP** codes, compliant with **rfc6238** and **rfc4226** specifications. Also, it is possible to customize settings li",
  "github_repo": "replydev/cotp",
  "github_stars": 375,
  "github_topics": [
    "authentication",
    "authy",
    "clipboard",
    "commandline",
    "google-authenticator",
    "hotp",
    "linux",
    "rust",
    "totp",
    "totp-codes",
    "tui-rs",
    "windows",
    "xchacha20-poly1305"
  ],
  "homepage": "https://github.com/replydev/cotp",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 24,
  "installs_365d": 324,
  "installs_90d": 107,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-3.0-only",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "cotp",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 6371,
  "rank_365d": 6128,
  "rank_90d": 5435,
  "raw_hash": "b2eb10e91c26ce1f",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/cotp.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.9.10",
  "versioned_formulae": [],
  "why_use_this": null
}