Get CockroachDB up and running in minutes with this quick start guide.
This quickstart guide walks you through installing CockroachDB, starting a local cluster, and running your first SQL commands. You’ll have a working CockroachDB cluster in just a few minutes.
# Download the binary (replace {VERSION} and {ARCHITECTURE})curl https://binaries.cockroachdb.com/cockroach-{VERSION}.linux-{ARCHITECTURE}.tgz | tar -xz# Copy the binary to your PATHsudo cp -i cockroach-{VERSION}.linux-{ARCHITECTURE}/cockroach /usr/local/bin/
The --insecure flag disables all security features. Only use this for local testing, never in production.
You’ll see output indicating the cluster has started:
** WARNING: RUNNING IN INSECURE MODE!** - Your cluster is open for any client that can access localhost.* - Any user, even root, can log in without providing a password.* - Any user, connecting as root, can read or write any data in your cluster.*CockroachDB node starting at 2026-03-03