#!/bin/sh # Aetheris installer: curl -fsSL https://aetheris.delzb.app/install.sh | sh # Installs the `aetheris` command from PyPI (pipx if present, else pip --user). set -eu say() { printf '\033[1;36m==>\033[0m %s\n' "$*"; } die() { printf '\033[1;31mERROR:\033[0m %s\n' "$*" >&2; exit 1; } PY="" for c in python3 python; do if command -v "$c" >/dev/null 2>&1 && "$c" -c 'import sys; sys.exit(0 if sys.version_info >= (3, 10) else 1)' 2>/dev/null; then PY="$c"; break fi done [ -n "$PY" ] || die "Python 3.10+ is required. Install it from https://www.python.org/downloads/ and run this again." say "Using $($PY --version 2>&1)" if command -v pipx >/dev/null 2>&1; then say "Installing aetheris with pipx" pipx install --force aetheris || die "pipx install failed." else say "pipx not found; installing with pip --user" if ! "$PY" -m pip --version >/dev/null 2>&1; then die "pip is not available for $PY. Install pip (e.g. 'sudo apt install python3-pip') or pipx, then retry." fi if ! "$PY" -m pip install --user --upgrade aetheris 2>/dev/null; then die "pip refused to install (an 'externally managed' Python?). Install pipx ('sudo apt install pipx' / 'brew install pipx') and run this again." fi BIN="$("$PY" -m site --user-base)/bin" case ":$PATH:" in *":$BIN:"*) ;; *) say "Add this to your shell profile so 'aetheris' is found: export PATH=\"$BIN:\$PATH\"" ;; esac fi if ! command -v ollama >/dev/null 2>&1; then say "Ollama not found. For local models, install it from https://ollama.com/download" say "(or use /connect inside aetheris for Anthropic, OpenAI or Gemini)." fi say "Done. Start it in the folder you want it to work in: aetheris"