Calkit makes it easy to create
single-button reproducible
research projects.
Instead of a loosely related collection of files
split across multiple systems or apps,
"integrated" via manual steps,
your project becomes a version-controlled, self-contained "calculation kit"
tying together literature review, planning, data collection,
analysis, and writing,
so you, your collaborators, and your readers can verify the full
chain from raw data to
research article with a single command.
This enables faster, more confident, and more frequent iteration,
which in turn produces
higher quality results.
It also makes it easy to check the work of an AI agent,
i.e., that the outputs it produced as evidence to answer research questions
came from a transparent,
deterministic pipeline, not hallucinations.
Calkit also makes it natural to keep all stages of a research project
together in the
same repository, providing full context to both humans and AI agents.
This is important because the stages are tightly coupled.
A change in a dataset requires reanalyzing,
which creates a change in a figure,
which creates a change in a research article.
Coupled components belong close together and connected,
and cross-stage iteration is enabled by integration.
Software teams learned the importance of integration long ago,
unifying design, development, testing, deployment, and infrastructure
in the same repo, often within the same team,
with automation across the entire lifecycle.
Research can benefit in similar ways.
Why Calkit?
The tools to create single-button reproducible
research projects already exist, e.g.,
version control with Git,
environment management with uv,
Make for a build system or pipeline,
and LaTeX for document compilation.
If you and your team can work effectively with a system like that,
there's no need for any additional complexity.
However, these practices are still not common,
resulting in most compendiums
failing to reproduce.
Many still silo the code away from the data,
and the analysis from the writing.
Many are instead "multi-button"
and irreproducible because their stages are not connected
and important setup or execution information is omitted.
There are additional challenges:
- Computationally expensive steps may need to be run on a high-performance
computing (HPC) cluster.
Automating the transfer of data to and from there requires additional
work,
and it becomes important to use a
content-aware pipeline system, otherwise steps are inefficiently repeated
or mistakenly skipped.
- Large data files need to be kept in version control along with the rest.
A typical solution may involve siloing data files away on a shared cloud
or physical hard drive,
requiring custom syncing scripts to avoid manual uploads and downloads.
Again,
the tools to solve these problems do exist:
Snakemake, Nextflow, or DVC for pipelines;
Git LFS, git-annex, or DVC for data version control,
but they all require significant setup and training.
At this point, you're looking at half a dozen subsystems to integrate
and upskill the team to use,
essentially requiring many to become de facto software engineers
to contribute.
What happens in reality is that the costs are deemed too high
and the benefit too low, so
workflows remain manual and fragmented,
and many team members are not able to contribute to
their full potential.
Calkit solves these by providing a fully integrated experience
built from the open source components that would typically
comprise such a workflow.
Everything is connected right out of the box,
with a command line interface (CLI), web app, and more
to reduce friction for every task and team member involved.
The integration is transparent without lock-in,
so the underlying software engineering-oriented
tools can be used directly by
team members more comfortable with them,
and others can contribute at a higher level
while maintaining single-button reproducibility and frictionless,
seamless iteration.
Additionally, the Calkit project information format,
saved in calkit.yaml,
gives a full picture of the project:
its research questions, artifacts
generated as evidence to answer them,
and a way to fully verify everything back to its origin.
There's no mystery about where a certain figure or table came from,
and whether or not it's stale with respect to its input data,
which is a critical feature to have when using generative AI.
Features
- Research questions and answers as the front door to a
project.
Each answer cites its evidence, with numbers read from results files
rather than typed in, and leads back through the pipeline to the code and
data behind it.
Answers whose evidence has changed are flagged,
and people can sign off on answers, with sign-offs that lapse when the
evidence moves,
so a project can be checked a little at a time as the work goes,
rather than all at once at the end.
- A simplified version control
interface that unifies Git and DVC (Data Version Control),
so everything can be kept in the same project repository.
This way, code doesn't need to be siloed away from other
important artifacts like datasets, models, figures, or article PDFs,
allowing you to work on all parts of a project without hopping around to
different tools.
- Computational environment management with support for many
languages and environment managers: Conda, Docker, uv, Julia, Renv, and more.
No need to create and update environments on your own. Calkit will handle
them as needed.
- An environment-aware build system or pipeline with
a simple declarative syntax and
output caching so you don't need to think about which steps or stages
need to be rerun after changing any part of the project.
Simply call
calkit run.
Compose your pipeline from many different kinds of stages,
including simple scripts, commands, Jupyter Notebooks, LaTeX, and more.
- Tools to automatically build a reproducible pipeline from work you're
already doing.
Run a script, notebook, or LaTeX document with
calkit xr
and it will be added as a pipeline stage,
with its environment, inputs, and outputs detected automatically.
This way, an existing project can be made reproducible
one step at a time.
- A complementary self-hostable and GitHub-integrated
hub
web app to facilitate backup, collaboration,
and sharing throughout the entire research lifecycle.
- Overleaf integration, so
analysis, visualization, and writing can all stay in sync
(no more manual uploads!).
- Support for running on high performance computing (HPC) systems
that use PBS or SLURM schedulers.
- Support for automated running with
GitHub Actions.
- Extensions for doing all of the above graphically in
JupyterLab and
VS Code.
- A browser extension for collecting references
directly to BibTeX (optionally synced with Zotero),
viewing DVC-stored files on GitHub,
and syncing figures and results with Overleaf directly in Chrome,
Microsoft Edge, and more.
Installation
On Linux, macOS, or Windows Git Bash,
install Calkit and uv
(if not already installed) with:
curl -LsSf install.calkit.org | sh
Or with Windows Command Prompt or PowerShell:
powershell -ExecutionPolicy ByPass -c "irm install-ps1.calkit.org | iex"
Both install shell completion for calkit and ck.
To also link this machine to the hub,
which connects its workspaces to it,
pass --link:
curl -LsSf install.calkit.org | sh -s -- --link
powershell -ExecutionPolicy ByPass -c "& ([scriptblock]::Create((irm install-ps1.calkit.org))) --link"
Pass --no-shell-completion to skip installing shell completion.
The scripts also let the browser extension work
with projects on this machine; pass --no-browser to skip that.
If you already have uv installed, install Calkit with:
uv tool install calkit-python
You can also install with your system Python:
pip install calkit-python
To effectively use Calkit, you'll want to ensure Git
is installed and properly configured.
You may also want to install Docker,
since that is the default method by which LaTeX environments are created.
If you want to use a Calkit hub
for collaboration and backup as a DVC remote,
you can connect to the hub with:
calkit hub login
If you use AI agents like Claude, Copilot, or Codex,
see AI tools
to learn how to install agent skills for working with Calkit.
Upgrading
Calkit checks for a new version once a day.
If it was installed with uv, as above, or pipx,
it upgrades itself in the background,
so your next command runs on the new version
and starts by telling you which version that is.
Otherwise, it tells you a new version is available.
While Windows Smart App Control is on,
it only tells you,
since Smart App Control could block files an upgrade brings in.
To be told about new versions but not upgrade automatically, run:
calkit config set auto_upgrade false
To stop checking for new versions altogether, run:
calkit config set auto_upgrade no-check
To upgrade by hand at any time, run:
calkit upgrade
Use without installing
If you want to use Calkit without installing it,
you can use uv's uvx command to run it directly:
uvx ck9 --help
Nix
Calkit ships a flake at the root of
its repo, so Nix users can pull the CLI into their
environments alongside their other tools.
Run it ad hoc without installing:
nix run github:calkit/calkit -- --help
Drop into a shell that has calkit, git, and uv on PATH:
nix shell github:calkit/calkit
Add it to your own flake.nix as an input:
{
inputs.calkit.url = "github:calkit/calkit";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs, calkit }: {
devShells.x86_64-linux.default =
nixpkgs.legacyPackages.x86_64-linux.mkShell {
packages = [ calkit.packages.x86_64-linux.default ];
};
};
}
Then nix develop will give you a shell with the Calkit CLI ready to
use. To pin a specific Calkit release inside the shell, set the
CALKIT_VERSION environment variable (e.g. CALKIT_VERSION=0.41.0)
before invoking calkit.
The flake is currently a thin wrapper around uvx --from calkit-python calkit. It depends on uv from nixpkgs and fetches the published
wheel from PyPI on first use. This trades a fully Nix-native build for
zero version-drift maintenance, and avoids the macOS docx2pdf /
appscript and JupyterLab labextension build issues that block a pure
nixpkgs derivation today. If you want a fully nixpkgs-native build,
see the community calkit-nix
flake.
Nix isn't supported natively on Windows; run Calkit inside
WSL2 and use
the flake there.
Running against a specific version
If a project requires a Calkit version other than the one you have
installed, use the top-level --use-version flag to re-invoke the CLI
under that release without changing your installation:
calkit --use-version 0.38 run
This re-execs the CLI via uvx --from calkit-python@<version> calkit,
so it requires uv on PATH.
You can also declare a minimum version in calkit.yaml;
see
Pinning the Calkit CLI version.
Calkit Assistant
For Windows users, the
Calkit Assistant
app is the easiest way to get everything set up and ready to work in
VS Code, which can then be used as the primary app for working on
all scientific or analytical computing projects.
Download the executable from the latest
assistant release.

