Somebody posted a tool here in the last couple of weeks that was doing this (using macos secure storage for local credentials/ keys)