Skip to content

Hya Documentation

Agents built for the long horizon — verified at every step, modular by design.

Hya is an open-source multi-agent coding runtime that runs locally in your terminal, browser, and editor, connects to any model provider you choose, and keeps your code and conversation history on your own machine.

Pick where you want to start based on what you’re doing today:


1. Using Hya (For Everyone)

New to Hya, or looking up how to run a workflow, switch models, or connect from another machine? Start here.

Get Started

  • What is Hya? — How the terminal UI, browser WebUI, background server, and offline mode fit together.
  • Installation — One-line install on Linux, macOS, and Windows (WSL 2), plus hya update and source builds.
  • 5-Minute Quickstart — Launch Hya, add an API key or OAuth login, edit code, approve prompts, and /undo changes.
  • Common Workflows — Copy-paste recipes for exploring code, fixing bugs, running on autopilot, and working remotely.

Guides

  • Interactive Mode (TUI & WebUI) — Layouts (tui.toml presets), @file & !shell, clipboard/browser file paste, /undo & /fork, and management screens.
  • Editor Integration (ACP) — Connecting Zed and other ACP v1 code editors directly to your local Hya daemon via hya acp.
  • Headless & Automation — Running Hya in scripts and CI with hya exec, --bare, -p Goal mode, and hya loop.
  • Models, Providers & Auth — Connecting Anthropic, OpenAI, Gemini, Grok, or local models via /key, OAuth, or models.toml, with catalog discovery and model roles.
  • Projects, Permissions & Safety — Multi-root Projects, checkout trust, permission modes, and permissions.toml.
  • Context, Memory & Compaction — Teaching Hya project rules with AGENTS.md and how Hya shrinks long chats automatically at 80%.
  • Subagents & Multi-Agent Teams — Built-in roles (hya-main, hya-plan, hya-task, hya-scout, hya-reviewer), /subagents, and vertical channels.
  • Workflows — Running multi-stage *.hya.md pipelines from /workflow or the CLI.
  • Skills, Custom Commands & MCP — Loading SKILL.md guides, writing /commands, connecting MCP tool servers, and Code Mode.
  • Background Server & Remote Relay — Controlling hya serve and connecting across machines over end-to-end encrypted hya:// links.
  • Migrating from Hya v1 to v2 — Upgrading v1 SQLite databases, config.yaml, tui.toml/tui.json, and user bundles with hya-migration and SHA-256 verified rollback.
  • Migrating from Config v2 to v3 — Atomic offline hya-migration run upgrade from config.yaml, auth/*.yaml, and tui.json to config.toml v3, models.toml, auth.json (0600), and tui-state.json with SHA-256 verified rollback.

Reference Manuals


2. Extending & Integrating Hya (For Plugin & App Developers)

Customize Hya or build your own apps and scripts on top of it—without touching Hya’s core Rust source code.


3. Architecture & Contributing (For Core Contributors)

Working inside the hya repository or exploring how the runtime is built?