İçeriğe geç

Installation

Bu içerik henüz dilinizde mevcut değil.

Install Khadim where you want to run the CLI agent. The npm package is the recommended path for most users because it installs the khadim command and downloads the matching native binary.

Install Khadim globally:

Terminal window
npm install -g @unravelai/khadim

Confirm the command is available:

Terminal window
khadim --version

The npm package exposes both khadim and khadim-cli.

Use the installer script when you want a direct native binary install:

Terminal window
curl -fsSL https://raw.githubusercontent.com/unravelaidk/khadim/main/apps/khadim-cli/scripts/install.sh | bash

Install from prebuilt release artifacts:

Terminal window
KHADIM_CLI_INSTALL_METHOD=prebuilt \
curl -fsSL https://raw.githubusercontent.com/unravelaidk/khadim/main/apps/khadim-cli/scripts/install.sh | bash

Build from source through the installer:

Terminal window
KHADIM_CLI_INSTALL_METHOD=source \
curl -fsSL https://raw.githubusercontent.com/unravelaidk/khadim/main/apps/khadim-cli/scripts/install.sh | bash

Prebuilt binaries are published on the Khadim releases page for cli-v* tags.

Download the archive for your platform, unpack it, and put the binary on your PATH.

Build from source when you are contributing or testing unreleased changes:

Terminal window
git clone https://github.com/unravelaidk/khadim.git
cd khadim
cargo build --release --manifest-path apps/khadim-cli/Cargo.toml

The release binary is created at:

apps/khadim-cli/target/release/khadim-cli

Khadim itself needs a provider credential before the agent can call a model. Development from source also needs Rust and Bun.

Use caseRequirements
npm installNode.js 18 or newer
native binaryA supported Linux or macOS platform
source buildRust latest stable
workspace developmentRust latest stable and Bun

Continue with First steps to run your first interactive and headless tasks.