<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bazel-remote-caching-and-insights-in-tuist-mdlrtqhx3" -->

---
title: Bazel remote caching and insights in Tuist | daily.dev
description: Tuist has added support for Bazel remote caching and build insights. The post walks through the engineering behind it: a low-latency regional cache network...
canonical: https://daily.dev/posts/bazel-remote-caching-and-insights-in-tuist-mdlrtqhx3
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Bazel remote caching and insights in Tuist | daily.dev
og:description: Tuist has added support for Bazel remote caching and build insights. The post walks through the engineering behind it: a low-latency regional cache network...
og:url: https://daily.dev/posts/bazel-remote-caching-and-insights-in-tuist-mdlrtqhx3
og:image: https://api.daily.dev/og/posts/MdLrtQhx3.png
og:image:alt: Bazel remote caching and insights in Tuist
og:image:width: 1200
og:image:height: 630
og:locale: en
---

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

# Bazel remote caching and insights in Tuist

**[
      Tuist
    ](https://daily.dev/sources/tuist-blog)** · 15 min read · 0 upvotes · 0 comments

## Summary

Tuist has added support for Bazel remote caching and build insights. The post walks through the engineering behind it: a low-latency regional cache network (Kura) built to handle Bazel's granular cache artifacts, a credential-helper-based authentication scheme that reuses Tuist's existing CLI auth flow, an implementation of Bazel's Remote Execution API (REAPI) for content-addressable caching, and integration with the Build Event Protocol (BEP) to surface test results and build insights in Tuist's dashboard. Setup takes two commands (tuist auth login and tuist bazel setup). The post closes with a teaser that Linux and macOS remote execution support is coming next.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://tuist.dev/blog/2026/09/09/bazel>

## Questions this post answers

### How do I set up Bazel remote caching with Tuist?

Two commands are needed: run 'tuist auth login' once across all repositories to authenticate via the Tuist CLI's browser-based login flow, then run 'tuist bazel setup' once per repository to generate the Bazel configuration and credential helper. The helper handles token management and attaches account and project headers to every cache request automatically.

_Developers wiring Bazel into a new cache backend can compare setup steps and options on daily.dev._

### How does Bazel's Remote Execution API (REAPI) protocol work for caching?

REAPI combines a content-addressable store, where files are stored under a hash of their contents, with action cache items that record the result of a build step. An action cache entry's key hashes the step's command, environment, and inputs, and its value points to output file digests; when another machine reaches the same step, Bazel fetches the cached outputs via gRPC instead of re-running it.

_daily.dev surfaces protocol-level explainers like this for engineers building or debugging build cache integrations._

### Why does Bazel's Build Event Protocol only reference test result files by hash instead of sending them directly?

Because the machine emitting build events, especially with remote execution or caching, often does not have the actual files locally; Bazel avoids downloading outputs it does not need, so it can only reference a file by its content hash. Large test reports would also block the event stream if embedded directly, and the cache already deduplicates and stores files, so events just point at cache blobs by hash instead of duplicating file transport.

_Teams integrating with Bazel's Build Event Protocol can track these design nuances on daily.dev before hitting them in production._

## Similar posts on daily.dev

- [The new Tuist, from build toolchains to bare metal](https://daily.dev/posts/the-new-tuist-from-build-toolchains-to-bare-metal-waw3c6jvd) · 
      Tuist
     · 0 upvotes · 0 comments
- [Kura: a distributed build cache for Xcode, Bazel, and Gradle](https://daily.dev/posts/kura-a-distributed-build-cache-for-xcode-bazel-and-gradle-lbqb10qt3) · 
      Tuist
     · 6 upvotes · 0 comments
- [Tuist Runners: Going down to the bare metal on macOS and Linux](https://daily.dev/posts/tuist-runners-going-down-to-the-bare-metal-on-macos-and-linux-uxjcat0c2) · 
      Tuist
     · 0 upvotes · 0 comments
- [Toss: Building less to ship faster](https://daily.dev/posts/toss-building-less-to-ship-faster-1arhtus0n) · 
      Tuist
     · 4 upvotes · 0 comments
- [Bringing Tuist to Elixir](https://daily.dev/posts/bringing-tuist-to-elixir-ckdhzmzus) · 
      Tuist
     · 0 upvotes · 0 comments

---

Tags: [#grpc](https://daily.dev/tags/grpc), [#build-systems](https://daily.dev/tags/build-systems), [#bazel](https://daily.dev/tags/bazel), [#tuist](https://daily.dev/tags/tuist)

[View this post on daily.dev](https://daily.dev/posts/bazel-remote-caching-and-insights-in-tuist-mdlrtqhx3)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Bazel remote caching and insights in Tuist","url":"https://daily.dev/posts/bazel-remote-caching-and-insights-in-tuist-mdlrtqhx3","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/bazel-remote-caching-and-insights-in-tuist-mdlrtqhx3"},"datePublished":"2026-09-11T16:28:42.550Z","dateModified":"2026-10-15T02:22:45.865Z","description":"Tuist has added support for Bazel remote caching and build insights. The post walks through the engineering behind it: a low-latency regional cache network...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c4ecec81d8458837c1a60ec7e26ff3b6?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c4ecec81d8458837c1a60ec7e26ff3b6?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"\n      Tuist\n    ","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"\n      Tuist\n    ","logo":"https://media.daily.dev/image/upload/s--3AYDH23h--/f_auto,q_auto/v1787487506/logos/tuist-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/tuist-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/bazel-remote-caching-and-insights-in-tuist-mdlrtqhx3","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"grpc,build-systems,bazel,tuist","timeRequired":"PT15M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"\n      Tuist\n    ","item":"https://daily.dev/sources/tuist-blog"},{"@type":"ListItem","position":3,"name":"Bazel remote caching and insights in Tuist"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/bazel-remote-caching-and-insights-in-tuist-mdlrtqhx3#faq","mainEntity":[{"@type":"Question","name":"How do I set up Bazel remote caching with Tuist?","acceptedAnswer":{"@type":"Answer","text":"Two commands are needed: run 'tuist auth login' once across all repositories to authenticate via the Tuist CLI's browser-based login flow, then run 'tuist bazel setup' once per repository to generate the Bazel configuration and credential helper. The helper handles token management and attaches account and project headers to every cache request automatically. Developers wiring Bazel into a new cache backend can compare setup steps and options on daily.dev."}},{"@type":"Question","name":"How does Bazel's Remote Execution API (REAPI) protocol work for caching?","acceptedAnswer":{"@type":"Answer","text":"REAPI combines a content-addressable store, where files are stored under a hash of their contents, with action cache items that record the result of a build step. An action cache entry's key hashes the step's command, environment, and inputs, and its value points to output file digests; when another machine reaches the same step, Bazel fetches the cached outputs via gRPC instead of re-running it. daily.dev surfaces protocol-level explainers like this for engineers building or debugging build cache integrations."}},{"@type":"Question","name":"Why does Bazel's Build Event Protocol only reference test result files by hash instead of sending them directly?","acceptedAnswer":{"@type":"Answer","text":"Because the machine emitting build events, especially with remote execution or caching, often does not have the actual files locally; Bazel avoids downloading outputs it does not need, so it can only reference a file by its content hash. Large test reports would also block the event stream if embedded directly, and the cache already deduplicates and stores files, so events just point at cache blobs by hash instead of duplicating file transport. Teams integrating with Bazel's Build Event Protocol can track these design nuances on daily.dev before hitting them in production."}}]}
```

