Never build software twice.

Cachix stores every Nix build once, so your engineers, CI pipelines and AI agents download it in seconds instead of rebuilding it.

No per-seat fees · Hosted in the EU or on your own infrastructure

Widely used by the Nix community

From open source projects to established businesses.

Developers
18,020
Transferred last month
1.1 PB
Binary caches
11,955
serving Nix teams since
2018

Reproducible builds are worth reusing

Nix lets you reproduce a build across environments. A fresh runner can still end up compiling dependencies from the last run. With a shared cache, it downloads the build results your team already produced.

  • Faster builds and setup

    Download binaries when you set up a project or a job starts with an empty Nix store.

  • Less CI compute

    Reuse dependencies across jobs and spend fewer runner minutes compiling the same inputs.

  • Less cache maintenance

    Cachix handles storage, garbage collection, and delivery for hosted caches.

Get started in three steps

  1. Create a cache

    and set up a public or private cache.

  2. Connect your CI

    Use a CI integration to push build results from your pipeline.

  3. Reuse builds

    Configure Nix to use the cache on developer machines, CI runners, and coding-agent sessions.

Try the cache commands

~/myproject

$  

Pushing needs a token from your cache settings: cachix authtoken TOKEN

Everything you need to share binaries

Set up your Nix infrastructure in a few minutes and avoid maintenance work.

  • Garbage collection

    When your cache reaches its storage limit, the least recently used entries are removed.

  • Access management

    Give team members read or write access to a cache. Revoke their tokens at any time.

  • New

    Upstream caches

    Pick caches like cache.nixos.org or nix-community. Paths they already have are never uploaded to yours.

  • Fast

    A number of optimizations speed up every round trip to the binary cache.

  • Content delivery network

    Cloudflare CDN serves your binaries fast, with unlimited bandwidth on all plans.

  • Continuous integration guides

    Learn how to set up Cachix with your CI and start sharing binaries.

Cache every CI run

Each CI job pushes what it builds. The next job downloads it instead of building it again.

.github/workflows/build.yml
name: Build
on: push
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: cachix/install-nix-action@v32
      - uses: cachix/cachix-action@v17
        with:
          name: mycache
          authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}      - run: nix build

Give coding agents a warm cache

Coding agents often start in a clean environment. Have CI push the dependencies they need to Cachix. Both Nix and devenv can download those prebuilt dependencies when a fresh session starts.

For a private cache, give agents a token with read access.

Nix flakes
cachix use mycache
nix develop
devenv
cat devenv.nix
{
  cachix.pull = [ "mycache" ];
}
devenv shell

Running Nix at scale?

Self-host Cachix or work with us on a custom deployment. Get single sign-on, audit logs, and dedicated support.

Explore Enterprise

Ready to get started?

Get in touch or create an account.