Infrastructure for Shared Cache and Remote Execution

Struo caches and runs actions locally with no setup. Add infrastructure to share cached results across machines, run actions remotely, or publish build artifacts.

Each capability is configured independently in the repository root struo.toml. A repository can store results in one provider, run actions in another, or use only one of them.

Each provider guide starts with a Capabilities table listing what the provider supports, how you set it up, and how it authenticates.

Share results across machines#

A cache provider lets another developer, CI runner, or coding agent reuse an action result instead of running it again. Name the provider and select it in the root struo.toml:

toml
[infrastructures.build_cache] kind = "http_cache" url = "https://cache.example.com" token_env = "BUILD_CACHE_TOKEN" [infrastructure.cache] provider = "build_cache"

Pick a provider that offers a shared cache from the provider list: a bucket or an HTTP build cache you already run, or a hosted service such as Tuist.

Run actions on another machine#

Name an execution provider and select it in the root struo.toml:

toml
[infrastructures.remote_tests] kind = "e2b" template = "vitest-node-22" [infrastructure.execution] provider = "remote_tests"

Then run a command through it:

bash
struo exec --remote -- node --version

Struo transfers only the declared inputs to a fresh environment, runs the command, retrieves the declared outputs, and deletes the environment. Read Remote Execution for scripts, build graphs, and limits.

Available providers#

Each guide covers prerequisites, configuration, usage, and limits.

ProviderShared cacheRemote executionEnvironment
TuistYesWhen enabled for your accountSingle-use Linux workers; also artifacts and live reporting
BlaxelNoYesHosted sandbox image
BoatNoYesHosted saved snapshot
CloudflareNoYes, through a Worker bridge you deployContainers in your Cloudflare account
DaytonaNoYesHosted container image
DockerNoLocal containersLocal immutable image
E2BNoYesHosted template
HTTP cacheYesNoAny server with GET, HEAD, and PUT
LangSmithNoYesHosted snapshot in your LangSmith workspace
MicrosandboxNoLocal micro-VMsLocal image
NorthflankNoYesService-backed sandbox image
Object storageYesNoYour S3, Google Cloud Storage, or Azure bucket
OpenSandboxNoYes, self-hostedYour own sandbox service
RunloopNoYesHosted Devbox Blueprint
SpritesYes, optional retained cacheYesDisposable Fly.io Linux environments or a locked worker pool
TensorlakeNoYesHosted registered image or snapshot
Together Code SandboxNoYesHosted snapshot
Vercel SandboxNoYesHosted runtime

Buildkite is not a cache or execution provider. It is an example of CI orchestration for triggers.

Publish artifacts#

Artifacts are a third, independent capability: Struo packages immutable build products and publishes them to the configured infrastructure, which decides how people download, install, or serve them.

Run locally for one invocation#

The local cache stays available after you configure a shared cache. Set STRUO_CACHE_PROVIDER=local to skip the shared cache for one command:

bash
STRUO_CACHE_PROVIDER=local ./scripts/package-site.sh

For execution, omit --remote to run on the current computer, or pass --compute <provider> with --remote to choose a different named execution provider for one invocation.

Next steps#