{"id":26749,"library":"authenticator","title":"Authenticator","description":"A HOTP/TOTP code generator for the command line, useful for generating two-factor authentication codes from the terminal. Current version: 1.1.3 (as of verification date). Release cadence: irregular.","status":"active","version":"1.1.3","language":"python","source_language":"en","source_url":"https://github.com/JeNeSuisPasDave/authenticator","tags":["totp","hotp","2fa","cli","authentication"],"install":[{"cmd":"pip install authenticator","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The library exposes a CLI tool; there is no Python API module to import.","wrong":"","symbol":"authenticator","correct":"import authenticator"}],"quickstart":{"code":"# The primary use is command-line. Example:\n# authenticator add myaccount --key 'BASE32SECRET'\n# authenticator code myaccount","lang":"python","description":"Add an account with a base32 secret and generate a TOTP code."},"warnings":[{"fix":"Use the command-line tool directly. If you need programmatic TOTP generation, use a library like pyotp.","message":"This library is a CLI tool, not a Python module. Do not attempt to import authenticator in Python code; it will raise ModuleNotFoundError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `authenticator` from the terminal, not from Python's import statement.","cause":"Trying to import authenticator in Python code instead of running it as a command.","error":"ModuleNotFoundError: No module named 'authenticator'"},{"fix":"Use correct command: authenticator add, authenticator code, authenticator list, authenticator delete, authenticator rename.","cause":"Typo or incorrect command name.","error":"authenticator: error: argument command: invalid choice: 'add' (choose from 'add', 'code', 'list', 'delete', 'rename')"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}