Houdini Agent/Help Center

hagent command-line reference

Command line (hagent)Updated December 5, 2026

A quick reference for every hagent startup option and subcommand. Run hagent --help to see the same information in the terminal.

Usage

hagent [options]                  Interactive mode, or a non-interactive run with -p
hagent <subcommand> [arguments]   Talk to Houdini directly, without the AI

Sessions and messages

Option What it does
-p, --print <message> Non-interactive: send this message, print the reply and exit; - reads it from standard input
-c, --continue Continue the most recent session
-r, --resume <session ID> Open a specific session; an ID prefix is enough (see /sessions)
--image <path> Attach an image to the message; can be repeated

Mode and model

Option What it does
--mode Agent|Ask|Plan Mode; Agent by default
--provider <provider> Provider (/provider lists the options in interactive mode)
--model <model> Model (/model lists the options in interactive mode)
--effort <level> Reasoning effort, for example low, medium, high

--provider, --model and --effort apply to this run only and don't change the desktop app's defaults.

Behavior and output

Option What it does
-y, --yes Approve confirmations and plans automatically; without it, non-interactive runs deny them all
--output text|json|stream-json Output format for non-interactive runs; text by default
--wait-houdini <seconds> Non-interactive runs: how long to wait for Houdini to connect before sending; by default 15 seconds if Houdini is running
--verbose Show the full thinking, tool result details and the code being run
--no-color No colored output
-v, --version Show the version

Subcommands

Subcommand What it does
instances List online Houdini instances (JSON)
context Current scene context (JSON)
tools List Houdini-side tools
update Update to the latest version the same way hagent was installed (--update works too); see Install the command line
tool <name> [JSON|@file] Call one Houdini-side tool directly, without the AI
py <code|@file> Run Python in Houdini

context, tool and py also accept --port <port> (defaults to the most recently started instance) and --timeout <seconds> (180 by default). See Call Houdini tools directly without the AI.

Common combinations

hagent                                   # interactive mode (new session)
hagent -c                                # continue the last session
hagent -r 3f9c2a                         # open a specific session
hagent -p "check /obj for errors"        # run one message and exit
hagent -p "..." --mode Ask --output json # read-only run with JSON output
hagent tool get_network_structure '{"network_path": "/obj"}'
hagent py "print(hou.hipFile.path())"
Was this article helpful?