CLI Reference

The hoziron-cli command-line interface is the primary operator tool for managing the Hoziron platform.

Installation

# Download the latest release (Linux x86_64 example)
TARGET="x86_64-unknown-linux-gnu"

curl -sSL "https://dl.hoziron.com/latest/hoziron-${TARGET}.tar.gz" -o hoziron-cli.tar.gz
tar -xzf hoziron-cli.tar.gz
sudo mv hoziron-*/hoziron-cli /usr/local/bin/
rm -rf hoziron-cli.tar.gz hoziron-*/

See Install via Binary for the full list of available targets.

Global Flags

These flags apply to all commands:

FlagDescription
--config <path>Path to config file (default: ~/.hoziron/config.toml)
--context <name>Use a specific context for this command (overrides current_context)
--helpShow help for any command
--versionShow version information

Command Overview

CommandDescriptionReference
initInitialize config directoryinit.md
agentManage agents (list, status, activate, suspend, chat, set)agent.md
workflowRun and inspect workflows (list, get, run, runs, status)workflow.md
competencyManage competencies (install, activate, configure)competency.md
packagePackage authoring (init, build, inspect, lint, verify, publish, provenance)package.md
catalogCatalog discovery and installationcatalog.md
collectionCurated bundles of catalog packages (init, list, install, inspect, publish, validate)collection.md
configConfiguration managementconfig.md
contextMulti-instance context switchingcontext.md
channelChannel integrations (Slack, Teams, etc.)channel.md
skillSkill managementskill.md
memoryAgent memory (KV store)memory.md
cronScheduled jobscron.md
authAPI key managementauth.md
login / logout / whoamiOIDC session login and identityauth.md
securitySecurity tools and auditsecurity.md
modelsModel and alias browsingmodels.md
providersLLM provider management (list, create, enable, disable)providers.md
integrationIntegration server lifecycle (connect, disconnect, reconnect)integration.md
add / remove / integrationsOne-shot integration install/remove/search helpersintegration.md
vaultCredential vaultvault.md
contractInspect recorded contract bindings (read-only)contract.md
licenceLicence status (ADR-034)licence.md
backupPlatform state backup and restorebackup.md
systemCLI/system info and versionsystem.md
agent chat <id>Interactive chat with an agent (see agent.md)agent.md
sessionsList conversation sessionsutilities.md
statusShow kernel statusutilities.md
healthQuick health checkutilities.md
doctorRun diagnosticsutilities.md
logsTail daemon logsutilities.md
dashboardOpen web dashboardutilities.md
completionGenerate shell completion scriptsutilities.md
onboardInteractive onboarding wizardutilities.md
resetReset local stateutilities.md
uninstallRemove Hoziron from systemutilities.md

Quick Start Examples

# Initialize the CLI config, start the server (separate process — see
# start-stop.md), then point the CLI at it
hoziron-cli init
hoziron-server &
hoziron-cli context add local --url http://127.0.0.1:4200
hoziron-cli context use local

# Install an agent-template package (this is how agents are created — see
# agent.md#creating-an-agent), then chat with it by ID (there is no default
# agent — the platform ships empty, nothing runs until installed)
hoziron-cli catalog install assistant-template --activate
hoziron-cli agent list
hoziron-cli agent chat <agent-id>

# Check health
hoziron-cli health

# Fetch recent logs (one-shot fetch — --follow is currently a no-op, see utilities.md#logs)
hoziron-cli logs

Output Formats

Most commands support --json for machine-readable output. Response shapes vary by command — check the specific page for the exact field names (many wrap results in a named key like {"agents": [...]} rather than returning a bare array):

# Human-readable (default)
hoziron-cli agent list

# JSON (for scripting/piping)
hoziron-cli agent list --json | jq -r '.agents[] | .name'

Environment Variables

VariablePurposeDefault
HOZIRON_HOMEConfig/data directory~/.hoziron
HOZIRON_LOGLog level filterinfo
HOZIRON_LOG_FORMATLog format (text or json)text

There is no HOZIRON_LISTEN env var — the daemon's listen address is set via hoziron-server --api-listen <addr> or [surfaces.api].listen in config.toml. See start-stop.md.

hoziron-cli onboard --quick additionally reads HOZIRON_URL, HOZIRON_CONTEXT, and HOZIRON_API_KEY — see utilities.md#onboard.

Interactive Launcher

Running hoziron-cli with no subcommand in an interactive terminal shows a branded launcher menu:

? What would you like to do?
  → Get Started (runs init)
  → Chat
  → Dashboard
  → Terminal UI
  → Show Help
  → Quit

In non-interactive mode (piped), it prints help text.