# sccache

> Shared compilation cache for C, C++, Rust and CUDA, stored locally or in the cloud

Source: https://talira.ai/catalog/sccache-3e1w9xr3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / build / caching](https://talira.ai/categories/developer-tools/build/caching), [languages / rust](https://talira.ai/categories/languages/rust), [languages / c cpp](https://talira.ai/categories/languages/c-cpp)
- Platforms: linux, macos, windows, cli
- Licence: Apache-2.0
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Backed by: [Mozilla](https://talira.ai/orgs/mozilla.md)

sccache is a [ccache](https://talira.ai/catalog/ccache-qm2ms2e1.md)-like compiler wrapper from Mozilla that avoids recompilation by caching results on local disk or in remote storage. It supports C/C++, Rust, assembler and CUDA (nvcc and clang). Storage backends include S3, R2, [Redis](https://talira.ai/catalog/redis-v917j45s.md), [Memcached](https://talira.ai/catalog/memcached-qjqvpryd.md), GCS, Azure, [GitHub Actions](https://talira.ai/catalog/github-actions-jgz14cgk.md) cache, WebDAV and others, with multi-level caching, and it also offers icecream-style distributed compilation.

## Links

- GitHub: https://github.com/mozilla/sccache
- Docs: https://github.com/mozilla/sccache/tree/main/docs

## Ways to install

### Package managers

- [WinGet](https://talira.ai/catalog/winget-g927bz13.md): <https://github.com/microsoft/winget-pkgs/tree/master/manifests/m/Mozilla/sccache>[^1]
- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/sccache>[^2]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/sccache>[^3]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/sccache>[^4]

## Problems it solves

- our CI recompiles the same C++ and Rust code on every single run
- share compiled objects between developers and CI machines through a cloud bucket
- set RUSTC_WRAPPER to something that skips compiling crates that haven't changed
- clean builds of our big Rust workspace take 20 minutes
- cache compiler output in Redis or S3 so ephemeral runners start warm
- distribute C++ compilation across a few beefy machines
- speed up GitHub Actions Rust builds using the Actions cache
- cache CUDA compilation results
- Docker builds in CI keep starting from zero compile time

## Features

- local disk cache
- S3/R2/GCS/Azure/Redis/Memcached/WebDAV backends
- GitHub Actions cache backend
- multi-level cache
- icecream-style distributed compilation
- Rust, C/C++, CUDA support

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.73 out of 1.
Signals: maintenance 1.00, adoption 0.78, momentum 0.54, community 1.00, backing 0.30, extensibility 0.20.

- last commit 9 days ago
- 218 commits in the last 90 days
- latest release v0.19.0 30 days ago
- 7.9k GitHub stars
- 336 contributors
- backed by Mozilla

## Alternatives

- [Kache](https://talira.ai/catalog/kache-j5q2h9jj.md): Build once. Reuse the work.
- [Mr Boxington (mbx)](https://talira.ai/catalog/mr-boxington-mbx-5hc8kes0.md): A shared cache for Cargo builds
- [ccache](https://talira.ai/catalog/ccache-qm2ms2e1.md): Compiler cache that speeds up C and C++ rebuilds
- [Swatinem/rust-cache](https://talira.ai/catalog/swatinem-rust-cache-y6eve8ad.md): A GitHub Action that implements smart caching for rust/cargo projects with sensible defaults.
- [cargo-chef](https://talira.ai/catalog/cargo-chef-77antavs.md): Cache the dependencies of your Rust project and speed up your Docker builds.
- [BuildBuddy](https://talira.ai/catalog/buildbuddy-2wqvdkj0.md): Open source Bazel build event viewer, result store, remote cache, and remote build execution platform.

## Sources

[^1]: https://github.com/mozilla/sccache/blob/main/README.md (checked 20 Nov 2026)
[^2]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^3]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^4]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
