{"id":48646033,"url":"https://github.com/smartlegionlab/smart-2fa-manager-cli","last_synced_at":"2026-04-13T07:00:45.906Z","repository":{"id":349881659,"uuid":"1203299562","full_name":"smartlegionlab/smart-2fa-manager-cli","owner":"smartlegionlab","description":"Lightweight, offline, independent TOTP 2FA manager for Linux.","archived":false,"fork":false,"pushed_at":"2026-04-10T00:25:39.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-10T02:36:53.266Z","etag":null,"topics":["2fa-client","2fa-client-python","2fa-totp","alexander-suvorov","smart-2fa-manager","smartlegionlab"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smartlegionlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-06T23:13:48.000Z","updated_at":"2026-04-10T00:25:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/smartlegionlab/smart-2fa-manager-cli","commit_stats":null,"previous_names":["smartlegionlab/smart-2fa-manager-python-cli","smartlegionlab/smart-2fa-manager-cli"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/smartlegionlab/smart-2fa-manager-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fsmart-2fa-manager-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fsmart-2fa-manager-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fsmart-2fa-manager-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fsmart-2fa-manager-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartlegionlab","download_url":"https://codeload.github.com/smartlegionlab/smart-2fa-manager-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlegionlab%2Fsmart-2fa-manager-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2fa-client","2fa-client-python","2fa-totp","alexander-suvorov","smart-2fa-manager","smartlegionlab"],"created_at":"2026-04-10T04:01:17.918Z","updated_at":"2026-04-13T07:00:45.899Z","avatar_url":"https://github.com/smartlegionlab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart 2FA Manager (Cli) \u003csup\u003ev1.1.0\u003c/sup\u003e\n\n---\n\n**Lightweight, offline, independent TOTP 2FA manager for Linux.**\n\n---\n\n[![GitHub top language](https://img.shields.io/github/languages/top/smartlegionlab/smart-2fa-manager-cli)](https://github.com/smartlegionlab/smart-2fa-manager-cli)\n[![GitHub license](https://img.shields.io/github/license/smartlegionlab/smart-2fa-manager-cli)](https://github.com/smartlegionlab/smart-2fa-manager-cli/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/v/release/smartlegionlab/smart-2fa-manager-cli)](https://github.com/smartlegionlab/smart-2fa-manager-cli/)\n[![GitHub stars](https://img.shields.io/github/stars/smartlegionlab/smart-2fa-manager-cli?style=social)](https://github.com/smartlegionlab/smart-2fa-manager-cli/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/smartlegionlab/smart-2fa-manager-cli?style=social)](https://github.com/smartlegionlab/smart-2fa-manager-cli/network/members)\n\n---\n\nNo cloud, no phone required. Store your secrets locally, generate codes, create encrypted backups, and sync with Google Authenticator via QR codes.\n\n---\n\n## ⚠️ Disclaimer\n\n**By using this software, you agree to the full disclaimer terms.**\n\n**Summary:** Software provided \"AS IS\" without warranty. You assume all risks.\n\n**Full legal disclaimer:** See [DISCLAIMER.md](DISCLAIMER.md)\n\n---\n\n## Installation\n\n### Dependencies\n\n```bash\n# Arch Linux\nsudo pacman -S oath-toolkit gnupg qrencode python\n\n# Debian/Ubuntu\nsudo apt install oathtool gpg qrencode python3\n\n# Fedora/RHEL\nsudo dnf install oathtool gnupg2 qrencode python3\n```\n\n### Setup\n\n1. Get the script from repository:\n   ```bash\n   cd ~\n   git clone https://github.com/smartlegionlab/smart-2fa-manager-cli.git\n   cd smart-2fa-manager-cli\n   ```\n\n   Or download directly:\n   ```bash\n   wget https://raw.githubusercontent.com/smartlegionlab/smart-2fa-manager-cli/main/2fa.py\n   ```\n\n2. Install:\n   ```bash\n   chmod +x 2fa.py\n   sudo cp 2fa.py /usr/local/bin/2fa.py\n   ```\n   Important! This command `2fa.sh init` should only be run on first launch!!! If you already have a .2FA folder created earlier that already stores your services, initialization is not required; you can start using the application immediately.\n   Run only if you don't have a `~/.2fa` folder and haven't previously initialized using other similar applications or added services!\n\n   Now you can use:\n   ```bash\n   2fa.py init\n   ```\n\n\n---\n\n## Quick Start\n\n```bash\n# Important! This command `2fa.sh init` should only be run on first launch!!! If you already have a .2FA folder created earlier that already stores your services, initialization is not required; you can start using the application immediately.\n# Run only if you don't have a `~/.2fa` folder and haven't previously initialized using other similar applications or added services!\n# Initialize storage (creates encrypted ~/.2fa/secrets.gpg)\n2fa.py init\n\n# Add a service (secret from website QR code)\n2fa.py add github JBSWY3DPEHPK3PXP\n\n# Get TOTP code (auto-copies to clipboard)\n2fa.py get github\n\n# Show all services with current codes\n2fa.py show-all\n\n# Export QR code to phone (Google Authenticator / Aegis)\n2fa.py qr github\n\n# Create encrypted backup (saved to ~/.2fa/backups/)\n2fa.py backup\n\n# Restore from backup\n2fa.py restore ~/.2fa/backups/secrets.2026-04-06.gpg\n\n# Show version\n2fa.py version\n\n# Show author and repository info\n2fa.py about\n```\n\n---\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `init` | Create encrypted storage |\n| `add \u003cservice\u003e \u003csecret\u003e` | Add a new service |\n| `get \u003cservice\u003e` | Generate TOTP code (copies to clipboard) |\n| `list` | List all service names |\n| `show-all` | List all services with current codes |\n| `del \u003cservice\u003e` | Delete a service |\n| `show` | Show all secrets in plain text (⚠️ unsafe) |\n| `qr \u003cservice\u003e` | Show QR code to scan with phone |\n| `backup` | Create encrypted backup with timestamp |\n| `restore \u003cfile\u003e` | Restore from encrypted backup |\n| `about` | Show author, repository and license info |\n| `version` | Show version number |\n| `help` | Show help message |\n\n---\n\n## File Structure\n\n```\n~/.2fa/\n├── secrets.gpg          # Encrypted master storage\n└── backups/\n    └── secrets.2026-04-06_14-30-00.gpg\n```\n\n---\n\n## How It Works\n\n- **Secrets are stored locally** in `~/.2fa/secrets.gpg` (AES-256 encrypted with GPG)\n- **No internet connection required** - codes generated locally using `oathtool`\n- **Backups are encrypted** with the same password\n- **QR codes** let you import secrets into Google Authenticator / Aegis\n- **Lost your phone?** Just re-scan QR codes from your Linux machine\n\n---\n\n## Security Notes\n\n- Your GPG password is never stored\n- Backup files are encrypted with the same password\n- `2fa.py show` displays all secrets in plain text - use in secure environment only\n- Keep backups in a safe place (encrypted USB drive, offline storage)\n\n---\n\n## Author \u0026 Repository\n\n- **Author:** [@smartlegionlab](https://github.com/smartlegionlab/)\n- **Repository:** [smartlegionlab/smart-2fa-manager-cli](https://github.com/smartlegionlab/smart-2fa-manager-cli)\n- **Bash version:** [smartlegionlab/smart-2fa-manager-bash](https://github.com/smartlegionlab/smart-2fa-manager-bash)\n- **Python GUI version:** [smartlegionlab/smart-2fa-manager-desktop](https://github.com/smartlegionlab/smart-2fa-manager-desktop)\n- **License:** [BSD 3-Clause](LICENSE)\n\n---\n\n## License\n\n**License:** [BSD 3-Clause](LICENSE)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartlegionlab%2Fsmart-2fa-manager-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartlegionlab%2Fsmart-2fa-manager-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartlegionlab%2Fsmart-2fa-manager-cli/lists"}