Overview
Blacksmith transparently caches your Bazel build artifacts across jobs in a repository, with zero code changes required. There are no.bazelrc changes to make, no workflow configuration to set up, and no need for a third-party remote cache provider like EngFlow or BuildBuddy.
What Bazel build caching speeds up
Bazel breaks a build into individual actions. When an action’s inputs have not changed, Blacksmith returns its saved outputs instead of making Bazel run it again. This can skip expensive work such as:- Compiling source files
- Running cacheable tests
- Generating code
- Linking and packaging binaries
Enable Bazel build caching
Bazel build caching is on by default for new organizations. An organization admin can turn it on or off from Settings > Caching in the Blacksmith dashboard, under Build systems. The switch is Bazel and Buck2 build cache, and it also covers Buck2 projects.Existing remote cache setups
You don’t need to change your workflow or.bazelrc, since Blacksmith configures Bazel before the job starts. The exception is an explicit remote cache: if your .bazelrc or workflow sets its own --remote_cache (for example, a remote caching solution like EngFlow or BuildBuddy), that configuration takes precedence, so remove its --remote_cache settings and credentials for Blacksmith’s cache to take effect. Blacksmith replaces remote caching, not remote execution, so if you also rely on a provider for remote execution, contact us through the Blacksmith support portal first.
Branch protection
Build cache branch protection is available in Settings > Caching, under Dependencies. When enabled, only jobs running on the default branch (push, schedule, workflow_dispatch) or in a merge queue can write to the cache. Every other job gets read-only access. The setting is off by default and applies to every build cache at once.
Caching across branches
Each repository has its own Bazel cache. Unlike the Actions cache, Bazel cache entries are not scoped to a branch. Matching build artifacts are shared across branches and pull requests within that repository, so a build onmain can warm the cache for a later pull request. Branch protection controls which jobs may write them.
Bazel only reuses an artifact when its action key matches. Caches are also separated by CPU architecture.

