Simple OTP CLI that stores secrets in your OS credential manager via Bun.secrets:
- macOS: Keychain Services
- Linux:
libsecret - Windows: Credential Manager
Check the latest release and download the version compatible with your platform
lazyotp set github AAAABBBBCCCCDDDYou can also pass an otpauth://... URL:
lazyotp set aws 'otpauth://totp/MyApp:user@example.com?secret=AAAABBBBCCCCDDD&issuer=MyApp'lazyotp code githublazyotp code github | pbcopylazyotp code --secret AAAABBBBCCCCDDDlazyotp delete githublazyotp upgradeOptional environment variables for upgrade behavior:
LAZYOTP_API_URL(default:https://api.github.com/repos/jfalava/lazyotp)LAZYOTP_BIN_PATH(default: current executable path)LAZYOTP_UPGRADE_TIMEOUT_MS(default:15000)
lazyotp set AAAABBBBCCCCDDD
lazyotp code
lazyotp set work AAAABBBBCCCCDDD --service company
lazyotp code work --service companyIf you want lazyotp on your PATH:
bun link
lazyotp helpBuild for your current platform:
bun installbun run buildBuild for all supported targets:
bun run build:allTarget-specific builds:
bun run build:darwin-arm64
bun run build:darwin-x64
bun run build:linux-arm64
bun run build:linux-x64
bun run build:windows-x64Artifacts are written to dist/.