# Kache

> Build once. Reuse the work.

Source: https://talira.ai/catalog/kache-j5q2h9jj
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)
- Platforms: macos, linux, windows, cli[^2][^3]
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1][^2]
- Free tier: yes[^1][^2]
- Self-hostable: yes[^2]
- Backed by: [Kunobi](https://talira.ai/orgs/kunobi.md)

Kache is a compiler cache for Rust, C/C++ and CUDA that restores matching compiler outputs across git worktrees and CI runs. Outputs are stored once in a content-addressed cache with a disk budget, and on filesystems with copy-on-write cloning (APFS, btrfs) restored files share disk blocks with the cache instead of being copied. A background daemon dedupes identical in-flight compiles and paces compiler processes, and caches can be shared through S3-compatible storage, GCS, a shared filesystem or an OCI registry. `kache explain` and `kache monitor` show why a build missed the cache.

## Links

- Website: https://kunobi.ninja/kache
- GitHub: https://github.com/kunobi-ninja/kache
- Docs: https://ninja.kunobi.com/docs/kache

## Problems it solves

- every extra worktree of the same repo costs another 16 GB of build output
- building the same revision in two worktrees rebuilds all the crates twice
- the same compiled bytes are stored again in every checkout's target directory
- running three cargo builds at once makes my laptop grind to a halt
- CI rebuilds every dependency on every run even though nothing changed
- I want to know why my build missed the cache and recompiled a crate
- parallel coding agents each building their own copy of the project fill my SSD
- cache C++ and CUDA object compilation without changing my Makefile
- keep build outputs under a fixed disk budget instead of cleaning by hand
- share Rust build artifacts between CI runners through an S3 bucket
- switching git branches back and forth makes cargo recompile crates it already built

## Features

- reuse across worktrees with different paths
- APFS/btrfs copy-on-write restores
- disk budget for the store
- dedupe identical in-flight compiles
- compiler process pacing
- remote cache on S3, GCS, shared filesystem or OCI registry
- miss explanations (kache explain)
- live TUI monitor
- GitHub Action
- GCC, Clang, clang-cl and CUDA object caching

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.70 out of 1.
Signals: maintenance 1.00, adoption 0.63, momentum 0.66, community 0.62, backing 0.50, extensibility 0.20.

- last commit 9 days ago
- 806 commits in the last 90 days
- latest release v2.1.1 11 days ago
- 1.4k GitHub stars
- fast-growing: 1.4k stars in 9 months
- 34 contributors
- backed by Kunobi
- recommended in 2 public posts (LankyLingonberry2532, Nathan Broadbent), over shared CARGO_TARGET_DIR / build-dir

## Recommended by

- “Why not use kache?” LankyLingonberry2532, reddit, 2026-11-13: https://www.reddit.com/r/rust/comments/1xurvlo/comment/19sjsybwj7txc/
- “a new worktree's builds take 14 seconds and add 2 GB, on stable Cargo” Nathan Broadbent (DocSpring), blog, 2026-11-13: https://docspring.com/blog/posts/rust-git-worktrees-kache/

## What people say

- Mr Boxington's README says kache directly inspired its design: https://github.com/jdx/mr-boxington

## Alternatives

- [Mr Boxington (mbx)](https://talira.ai/catalog/mr-boxington-mbx-5hc8kes0.md): A shared cache for Cargo builds
- [sccache](https://talira.ai/catalog/sccache-3e1w9xr3.md): Shared compilation cache for C, C++, Rust and CUDA, stored locally or in the cloud
- [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-sweep](https://talira.ai/catalog/cargo-sweep-4ba8ja0v.md): A cargo subcommand for cleaning up unused build files generated by Cargo

## Sources

[^1]: https://github.com/kunobi-ninja/kache/blob/main/LICENSE (checked 17 Nov 2026)
[^2]: https://github.com/kunobi-ninja/kache (checked 17 Nov 2026)
[^3]: https://ninja.kunobi.com/kache (checked 17 Nov 2026)
