# otplib — card for AI agents

TypeScript library for generating and verifying TOTP and HOTP one-time passwords.

Category: Auth and security libraries · npm package `otplib` · latest version 13.6.0 (checked 2026-11-01)
Install: `npm install otplib`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 53.1 (#1633 of all tools, 59 of 141 in its category)
- Used in 12 public projects set up for AI coding agents (0.2%)
- Downloads last week: 5,461,735 (as of 2026-11-24), +42.8% over 4 weeks
- GitHub stars: 2,310 (as of 2026-11-24)
- Last push: 2026-11-04

## Often used with
dotenv 72.4%, Tailwind Merge 72.4%, clsx 72.4%, React 89.7%, date-fns 62.1%, Nodemailer 62.1%

## Links
- AgentGid page: https://agentgid.com/tools/otplib/
- Homepage: https://otplib.yeojz.dev
- Repository: https://github.com/yeojz/otplib

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
