Installation
Ktesio is a Rust CLI. It works on macOS, Linux, and Windows with no runtime dependencies beyond the operating system.
Prerequisites
- None for the installed binary. Rust is only required when installing through Cargo or from source.
Install with the installer
On macOS or Linux:
curl -fsSL https://cli.ktesio.dev/install.sh | shOn Windows with PowerShell:
irm https://cli.ktesio.dev/install.ps1 | iexThe installer preserves an existing Ktesio install channel when it can:
- Homebrew installs are updated with
brew upgrade ktesio/tap/ktesio. If you installed from the olderimagdy/taplocation, migrate once withbrew untap imagdy/tap && brew install ktesio/tap/ktesio. - Cargo installs are updated with
cargo install ktesio --force. - Manual binary installs are replaced in their existing writable directory.
For new macOS and Linux installs, the installer prefers Homebrew, then Cargo, then a prebuilt GitHub Release binary. For new Windows installs, it prefers Cargo, then a prebuilt GitHub Release binary.
Installer overrides:
KTESIO_INSTALL_METHOD=binary curl -fsSL https://cli.ktesio.dev/install.sh | sh
KTESIO_INSTALL_DIR="$HOME/.local/bin" curl -fsSL https://cli.ktesio.dev/install.sh | sh
KTESIO_INSTALL_DRY_RUN=1 curl -fsSL https://cli.ktesio.dev/install.sh | shKTESIO_INSTALL_METHOD accepts auto, brew, cargo, or binary on macOS
and Linux. Windows accepts auto, cargo, or binary.
The installer does not install Homebrew, Rust, or Cargo, and it writes no shell
profile entries. Git is not a runtime dependency. If it installs a binary into
a directory that is not on PATH, it prints the directory to add.
Install from source
git clone https://github.com/Ktesio/ktesio.git
cd ktesio
cargo install --path .Verify:
kt --version
kt --helpInstall from crates.io
cargo install ktesioThe crates.io package is named ktesio; it installs the kt binary.
Install from a release
Download the archive for your platform from GitHub Releases, then unpack it and place the kt binary on your PATH.
Release archives use this naming pattern:
ktesio-<tag>-<target>.tar.gz
ktesio-<tag>-<target>.zipEach release also includes .sha256 files and an aggregate checksum file.
Install with Homebrew
After a release is published to the Homebrew tap:
brew install ktesio/tap/ktesioThe formula installs the prebuilt macOS or Linux release archive for your platform.
Updating Ktesio
Ktesio checks GitHub Releases through an hourly cache when a subcommand runs. If a newer release is available, it prints a small stderr notice that asks you to run:
kt self-updatekt self-update preserves the current install channel automatically. Homebrew
installs upgrade with Homebrew, Cargo installs upgrade with Cargo, and manual
release installs download the latest GitHub Release archive, verify its
.sha256 checksum, and replace the current binary. A running agent keeps
executing the binary it was started with; restart it to pick up the new version.
Set KTESIO_NO_UPDATE_CHECK=1 to skip automatic update checks.
Uninstall
How to remove Ktesio depends on the install channel:
brew uninstall ktesio/tap/ktesio # Homebrew installs
cargo uninstall ktesio # Cargo installsFor a manual release install, delete the kt binary from the directory it was
installed into.
Uninstalling removes the binary only. Ktesio's own state is untouched: the state
directory (override KTESIO_STATE_DIR, otherwise the platform data dir) holds
state.db, instance Agent Homes, and any filesystem Memory Backing contents,
and <state dir>/secrets.toml holds any stored secrets. Delete the state
directory yourself if you want a fully clean removal — otherwise it is reused
if you reinstall.
Platform notes
- macOS may require Xcode Command Line Tools when building from source.
- Windows users building from source need the MSVC build tools (see Rust's Windows setup).
- Linux users may need standard build tools for Rust crates.