# Getting started with the Build Cache

:::tip[Try it for free]

We offer a 30-day free trial at no cost; you don't even need to provide payment information. The trial starts automatically when you set up the Bitrise Build Cache.

[Click here to get started with the Bitrise Build Cache](https://app.bitrise.io/build-cache). If you don't have a Bitrise account, you will be prompted to create one first before proceeding to set up the Build Cache.

:::

Bitrise supports remote build caching for the Gradle, Bazel, Xcode, and React Native build systems. Follow the guide that matches your build system and the environment you want to set the Build Cache up in.

## Setting up on Bitrise CI

- [Build Cache for Gradle](/bitrise-build-cache/build-cache-for-gradle/configuring-the-build-cache-for-gradle-in-the-bitrise-ci-environment).
- [Build Cache for Bazel](/bitrise-build-cache/build-cache-for-bazel/configuring-the-build-cache-for-bazel-in-the-bitrise-ci-environment).
- [Build Cache for Xcode](/bitrise-build-cache/build-cache-for-xcode/configuring-the-build-cache-for-xcode-in-the-bitrise-ci-environment).
- [Build Cache for React Native](/bitrise-build-cache/build-cache-for-react-native/configuring-the-build-cache-for-react-native-in-the-bitrise-ci-environment).

## Setting up on non-Bitrise CIs

- [Build Cache for Gradle](/bitrise-build-cache/build-cache-for-gradle/configuring-the-build-cache-for-gradle-in-non-bitrise-ci-environments).
- [Build Cache for Bazel](/bitrise-build-cache/build-cache-for-bazel/configuring-the-build-cache-for-bazel-in-non-bitrise-ci-environments).
- [Build Cache for Xcode](/bitrise-build-cache/build-cache-for-xcode/configuring-the-build-cache-for-xcode-in-non-bitrise-ci-environments).
- [Build Cache for React Native](/bitrise-build-cache/build-cache-for-react-native/configuring-the-build-cache-for-react-native-in-non-bitrise-ci-environments).

On GitHub Actions, follow the dedicated GitHub Actions guide for your build system instead. Jobs that run on [Bitrise Build Hub](/bitrise-build-hub/build-hub-for-github-actions/build-hub-for-github-actions-overview) runners need no token: the machine is already connected to your Bitrise Workspace, so the CLI authenticates itself.

- [Build Cache for Gradle](/bitrise-build-cache/build-cache-for-gradle/configuring-the-build-cache-for-gradle-in-github-actions).
- [Build Cache for Bazel](/bitrise-build-cache/build-cache-for-bazel/configuring-the-build-cache-for-bazel-in-github-actions).
- [Build Cache for Xcode](/bitrise-build-cache/build-cache-for-xcode/configuring-the-build-cache-for-xcode-in-github-actions).
- [Build Cache for React Native](/bitrise-build-cache/build-cache-for-react-native/configuring-the-build-cache-for-react-native-in-github-actions).

## Setting up in a local dev environment

You can use the Build Cache on your own machine too. Your local builds then read from the same cache your CI builds populate, so a task your CI already compiled doesn't have to be compiled again on your machine.

A local setup needs no token: the CLI signs you in through the browser and stores the credentials in the OS keychain.

- [Build Cache for Gradle](/bitrise-build-cache/build-cache-for-gradle/configuring-the-build-cache-for-gradle-in-local-builds).
- [Build Cache for Bazel](/bitrise-build-cache/build-cache-for-bazel/configuring-the-build-cache-for-bazel-in-local-builds).
- [Build Cache for Xcode](/bitrise-build-cache/build-cache-for-xcode/configuring-the-build-cache-for-xcode-in-local-builds).
- [Build Cache for React Native](/bitrise-build-cache/build-cache-for-react-native/configuring-the-build-cache-for-react-native-in-local-builds).

## Adding a new connection to the Build Cache

To start using the Bitrise Build Cache, you have to add a new connection. The process consists of:

- Selecting a CI provider: you can use either Bitrise or another CI provider.
- Selecting a build tool: currently, Bazel, Gradle, Xcode, and React Native are supported.
- If you use Bitrise as your CI provider, selecting a Bitrise project.
- If you use GitHub Actions, connecting your repository with OpenID Connect (OIDC), so you don't have to store a token. This option is available to workspace owners. For more information, see the Authentication section of the GitHub Actions guide for your build tool, for example [Gradle](/bitrise-build-cache/build-cache-for-gradle/configuring-the-build-cache-for-gradle-in-github-actions#authentication).
- If you use a different CI provider, or you can't use OIDC, adding [a workspace API token](/bitrise-platform/workspaces/workspace-api-token) to allow the Bitrise Build Cache access to your CI. A workspace API token is not tied to a single person, so your builds keep working when someone changes roles or leaves the company.
- Adding the cache activation scripts to your CI process. On Bitrise, we have dedicated [Steps](/bitrise-ci/workflows-and-pipelines/steps/steps-overview) for this.

To add a new connection:

1. Log in to Bitrise and select the **Build Cache** from the left navigation menu.
1. On the top right corner, click **New connection**.

   ![cache-new-connection.png](/img/_paligo/uuid-bdbb02c7-b8e7-bf04-fb52-7cacd2231760.png)
1. Follow the instructions.
