This is the offical source for installing CockroachDB with Homebrew.
$ brew install cockroachdb/tap/cockroach
Alternately, you can configure the tap and install the package separately:
$ brew tap cockroachdb/tap
$ brew install cockroach
See our complete installation instructions for alternative installation methods, including support for Linux and Windows.