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:
[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:
[infrastructures.remote_tests]
kind = "e2b"
template = "vitest-node-22"
[infrastructure.execution]
provider = "remote_tests"Then run a command through it:
struo exec --remote -- node --versionStruo 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.
| Provider | Shared cache | Remote execution | Environment |
|---|---|---|---|
| Tuist | Yes | When enabled for your account | Single-use Linux workers; also artifacts and live reporting |
| Blaxel | No | Yes | Hosted sandbox image |
| Boat | No | Yes | Hosted saved snapshot |
| Cloudflare | No | Yes, through a Worker bridge you deploy | Containers in your Cloudflare account |
| Daytona | No | Yes | Hosted container image |
| Docker | No | Local containers | Local immutable image |
| E2B | No | Yes | Hosted template |
| HTTP cache | Yes | No | Any server with GET, HEAD, and PUT |
| LangSmith | No | Yes | Hosted snapshot in your LangSmith workspace |
| Microsandbox | No | Local micro-VMs | Local image |
| Northflank | No | Yes | Service-backed sandbox image |
| Object storage | Yes | No | Your S3, Google Cloud Storage, or Azure bucket |
| OpenSandbox | No | Yes, self-hosted | Your own sandbox service |
| Runloop | No | Yes | Hosted Devbox Blueprint |
| Sprites | Yes, optional retained cache | Yes | Disposable Fly.io Linux environments or a locked worker pool |
| Tensorlake | No | Yes | Hosted registered image or snapshot |
| Together Code Sandbox | No | Yes | Hosted snapshot |
| Vercel Sandbox | No | Yes | Hosted 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:
STRUO_CACHE_PROVIDER=local ./scripts/package-site.shFor 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#
- Available providers, to choose a shared cache or execution environment and follow its guide.
- Remote Execution, to run scripts and graph actions in fresh environments.
- Become an Infrastructure Provider, if you operate a cache service and want to integrate it with Struo.