Windows Smart App Control
Smart App Control is a Windows 11 security feature
that blocks programs and libraries it can't verify,
either by a trusted signature
or by Microsoft's cloud-based reputation service.
Many of the files Calkit and Python environments rely on aren't signed,
e.g., the calkit.exe launcher uv creates,
the Python interpreters uv downloads,
and compiled modules in packages like pandas or h5py,
so Smart App Control may block them.
Since its decisions come from a cloud service,
a file that ran yesterday can be blocked today.
Signs that Smart App Control blocked something include:
- A "Part of this app has been blocked" notification from Windows Security,
e.g., when VS Code starts Calkit.
- uv reporting that querying Python failed with exit status
0xc0e90002.
- Python failing to import a compiled module with
An Application Control policy has blocked this file.
Calkit links here when it sees one of these,
or when an environment fails to build while Smart App Control is on.
To see whether it's on, open Windows Security
and go to App & browser control > Smart App Control settings.
It only blocks files when set to On, not in Evaluation mode.
To get Calkit running again,
uninstall and reinstall it,
since uv tool install --reinstall can fail on the blocked Python
before it gets to reinstalling it:
uv tool uninstall calkit-python
uv tool install calkit-python
To rebuild a project environment with a blocked file, run:
calkit check env -n {environment name} --force
If blocks keep coming back,
turn Smart App Control off in the same settings page.
Depending on your version of Windows,
you may not be able to turn it back on without resetting Windows.
On a computer your organization manages,
an App Control policy set by your IT department can cause the same errors,
so ask them to allow the files instead.
Quickstart
[!NOTE]
ck is an abbreviated alias for the calkit executable.
All calkit commands can be run as ck instead, e.g., ck save -am "...".
Research projects exist to answer questions.
They involve collecting data,
analyzing it,
creating figures and calculating numbers,
and finally writing about the answers and why they make sense.
Here we'll see what's involved in setting that up.
Create a project
First, create a project from a template:
calkit new project phd \
--title "PhD research" \
--template calkit/example-basic
The title can be changed later, but the name is more difficult to change,
so it's a good idea to keep the name general.
A single project can hold multiple investigations,
e.g., a grad student might use one project for their entire PhD,
with a question and a paper for each study.
Add the --hub flag to create the project on
a Calkit hub for backup and sharing.
This requires an account,
but can be set up later,
so we'll leave it off for now.
Look at the question
Open up calkit.yaml.
Near the top you'll see the project's research question: