Skip to content

Installation

ka agent ships as a prebuilt binary (Linux, macOS, and Windows x86_64). The ka-* engine crates are pinned to one ka-harness git revision (247e99e, the v0.7.0+ line noted in Cargo.toml), so the build is reproducible and doctor reports the pin as KA_PIN.

Terminal window
curl -fsSL https://ka-agent.com/install.sh | sh

On Windows (PowerShell):

Terminal window
irm https://raw.githubusercontent.com/jaltez/ka-agent/main/scripts/install.ps1 | iex

ka-agent.com/install.sh is a stable redirect to the install script in the repository (scripts/install.sh). The installer puts ka-agent in ~/.local/bin by default. Knobs (all optional):

  • KA_AGENT_INSTALL_DIR: target directory;
  • KA_AGENT_NO_SETUP=1: install only, skip the wizard;
  • KA_AGENT_INSTALL_FROM=<tarball>: install from a local tarball instead of fetching.
Terminal window
git clone https://github.com/jaltez/ka-agent.git && cd ka-agent
cargo install --path apps/ka-agent

The workspace denies unwrap/expect/todo/unimplemented/dbg and forbids unsafe; CI runs fmt, clippy, tests and the dependency gate on Linux and macOS, and builds the release binary on Windows.

Terminal window
ka-agent

On a fresh install this is the setup wizard (about three minutes): it picks a provider, verifies the API key live, picks a model, detects your timezone, offers to pair Telegram or Matrix with a one-time code, offers web search, offers to install the background service, and ends with a real first reply and a “you’re live” card. Nothing is written until you confirm.

Sections can be re-run individually:

Terminal window
ka-agent setup # the whole wizard again
ka-agent setup model # one section: all | model | telegram | matrix | service | search | briefing | voice
ka-agent setup --yes # non-interactive: every prompt takes its default

Config is explicit by rule: a missing or invalid config is an error pointing at ka-agent setup, never a silent default.

Everything lives under ~/.ka-agent (override with $KA_AGENT_HOME), like other agents, created 0700:

~/.ka-agent/
config.toml # the default profile's config ($KA_AGENT_CONFIG overrides)
skills/ # your SKILL.md library (shared by all profiles)
active_profile # written by `ka-agent profile use`
profiles/default/ # data for the default profile
workspace/ state.db memory/ secrets/ backups/ logs/ …
users/<name>/ # one account's disjoint tree (memory, workspace, notes, …)

$KA_AGENT_DATA_DIR replaces the data root wholesale (tests, service units). A pre-0.3 install (~/.local/share/ka-agent + ~/.config/ka-agent) moves itself to the new layout on the next run. Team installs migrate too: pre-team roles/<name>/ trees move under users/<name>/ once on first start (see users & accounts).

Terminal window
ka-agent update check # is there a newer release?
ka-agent update # download, verify, swap, restart the service(s)

The checksum must match before anything moves; a mismatch installs nothing. status and doctor show “update available” once a newer release exists.

Terminal window
ka-agent import hermes # also: openclaw, claude, codex

Imports respect the rules: another agent’s memory arrives as candidates you accept one by one, and skills land in the shared library.

Platform Status
Linux First-class: systemd user units, bubblewrap plugin sandbox.
macOS Supported: launchd service; plugins need Linux (they use bubblewrap).
Windows Supported (x86_64): the admin endpoint is a named pipe, the service is a Task Scheduler entry, workers are killed with taskkill /T, and the terminal chat uses the console API (line mode where raw mode is unavailable). Plugins are refused: they need Linux.
Terminal window
ka-agent doctor # one line per check, each with the fix; exit 1 = fix something
ka-agent doctor --online # also verify keys and tokens live; one real request to the model

doctor reports the version, the ka pin, the contract-suite hash (sha256 of the sixteen embedded docs/contract/*.md the binary shipped with), config presence and validity, data/state/workspace state (including tree permissions), the provider-key count, web-search and tool keys, git presence (memory is git-backed), the bubblewrap version, skills, identities, plugins, and the last backup age.