Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Prerequisites

  • Rust toolchain: Edition 2024 (rustup update)
  • Platform: Linux, macOS, or Windows (WSL recommended)
  • RAM: 512 MB minimum, 2 GB recommended for large knowledge graphs

Build from Source

git clone https://github.com/akh-medu/akh-medu.git
cd akh-medu

# Core CLI binary
cargo build --release

# The binary is at target/release/akh-medu

Feature Flags

FeatureFlagWhat It Adds
Server--features serverREST + WebSocket server binary (akh-medu-server)
WASM Tools--features wasm-toolsWasmtime runtime for WASM-based agent tools
# Build with server support
cargo build --release --features server

# Build with everything
cargo build --release --features "server wasm-tools"

Binary Targets

BinaryPathFeature Gate
akh-medusrc/main.rsNone (always built)
akh-medu-serversrc/bin/akh-medu-server.rsserver

Initialize a Workspace

akh-medu uses XDG directory conventions for data, config, and state:

# Create the default workspace
akh-medu init

# Create a named workspace
akh-medu -w my-project init

This creates:

~/.config/akh-medu/
    workspaces/default.toml       # workspace config

~/.local/share/akh-medu/
    workspaces/default/
        kg/                       # knowledge graph data
        skills/                   # activated skill packs
        compartments/             # knowledge compartments
        scratch/                  # agent scratch space

~/.local/state/akh-medu/
    sessions/default.bin          # agent session state

Verify Installation

# Show engine info (in-memory, no persistence)
akh-medu info

# Show engine info with persistence
akh-medu -w default info

Run Tests

cargo test --lib