I built a CLI tool that auto-copies OTPs from Gmail — no more tab switching
*Every time I needed to log into something, the same thing happened: * Enter email and password Wait for the OTP email Switch to Gmail Find the email Copy the 6-digit code Switch back Paste it befo...

Source: DEV Community
*Every time I needed to log into something, the same thing happened: * Enter email and password Wait for the OTP email Switch to Gmail Find the email Copy the 6-digit code Switch back Paste it before it expires It's maybe 15 seconds. But it happens dozens of times a day, and it's just annoying enough to break focus every single time. So I built OTPilot. What it does OTPilot runs silently in the background. When you press a hotkey (default: Ctrl+Shift+O), it: Fetches your last 10 emails from Gmail Finds the OTP Copies it to your clipboard Shows a desktop notification That's it. No tab switching. No waiting. Just paste. How to install pip install otpilot Requirements: Python 3.8+ Gmail account Google Cloud project with Gmail API enabled (free, one-time 5 minute setup) How to set it up otpilot setup The setup wizard walks you through: Importing your Google credentials One-time Gmail sign-in (OAuth — read-only access) Setting your preferred hotkey Then run: otpilot start It sits in your sy