Skip to content

Installation

Choose a native binary for the CLI alone, or install the Python package for both the CLI and SDK. Installed wheels include the native code and tokenizer tables.

Native CLI

Download the archive for your platform from GitHub Releases, extract it, and put contextcraft or contextcraft.exe on your PATH.

Release archives cover x86-64 and ARM64 on Linux, macOS, and Windows. Linux CLI binaries use static musl linking, and macOS builds target version 13 or later. The release's SHA256SUMS file lists the archive checksums.

Shell
contextcraft --version
contextcraft --help

Python CLI

With uv, install the command as a tool:

Shell
uv tool install 'contextcraft-ai[cli]'
contextcraft --version

To run without installing a persistent tool environment:

Shell
uvx --from 'contextcraft-ai[cli]' contextcraft . --budget 8000 -o context.md

The package requires Python 3.12 or newer. The cli extra installs Click, and python -m contextcraft runs the same Python interface as contextcraft. Both use the native Zig library for analysis and generation.

Python SDK

Add the SDK with uv or pip:

Shell
Shell
uv add contextcraft-ai

Building from a source distribution requires Zig 0.17.1 and access to the pinned dependency sources. See Contributing for repository development commands.

Continue with generate your first context, or use the Python quick start to integrate the SDK.