Install and start the hagent CLI
hagent is the command-line version of Houdini Agent. It shares models and sign-ins with the desktop app and has the same Agent / Ask / Plan modes, confirmation before actions, checkpoints and undo, skills, Meshy, the Unreal plugin, long-term memory and session history. It just runs in a terminal instead of a window.
Install with one command (recommended)
If you only want the command line, without the desktop app, run one command in a terminal. The script downloads the latest CLI package, checks its SHA-256, installs it in your user folder and adds it to PATH. No admin rights are needed. Run the same command again later to upgrade.
Linux (x86_64):
curl -fsSL https://houdini-agent.com/install.sh | sh
This installs to ~/.local/share/HoudiniAgent-CLI and links hagent into ~/.local/bin. If ~/.local/bin is not on your PATH, the script ends by printing the line to add.
Windows (run in PowerShell):
irm https://houdini-agent.com/install.ps1 | iex
This installs to %LOCALAPPDATA%\Programs\hagent and adds it to your user PATH; type hagent in any new terminal.
To read the scripts first, open install.sh or install.ps1.
Update
hagent update
hagent works out how it was installed and upgrades the same way: an npm install runs npm install -g houdini-agent@<new version>; a one-line install is reinstalled to the same place (on Windows a new window opens and starts once hagent exits); a Scoop install runs scoop update hagent; the hagent.exe that comes with the desktop app is updated together with the desktop app (if the desktop app is open, update from there). hagent --update works too.
Interactive mode checks for a new version in the background at startup and shows a notice under the welcome panel.
Install with a package manager
If you already use Node.js, Bun or Scoop, you can install and upgrade with them too (Windows x64, Linux x64):
| Package manager | Install | Upgrade |
|---|---|---|
| npm | npm install -g houdini-agent |
npm update -g houdini-agent |
| Bun | bun add -g houdini-agent |
bun add -g houdini-agent@latest |
| pnpm | pnpm add -g houdini-agent |
pnpm update -g houdini-agent |
| Scoop (Windows) | scoop install https://houdini-agent.com/scoop/hagent.json |
scoop update hagent |
The npm package is a small launcher. When it is installed (or on the first run, if install scripts are disabled) it downloads the matching hagent build from houdini-agent.com, checks its SHA-256 and caches it in %LOCALAPPDATA%\hagent\npm or ~/.cache/hagent/npm; after that it starts hagent directly. Node.js 18 or later is required.
Other ways to get it
| Platform | How to get it |
|---|---|
| Windows (with the desktop app) | The installer includes hagent.exe. The wizard option Add the hagent command-line tool to PATH is checked by default, so you can type hagent in any terminal after installing |
| Windows (CLI only) | Download HoudiniAgent-CLI-win64.zip and extract it to any folder |
| Linux | Download HoudiniAgent-CLI-linux-x64.tar.gz |
| From source | Run python hagent.py in the repository root; it takes exactly the same arguments as hagent |
These are permanent links to the latest version. Versioned packages (for example HoudiniAgent-CLI-2.1.8-win64.zip) are on the website's past versions page.
Install on Linux
The Linux package bundles its own Python runtime and needs glibc 2.28 or later (Rocky / RHEL 8+, Ubuntu 20.04+).
- Extract it:
tar xzf HoudiniAgent-CLI-linux-x64.tar.gz
- This creates a
HoudiniAgent-CLI/folder containing thehagentlauncher script. Runinstall.shto linkhagentinto~/.local/bin:
cd HoudiniAgent-CLI
./install.sh
- Make sure
~/.local/binis on your PATH; then you can typehagentdirectly.
On servers without a graphical desktop, hagent runs in offscreen mode automatically. On Linux, data is kept in ~/.local/share/HoudiniAgent.
Check that it runs
hagent --version
If it prints Houdini Agent CLI <version>, you're set. hagent --help lists every option.
If Windows says it can't find hagent, either the PATH option wasn't checked during install or the terminal was opened before installing. Open a new terminal, or use the full path to hagent.exe (%LOCALAPPDATA%\Programs\Houdini Agent when installed with the desktop app, %LOCALAPPDATA%\Programs\hagent when installed with the one-line command).
First use
- Set up a model: on the same computer, hagent uses the providers, API keys and subscription sign-ins already set up in the desktop app. If none are set up yet, use
/keyin hagent to enter an API key, or/loginto sign in to a subscription. - Connect Houdini: once Houdini is open, hagent discovers and connects to it just like the desktop app. You can also type
/houdini launchin hagent to start one. Type/houdinito see the connection. - Start chatting: run
hagentfor interactive mode, type your request and pressEnter.
On startup, the first line shows the version and the second shows the current provider, model, mode and session ID. Type /help for every command.
Three ways to use it
| Use | Command | Details |
|---|---|---|
| Interactive chat | hagent |
Use hagent in interactive mode |
| Send one message and exit (scripts) | hagent -p "check /obj for errors" |
Run hagent non-interactively with -p and JSON output |
| Call Houdini directly, without the AI | hagent tool …, hagent py "…" |
Call Houdini tools directly without the AI |
If your terminal doesn't support color, or you're writing the output to a log, add --no-color.