Hanzo Dev

CLI Reference

Complete command-line reference for the dev CLI tool.

Synopsis

dev [OPTIONS] [PROMPT]
dev <SUBCOMMAND> [OPTIONS]

Hanzo Dev is an AI-powered coding assistant that runs in your terminal. When invoked without a subcommand, it launches the interactive TUI.

Global Options

OptionShortDescription
--model <MODEL>-mModel the agent should use
--profile <PROFILE>-pConfiguration profile from config.toml
--sandbox <MODE>-sSandbox policy for shell commands
--ask-for-approval <POLICY>-aWhen to require human approval
--cd <DIR>-CWorking directory for the agent
--image <FILE>-iAttach image(s) to initial prompt
--ossUse local open source model provider (Ollama)
--full-autoEnable low-friction sandboxed automatic execution
--dangerously-bypass-approvals-and-sandboxSkip all safety checks (DANGEROUS)
--autoRun Auto Drive for non-interactive sessions
--debug-dEnable debug logging of LLM requests
-c <KEY=VALUE>Override configuration values
--versionPrint version information
--help-hPrint help information

Subcommands

exec

Run non-interactively for a single task. Alias: e

dev exec [OPTIONS] [PROMPT]
OptionDescription
--autoRun Auto Drive instead of single turn
--jsonPrint events to stdout as JSONL
--max-seconds <N>Maximum wall-clock time budget
--turn-cap <N>Maximum Auto Drive coordinator turns
--output-last-message <FILE>Write final message to file
--output-schema <FILE>JSON Schema for structured output
--skip-git-repo-checkAllow running outside Git repos

auto

Run Auto Drive headless. Alias for exec --auto --full-auto.

dev auto [OPTIONS] [PROMPT]

resume

Resume a previous interactive session.

dev resume [SESSION_ID] [OPTIONS]
OptionDescription
--lastContinue the most recent session

login / logout

Manage authentication credentials.

dev login [--with-api-key]
dev login status
dev logout

apply

Apply the latest diff produced by the agent. Alias: a

dev apply

mcp

Manage MCP servers. Alias: acp

dev mcp list [--json]
dev mcp get <NAME> [--json]
dev mcp add <NAME> [OPTIONS] [-- COMMAND...]
dev mcp remove <NAME>

bridge

Manage browser integration.

dev bridge subscription [OPTIONS]
dev bridge list
dev bridge tail [OPTIONS]
dev bridge screenshot [OPTIONS]
dev bridge javascript <CODE> [OPTIONS]

cloud

Browse and manage Cloud tasks. Alias: cloud-tasks

dev cloud submit <PROMPT> [OPTIONS]

llm

Side-channel LLM utilities.

dev llm request [OPTIONS]

completion

Generate shell completion scripts.

dev completion bash
dev completion zsh
dev completion fish
dev completion powershell

doctor

Diagnose PATH, binary collisions, and version conflicts.

dev doctor

debug

Internal debugging commands (macOS: seatbelt, Linux: landlock).

dev debug seatbelt [COMMAND...]
dev debug landlock [COMMAND...]

Environment Variables

VariableDescription
OPENAI_API_KEYOpenAI API key
CODE_HOMEOverride config directory (default: ~/.hanzo)
CODEX_HOMELegacy config directory (fallback)
CODEX_SECURE_MODEEnable security hardening when set to "1"

Exit Codes

CodeDescription
0Success
1General error
130Interrupted (SIGINT)

On this page