Whenever some script or Git clones/pulls something from GitHub I don't wish to send my GitHub Account, if the repo is public.

How to make sure I won't be authenticated with my GitHub user with Keychain?

> brew search geoip
geoip                                                                                                                                geoipupdate
Error: GitHub
The GitHub credentials in the macOS keychain may be invalid.
Clear them with:
  printf "protocol=https\nhost=github.com\n" | git credential-osxkeychain erase
Or create a personal access token:
and then set the token as: export HOMEBREW_GITHUB_API_TOKEN="your_new_token"

> git credential-osxkeychain erase

Add the variable HOMEBREW_NO_GITHUB_API to your environment.

For example add this to your .bash_profile to turn off "once for all":


or put it in front of the brew for single actions:

HOMEBREW_NO_GITHUB_API=1 brew search geoip
  • thanks @techraf but I search for a general solution, not only Homebrew – Ivanov Jan 22 '17 at 8:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .