Installation
เนื้อหานี้ยังไม่มีในภาษาของคุณ
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 with npm
Section titled “Install with npm”Install Khadim globally:
npm install -g @unravelai/khadimConfirm the command is available:
khadim --versionThe npm package exposes both khadim and khadim-cli.
Install with the script
Section titled “Install with the script”Use the installer script when you want a direct native binary install:
curl -fsSL https://raw.githubusercontent.com/unravelaidk/khadim/main/apps/khadim-cli/scripts/install.sh | bashInstall from prebuilt release artifacts:
KHADIM_CLI_INSTALL_METHOD=prebuilt \ curl -fsSL https://raw.githubusercontent.com/unravelaidk/khadim/main/apps/khadim-cli/scripts/install.sh | bashBuild from source through the installer:
KHADIM_CLI_INSTALL_METHOD=source \ curl -fsSL https://raw.githubusercontent.com/unravelaidk/khadim/main/apps/khadim-cli/scripts/install.sh | bashDownload a release
Section titled “Download a release”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
Section titled “Build from source”Build from source when you are contributing or testing unreleased changes:
git clone https://github.com/unravelaidk/khadim.gitcd khadimcargo build --release --manifest-path apps/khadim-cli/Cargo.tomlThe release binary is created at:
apps/khadim-cli/target/release/khadim-cliRequirements
Section titled “Requirements”Khadim itself needs a provider credential before the agent can call a model. Development from source also needs Rust and Bun.
| Use case | Requirements |
|---|---|
| npm install | Node.js 18 or newer |
| native binary | A supported Linux or macOS platform |
| source build | Rust latest stable |
| workspace development | Rust latest stable and Bun |
Next steps
Section titled “Next steps”Continue with First steps to run your first interactive and headless tasks.