I had some head-scratching moments setting up Claude to work with the GitHub CLI and 1Password on my MacBook. I had the gh wrapped in a 1Password plugin in /Users/bep/.config/op/plugins.sh:
alias gh="op plugin run -- gh"This made gh work great when doing manual terminal work with fingerprint authentication and all. But UI popups doesn't work in Claude, Claude needs a GH_TOKEN.
So, following some sketchy guides online, I created a new vault in 1Password named Claude, and added my GitHub token to that vault: