Skip to content

Installation

You can install Hya with a single command on Linux (x86_64 or ARM64) and macOS (Apple silicon M1/M2/M3/M4). On Windows, Hya runs inside WSL 2 (Ubuntu or Debian).

The installer verifies and installs the Hya core (hya-bare, shipped as bin/hya), migration CLI, terminal UI, browser WebUI, and Bun from a release archive. It then installs the official default distribution profile so the standard tools, skills, and model providers are available. Hya verifies official registry packages with Sigstore. You can install without a local Rust, Node, or Bun installation.


Upgrading from 0.52.0 or earlier

To upgrade to 0.52.2, run the updated installer once. This release moves built-in bundles out of the release archive. The installer installs hya-bare and then installs the default bundle profile from the registry.

Terminal window
curl -fsSL https://hya.ed-aisys.com/install.sh | sh

Install on Linux or macOS

Open your terminal and run:

Terminal window
curl -fsSL https://hya.ed-aisys.com/install.sh | sh

This puts Hya inside ~/.local (~/.local/bin/hya). It never touches system folders or asks for sudo, and it does not edit your shell config files behind your back.

If the installer tells you ~/.local/bin is not on your PATH, add it to your shell profile (~/.zshrc on macOS, ~/.bashrc on Linux):

Terminal window
export PATH="$HOME/.local/bin:$PATH"

Open a new terminal tab and check that it works:

Terminal window
hya --version

Note on Linux: Prebuilt releases need standard Linux (glibc, used by Ubuntu, Debian, Fedora, Arch, etc.). Alpine Linux (musl) and Intel Macs are not supported as prebuilt downloads—build from source there instead.

Choose a bundle profile

Terminal window
curl -fsSL https://hya.ed-aisys.com/install.sh | sh -s -- --profile minimal
curl -fsSL https://hya.ed-aisys.com/install.sh | sh -s -- --bare
Distribution profile Bundles installed from the registry
default All 21 first-party bundles
minimal TUI and presets, providers, Hashline, coding extras, and workspace files
providers Anthropic, Google, OpenAI, and Grok providers
tui Basic TUI components and the agents, skills, and commands presets

The registry’s distribution profile, such as /v1/profiles/default.json, names the bundles to install. The installer populates the registry. Use hya bundle enable, hya bundle disable, or bundles.builtin in config.yaml to choose which installed bundles run.

If installing a profile fails, the verified core remains in place. Run the retry command printed by the installer once the registry is reachable. Use --force if you rerun the installer for a core version that is already installed.

Install from an offline mirror

On a connected machine, export the profile for the destination’s target and native ABI. The example assumes the connected machine runs the same Hya release as the destination.

Terminal window
hya bundle mirror --profile default --target x86_64-unknown-linux-gnu --out ./bundle-mirror

Copy the bundle mirror, installer, and release archive with its SHA256SUMS to the offline machine. The release mirror serves the same download/v<version>/ layout as GitHub. Set HYA_VERSION to the release staged in the mirror, then run:

Terminal window
HYA_RELEASES_URL=file:///mnt/releases \
sh ./hya-install.sh --version "$HYA_VERSION" --registry file:///mnt/bundle-mirror

You can also set HYA_REGISTRY_URL=file:///mnt/bundle-mirror. For a legacy core release whose CLI predates registry profiles, use HYA_INSTALL_SKIP_PROFILE=1 to install its packaged bundles.

Installer options

Command-line flags take precedence over the corresponding environment values. An explicit --profile overrides HYA_BARE=1. The --bare and --profile flags are mutually exclusive. Value flags accept either --flag VALUE or --flag=VALUE.

Flag Environment Value and behavior
--version VERSION HYA_VERSION Release version, with optional leading v. Defaults to latest stable.
--prefix DIR HYA_INSTALL_DIR Install prefix. Defaults to $HOME/.local.
--profile NAME HYA_PROFILE Registry distribution profile name. Defaults to default.
--bare HYA_BARE Set the variable to 1 or pass the flag to install only core and its runtimes.
--registry URL HYA_REGISTRY_URL Registry URL, including an absolute file:// URL for an offline mirror. Defaults to the Hya CLI’s registry selection.
--force — Reinstall an already installed version and run the selected profile bootstrap unless skipped.
-h, --help — Print the installer help.
— HYA_INSTALL_SKIP_PROFILE Set to 1 to skip registry bootstrap. hya update uses this to manage bundle synchronization itself.
— HYA_REPO GitHub release repository as owner/repo. Defaults to chrono-foundry/hya.
— HYA_RELEASES_URL Release base URL with latest/download/SHA256SUMS and download/v<version>/ assets. Defaults to the selected repository’s GitHub releases URL.
— HYA_TARGET Override the detected release target with a Rust target triple.
— TMPDIR Temporary download directory. Defaults to /tmp.

Registry maintainers can generate the four profile documents with cargo run -p xtask -- generate-profiles --out ./v1/profiles. Each <name>.json contains integer schema_version (currently 1), string fields name, version (currently 1.0.0) and description, and a bundles array of qualified bundle ID strings.


Install on Windows (WSL 2)

Hya does not have a native .exe build. Instead, you run it inside Windows Subsystem for Linux (WSL 2), where it works at full speed and still opens in your normal Windows browser.

Step 1: Turn on WSL 2 with Ubuntu

Open PowerShell as Administrator and run:

Terminal window
wsl --install -d Ubuntu

Restart Windows if asked. When Ubuntu opens for the first time, pick a Linux username and password.

Check that Ubuntu is running on WSL version 2 (not 1):

Terminal window
wsl -l -v

If VERSION says 1, upgrade it with wsl --set-version Ubuntu 2.

Step 2: Install Hya inside Ubuntu

Open Ubuntu (Windows Terminal works best because it supports copy-paste colors cleanly) and run:

Terminal window
sudo apt update && sudo apt install -y curl tar coreutils ca-certificates
curl -fsSL https://hya.ed-aisys.com/install.sh | sh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
hya --version

[!IMPORTANT] Keep your code inside Linux (~/code/...), not on /mnt/c/.... Reading and watching files across the Windows C: drive boundary in WSL is very slow. Put your projects in your Ubuntu home folder (~/code/my-app). You can still browse those files in Windows Explorer at \\wsl$\Ubuntu\home\<your-name>.

When you run hya inside Ubuntu, WSL 2 forwards ports automatically—just open http://localhost:3250 in Edge, Chrome, or Firefox on Windows!


Update Hya

Whenever a new release comes out, run:

Terminal window
hya update

hya update stages the checksummed release inside the prefix, checks the backend and frontend versions, then probes the staged backend’s native ABI. On an ABI change, it verifies and stages replacements for installed native bundles before swapping the live files. Use hya update --registry NAME_OR_URL to select a registry and --from-source to permit pinned source builds where a local-trust replacement is allowed. If bundle commit or daemon restart fails, Hya restores the previous release and any replaced registry rows. Restoring rows advances the registry generation so running clients can detect the change.

If you are updating from a release with bundles under its installation prefix, add the official profile to the user registry once:

Terminal window
hya bundle install --profile default -y

Pin a specific version or install location

Terminal window
# Install or downgrade to an exact version
hya update --version v0.47.0
# Reinstall the current version from scratch
hya update --force
# Install a legacy release with its packaged bundles in a custom folder
curl -fsSL https://hya.ed-aisys.com/install.sh |
HYA_INSTALL_SKIP_PROFILE=1 sh -s -- --version v0.47.0 --prefix /opt/hya

Build from source (Optional)

Only do this if you want to run Hya from a Git branch or modify Hya’s code yourself. You will need:

  • Git
  • Rust 1.91 or newer (rustup.rs)
  • Bun 1.4.2 or newer (bun.sh)
  • On Ubuntu/Debian: sudo apt install -y build-essential pkg-config libssl-dev unzip

Clone the repository and run the source installer:

Terminal window
git clone https://github.com/chrono-foundry/hya.git
cd hya
./install.sh --prefix "$HOME/.local"
"$HOME/.local/bin/hya" bundle install --profile default -y

Uninstall

Stop the background server first, then delete the installed files:

Terminal window
hya server stop
rm -f ~/.local/bin/hya
rm -rf ~/.local/lib/hya
rm -f ~/.local/bundles/hya-*.hyabundle

The commands leave your chat history (~/.local/state/hya), settings (~/.config/hya), and registry-installed bundles (~/.local/share/hya/bundles by default) available for a future install.