> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainloop.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup

## Get access to Chainloop

This guide assumes that you have access to a [Chainloop Cloud](https://app.chainloop.dev/) account or to your own self-hosted Chainloop instance. If you don't, you can [sign up for Chainloop Cloud](https://app.chainloop.dev/login), or [contact us](https://chainloop.dev/contact) if you'd rather run Chainloop yourself.

## Install the Chainloop Command Line Interface (CLI)

The Chainloop CLI is used to send pieces of evidence and attestations to the platform. During this getting started, we’ll use the CLI to perform attestations locally first, and later in a CI/CD system.

To install the latest version for macOS, Linux, or Windows (using [WSL](https://learn.microsoft.com/en-us/windows/wsl/install)), choose one of the following installation methods.

> [tab] Chainloop SaaS
>
> The install script comes pre-configured for Chainloop Cloud.
>
> ```bash theme={"dark"}
> curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s
> ```
>
> > [accordion] Advanced Options
> >
> > you can install a specific version with
> >
> > ```bash theme={"dark"}
> > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --version vx.x.x
> > ```
> >
> > and customize the install path (defaults to /usr/local/bin)
> >
> > ```bash theme={"dark"}
> > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path /my-path
> > ```
> >
> > To install without sudo, provide a user-accessible path:
> >
> > ```bash theme={"dark"}
> > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --path ~/.local/bin
> > ```
> >
> > if [cosign](https://docs.sigstore.dev/quickstart/quickstart-cosign/) is present in your system, in addition to the checksum check, a signature verification will be performed. This behavior can be enforced via the --force-verification flag.
> >
> > ```bash theme={"dark"}
> > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --force-verification
> > ```
> >
> > To install the open-source edition instead:
> >
> > ```bash theme={"dark"}
> > curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --oss
> > ```

> [tab] On-Prem
>
> Two things have to be true before the CLI can talk to your instance: the binary is installed, and it points at your instance's endpoints. Installing from your own instance's domain does both in a single command.
>
> **1. Download and configure the CLI**
>
> Install from your own instance's domain and the CLI is automatically configured to talk to it — there is nothing else to set up. Copy the exact command from the Chainloop web UI — click the terminal (`>_`) icon in the top-right corner — or replace `YOUR_INSTANCE_DOMAIN` below with your own.
>
> ```bash theme={"dark"}
> curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s
> ```
>
> ![Terminal icon in the top-right corner of the Chainloop web UI that opens the CLI installation dialog](https://mintcdn.com/chainloop/JFPirGFumFqtajI8/img/setup-cli-install.png?fit=max\&auto=format\&n=JFPirGFumFqtajI8\&q=85\&s=efda7dc904d93986d5d73b3c556c4ced)
>
> > [accordion] Advanced Options
> >
> > you can install a specific version with
> >
> > ```bash theme={"dark"}
> > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --version vx.x.x
> > ```
> >
> > and customize the install path (defaults to /usr/local/bin)
> >
> > ```bash theme={"dark"}
> > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --path /my-path
> > ```
> >
> > To install without sudo, provide a user-accessible path:
> >
> > ```bash theme={"dark"}
> > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --path ~/.local/bin
> > ```
> >
> > if [cosign](https://docs.sigstore.dev/quickstart/quickstart-cosign/) is present in your system, in addition to the checksum check, a signature verification will be performed. This behavior can be enforced via the --force-verification flag.
> >
> > ```bash theme={"dark"}
> > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --force-verification
> > ```
> >
> > To install the open-source edition instead:
> >
> > ```bash theme={"dark"}
> > curl -sfL https://YOUR_INSTANCE_DOMAIN/cli/install.sh | bash -s -- --oss
> > ```
>
> **2. Point the CLI at your instance — only if you installed it another way**
>
> Skip this if you used the command above. Run it when the CLI came from somewhere else — `dl.chainloop.dev`, a package manager, or a **Manual Download** — or when you want to switch an existing install to a different instance.
>
> ```bash theme={"dark"}
> chainloop config save \
>   --control-plane my-controlplane.acme.com:443 \
>   --artifact-cas cas.acme.com:443 \
>   --platform my-platform.acme.com:443
> ```
>
> Confirm which instance the CLI is talking to with `chainloop config view`.

> [tab] Manual Download
>
> Download the CLI binary directly and verify its SHA256 against the published `checksums.txt`. Use this when piping a script into `bash` is not an option, or when binaries need to be validated out-of-band.
>
> > [accordion] v1.159.2
> >
> > | OS | Architecture | Download | SHA256 |
> > | - | - | - | - |
> > | Linux | Intel (amd64) | [chainloop-linux-amd64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.159.2/chainloop-linux-amd64) | `c58e98a6819f8ee4d477e81e0b36e1f67b6365ae2297597ff80cf3874fae4c3d` |
> > | Linux | ARM64 | [chainloop-linux-arm64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.159.2/chainloop-linux-arm64) | `d15b4a1cb12a4d2fcf25bd1cc3df5455fa6a40b9cdef182241ae9700be2cf8c3` |
> > | macOS | Intel (amd64) | [chainloop-darwin-amd64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.159.2/chainloop-darwin-amd64) | `0a7de2cb1fb3c1b988bf3f806ad52198ee74bab2b5b7bcddd735452e5e95adf4` |
> > | macOS | Apple Silicon | [chainloop-darwin-arm64](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.159.2/chainloop-darwin-arm64) | `28fb181127c431395aff74d7eaee80e710a1c38e2f4512ce706c6b83e7133ad9` |
> > | Windows | Intel (amd64) | [chainloop-windows-amd64.exe](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.159.2/chainloop-windows-amd64.exe) | `d8d31baa5b9ac780f7dfd2d8490736a7f03178d11f0cce6fac65599e24e3b38e` |
> > | Windows | ARM64 | [chainloop-windows-arm64.exe](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.159.2/chainloop-windows-arm64.exe) | `81e5c9d8165397097697a348bafc5054680da4d94ae825038a0883b98e5b6f59` |
> >
> > Full manifest: [`checksums.txt`](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.159.2/checksums.txt) · [signature bundle](https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/v1.159.2/checksums.txt.sigstore.json) · [Release notes](https://docs.chainloop.dev/changelog.md)
> >
> > Download, verify, and install (linux/amd64 shown — swap `chainloop-linux-amd64` for another row from the table above):
> >
> > ```bash theme={"dark"}
> > VERSION=v1.159.2
> > BASE=https://chainloop-baafegchfnekdcde.z02.azurefd.net/public/chainloop-platform-cli/$VERSION
> >
> > # Download the linux/amd64 binary and the checksum manifest
> > curl -fsSLO "$BASE/chainloop-linux-amd64"
> > curl -fsSLO "$BASE/checksums.txt"
> >
> > # Download the signature bundle and confirm the manifest itself came from Chainloop's release pipeline
> > curl -fsSLO "$BASE/checksums.txt.sigstore.json"
> > cosign verify-blob \
> >   --bundle=checksums.txt.sigstore.json \
> >   --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
> >   --certificate-identity-regexp="^https://github.com/chainloop-dev/platform/\.github/workflows/release_backend\.yml@" \
> >   checksums.txt
> >
> > # Verify the binary against the manifest
> > sha256sum --ignore-missing -c checksums.txt
> > # on macOS: shasum -a 256 --ignore-missing -c checksums.txt
> >
> > # Install it onto your PATH
> > chmod +x chainloop-linux-amd64
> > sudo mv chainloop-linux-amd64 /usr/local/bin/chainloop
> > ```
>
> Unlike the install script, a manually downloaded binary isn't automatically configured for your instance. If you're on an **on-prem or dedicated instance**, point the CLI at your instance's endpoints (Chainloop SaaS users can skip this):
>
> ```bash theme={"dark"}
> chainloop config save \
>   --control-plane my-controlplane.acme.com:443 \
>   --artifact-cas cas.acme.com:443 \
>   --platform my-platform.acme.com:443
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.