Select an RBE backend that implements the Remote Execution API (REAPI): BuildBuddy, Engflow, and Google Cloud's Remote Build Execution service are common options; each provides a grpcs:// endpoint
Add execution flags to .bazelrc: build --remote_executor=grpcs://YOUR_RBE_ENDPOINT --remote_cache=grpcs://YOUR_RBE_ENDPOINT --remote_timeout=600
Define a platform target in your BUILD file specifying the remote execution container image and OS constraints, then reference it with build --remote_execution_properties or --platforms=//path/to:platform
Configure toolchains so the remote executor finds compilers at the same paths used in the platform image; for C++ this typically means registering a hermetic LLVM or GCC toolchain via register_toolchains in WORKSPACE
Set build --jobs=50 (or higher) to leverage RBE parallelism; with remote execution, builds are no longer bounded by local CPU cores
Authenticate by passing a token or service account credentials via --remote_header=x-buildbuddy-api-key=YOUR_KEY or a credentials JSON file, depending on the provider
Known gotchas
Projects that build native binaries or link system libraries require a matching container image on the remote executor; mismatches cause cryptic linking or 'file not found' errors
RBE does not help with actions marked as local = True or that use ctx.actions.run_shell with commands unavailable on the remote executor image
Network latency to the RBE service adds overhead for small, fast actions; for projects with many sub-second compile steps, local builds with remote caching may be faster than full RBE
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp