Installation
Install script (recommended)
macOS & Linux
curl -fsSL https://raw.githubusercontent.com/GetKompile/kompile/main/install.sh | bashWindows (PowerShell)
irm https://raw.githubusercontent.com/GetKompile/kompile/main/install.ps1 | iexThe installer detects your OS/architecture (including Rosetta 2 on Apple Silicon), downloads the matching distribution from GitHub Releases, verifies its SHA-256 checksum, extracts it to ~/.kompile (%USERPROFILE%\.kompile on Windows), and adds bin/ to your shell PATH idempotently.
Override defaults with flags:
# pin a version, opt into the native binary, or skip shell PATH edits
curl -fsSL https://raw.githubusercontent.com/GetKompile/kompile/main/install.sh | bash -s -- \
--version 0.1.0-rc.1 --native --no-modify-path
# install a full/GPU distribution instead of the slim harness
curl -fsSL https://raw.githubusercontent.com/GetKompile/kompile/main/install.sh | bash -s -- \
--variant full --dir ~/.kompile# Windows: pin a version, opt into the native binary, or skip PATH edits
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/GetKompile/kompile/main/install.ps1))) `
-Version 0.1.0-rc.1 -Native -NoModifyPathVariants: Without --variant, the installer automatically selects cli-harness (defaulting to the portable cli-harness-any JBang zero-JDK archive, with --native / -Native available to opt into the native binary), and falls back to full then cli-only on older releases. Other variants include local-runtime (overlays local ML/embeddings/graph reasoning onto a cli-harness install via kompile install local-runtime), full (CLI + server/service JARs + bundled Java runtime), cli-only (CLI + chat handoff JAR), hosted, cpu-intel, cpu-arm, cuda, and amd-zluda. The ZLUDA variant defaults to ROCm 7.2.4; select ROCm 10 explicitly with --variant amd-zluda --backend-profile zluda-rocm-10.0.0.
Common flags (install.sh): --channel <prerelease|stable> (--prerelease / --stable), --version <v>, --variant <name>, --native, --jvm, --dir <path>, --no-modify-path (KOMPILE_MODIFY_PATH=0), --doctor (run kompile doctor after install).
Update an installed distribution
kompile update --check # ping for updates on the active channel
kompile update # download, verify, and install it
kompile update --channel stable --check # check stable releases only
kompile update channel # show active release channel and startup-check status
kompile update channel stable # persist the stable channel (~/.kompile/config/update.json)
kompile update channel prerelease # switch back to prerelease (current default)
kompile update channel --startup-check off # disable automatic startup update pings
kompile update --version 0.2.0 # select an exact release
kompile update --version 0.2.0 \
--url file:///srv/kompile/releases # custom mirror or local build outputRelease channels & startup update pings: Kompile supports prerelease (the current default while release candidates are active) and stable (non-prerelease versions only). You can override the channel per command with --channel <prerelease|stable> (or --prerelease / --stable), via the KOMPILE_UPDATE_CHANNEL environment variable, or persist it with kompile update channel <name>. Interactive managed CLI sessions (kompile chat, interactive commands) automatically ping for updates at most once every 24 hours in the background (cached in ~/.kompile/cache/update-check.json, zero startup latency, skipped in CI, non-TTY, JSON, and MCP protocol modes). Opt out with KOMPILE_NO_UPDATE_CHECK=1 or kompile update channel --startup-check off.
kompile update reads .dist-info.json from the active installation root and preserves its exact variant, platform, backend profile, and distribution classifier. It never falls back from CUDA/ZLUDA to CPU or from full to cli-only. Update archives require both the external SHA-256 sidecar and a valid internal manifest.sha256; mutable state under config/, data/, models/, components/, fact-sheets/, archives/, and anserini/ is preserved. Implicit updates never downgrade; use --force only to replace a locally modified managed payload or reinstall the current version.
Windows currently supports kompile update --check only. Close Kompile and run the installer with the reported version/variant to apply an update; the command fails rather than passing native Windows paths through an unsafe MSYS replacement flow.
The command updates complete distributions installed by this script or manually extracted from a release archive. Other loading mechanisms retain their own lifecycle:
| How Kompile is loaded | Update action |
|---|---|
| GitHub archive / install script | kompile update |
Custom HTTPS mirror or local file: archive directory | kompile update --version <v> --url <base> |
| JBang stable-JAR alias | Refresh the catalog/version reference and relaunch the alias |
Source checkout, Maven execution, or install.sh --dev | Rebuild, then rerun the development install |
| Docker image | Pull the desired image/tag and recreate the container |
| Individually installed component | Reinstall that component with kompile install ... --force |
A CLI without managed .dist-info.json fails closed and prints this guidance rather than guessing which distribution lane to install.
Managing Kompile harness tiers & versions
Portable JBang (default) vs. Native binary
The default cli-harness install downloads cli-harness-any (portable shaded JARs + jbang-catalog.json). On launch, bin/kompile / bin/kompile.cmd reuses any system or cached Java 21 runtime — or auto-bootstraps Java 21 via JBang into ~/.kompile/runtime/jbang on first run (set KOMPILE_NO_AUTO_JAVA=1 to disable automatic Java download).
# Default: portable JBang zero-JDK archive (cli-harness-any)
curl -fsSL https://raw.githubusercontent.com/GetKompile/kompile/main/install.sh | bash
# Opt into the GraalVM native binary (faster cold start, lower RSS)
curl -fsSL https://raw.githubusercontent.com/GetKompile/kompile/main/install.sh | bash -s -- --native
# Switch back to portable JBang explicitly
curl -fsSL https://raw.githubusercontent.com/GetKompile/kompile/main/install.sh | bash -s -- --jvm --force
# Run directly from GitHub Releases via JBang without installing
jbang kompile@getkompile/kompile --helpYou can also set KOMPILE_HARNESS_TIER=jvm or KOMPILE_HARNESS_TIER=native in your environment.
Pinning, rolling back, or running versions side by side
# Pin or switch to a specific release version
curl -fsSL https://raw.githubusercontent.com/GetKompile/kompile/main/install.sh | bash -s -- \
--version 0.1.0-rc.1 --force
# Keep an isolated test version alongside your primary ~/.kompile install
curl -fsSL https://raw.githubusercontent.com/GetKompile/kompile/main/install.sh | bash -s -- \
--version 0.1.0-rc.1 --dir ~/.kompile-rc --no-modify-path
~/.kompile-rc/bin/kompile --version
# Install directly from a local source checkout (copies latest shaded/exec JARs to lib/)
bash install.sh --devTo add optional platform overlays onto an existing cli-harness install without reinstalling the CLI:
kompile install local-runtime # local embeddings, dense search & graph reasoning
kompile install kompile-app # full admin/chat/crawl web apps
kompile install model-staging # standalone model-staging serverInstalling & managing external CLI harnesses (/install)
Kompile can orchestrate and inject MCP tools into external coding CLIs (Claude Code, Codex, Gemini, OpenCode, Antigravity, and Pi). Rather than repackaging those CLIs, Kompile runs each vendor's official installer from cli-agents.json, streams installer output directly in chat, verifies the resulting binary, and prints the vendor's sign-in command.
In-chat /install command
Works inside both Standard and Passthrough kompile chat sessions:
/install # list every harness with installed/missing status and open a picker
/install claude # install Claude Code via its official installer
/install codex # install OpenAI Codex CLI
/install opencode # install OpenCode
/install agy # install Antigravity CLI
/install gemini # install Gemini CLI
/install pi # install Pi coding agent
/install claude --force # rerun the vendor installer to upgrade or repair an existing install| Harness | Command | macOS / Linux install (cli-agents.json) | Windows PowerShell install | Sign-in command |
|---|---|---|---|---|
| Claude Code | claude | curl -fsSL https://claude.ai/install.sh | bash | irm https://claude.ai/install.ps1 | iex | claude auth login |
| Codex | codex | curl -fsSL https://chatgpt.com/codex/install.sh | sh | irm https://chatgpt.com/codex/install.ps1 | iex | codex login |
| Antigravity | agy | curl -fsSL https://antigravity.google/cli/install.sh | bash | irm https://antigravity.google/cli/install.ps1 | iex | kompile auth login agy |
| OpenCode | opencode | curl -fsSL https://opencode.ai/install | bash | npm install -g opencode-ai | opencode auth login |
| Pi | pi | npm install -g @earendil-works/pi-coding-agent | npm install -g @earendil-works/pi-coding-agent | pi |
| Gemini | gemini | npm install -g @google/gemini-cli | npm install -g @google/gemini-cli | gemini |
See Installable Client Harnesses for a full overview of how Kompile drives each installed CLI as a client (first-class native/passthrough routes, MCP & tool-guard integration, and generic ACP v1 presets).
On-demand auto-install vs. manual mode
By default, selecting or delegating to an uninstalled harness that declares a vendor installer downloads it automatically in-harness on first use. For air-gapped machines or strictly manual control, disable on-demand downloads and run /install <agent> only when you want to install or upgrade a CLI:
export KOMPILE_DISABLE_AUTO_INSTALL=1
# or pass JVM property: -Dkompile.harness.autoInstall=falseManual download
Download the archive for your platform from GitHub Releases. Archives are named:
kompile-dist-<version>-<variant>-<release-lane>.<ext>The release lane begins with <os>-<arch> and retains backend qualifiers when present; for example, ROCm 10 uses kompile-dist-0.1.0-amd-zluda-linux-x86_64-cuda-12.9-zluda-rocm-10.0.0.tar.gz. Here os ∈ {linux, macosx, windows}, arch ∈ {x86_64, arm64}, and ext is zip for every archive. The cli-only archives and the Linux x86_64 full archive are also published as tar.gz, which the install script prefers on Linux and macOS. For example:
| Platform | Example archive |
|---|---|
| Linux x86_64 | kompile-dist-0.1.0-cli-only-linux-x86_64.tar.gz |
| Linux ARM64 | kompile-dist-0.1.0-cli-only-linux-arm64.tar.gz |
| macOS Apple Silicon | kompile-dist-0.1.0-cli-only-macosx-arm64.tar.gz |
| Windows x86_64 | kompile-dist-0.1.0-cli-only-windows-x86_64.zip |
| Android ARM64 C SDK | kompile-cli-mobile-aot-0.1.0-android-arm64.zip (Embeddable Mobile Harness) |
Extract and add bin/ to your PATH:
tar xzf kompile-dist-*-linux-x86_64.tar.gz
export PATH="$PWD/kompile-*/bin:$PATH"
# Verify
kompile --versionEach archive ships a matching .sha256; verify with sha256sum -c <archive>.sha256. For the hosted variant, native libraries auto-resolve from the adjacent lib/ directory — no environment variables or setup needed.
Bootstrap (from source checkout)
If you are building from source, the CLI can install its own dependencies:
# Initialize Kompile directory (~/.kompile)
kompile bootstrap
# Install all dependencies (GraalVM, Maven, Anaconda)
kompile install all
# Install specific components
kompile install graalvm
kompile install pythonDocker
# Run CLI in container
docker run --rm -it konduitai/kompile
# Run interactively with mounted volume
docker run --ulimit nofile=98304:98304 \
--rm -it \
-v $(pwd):/mnt/:Z \
--entrypoint /bin/bash konduitai/kompileFirst-time configuration
After installation, initialize the config directory and run the interactive wizard:
kompile configure init # Creates ~/.kompile/ and default config files
kompile configure app # Interactive 9-section config wizardOr configure individual areas:
kompile configure chat # Chat session mode, LLM provider, agent preferences
kompile configure mcp # MCP profile and schema level
kompile configure enforcer # Per-project policy rules