aashah/lpass-ssh-add-key ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Mac script that makes it easy to load my GitHub SSH key from LastPass.

I want to store the private key in LastPass as an SSH key item called github ssh key, then run one command and have it clear out any keys already in my ssh agent and add that key for me. It should work from the terminal on macOS, use the LastPass CLI, and be easy to run with a bash command. Make sure it warns me clearly if it is going to remove existing keys, since that is a bit dangerous. If there is any setup needed, keep it minimal and explain it in plain English. If you need to check current LastPass CLI or ssh agent behavior, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab