DocsCLI UsageCLI Reference

CLI Reference

Complete reference for all HelixMind CLI commands, flags, and options.

CLI Reference

HelixMind works in two modes: Open Source (no account) and Logged In (free account). Some features require login. these are marked below. Run helixmind login anytime to unlock all features for free.

Main Commands

hx (alias: helixmind)

Start an interactive AI coding session (default command). On first launch, you choose between Login and Open Source mode.

FlagDescription
-m, --message <text>Send a single message instead of interactive mode
--yoloAuto-approve ALL operations (including dangerous)
-s, --skip-permissionsSkip safe/ask prompts (still asks for dangerous)
--no-validationDisable Validation Matrix
--validation-verboseShow detailed validation results
--validation-strictTreat warnings as errors
hx                                       # Interactive chat
hx -m "Add error handling"               # Single message
hx --yolo --no-validation                # Full auto, no checks
hx -s --validation-strict                # Skip permissions, strict validation

helixmind login

Authenticate with the HelixMind web platform.

FlagDescription
--api-key <key>Use API key directly (skip browser flow)
--url <url>Custom web platform URL
--forceRe-authenticate even if already logged in
helixmind login                          # Browser-based login
helixmind login --api-key hm_abc123      # Direct key entry
helixmind login --force                  # Re-authenticate

helixmind logout

Remove stored authentication.

FlagDescription
--no-revokeDo not revoke the API key on the server
helixmind logout                # Logout + revoke key
helixmind logout --no-revoke    # Local logout only

helixmind whoami

Show current authentication status (email, plan, masked API key).

helixmind whoami

helixmind init

Initialize HelixMind in the current project:

cd your-project && helixmind init

Creates: .helixmind/ directory with context.md + spiral.db.

helixmind config

helixmind config set <key> <value>    # Set a value
helixmind config get <key>            # Get a value
helixmind config list                 # List all settings
KeyDescriptionDefault
providerLLM provideranthropic
apiKeyAPI key (masked).
modelModel nameProvider default
logLevelDebug levelinfo
dataDirData directory~/.helixmind/
maxTokensMax context windowProvider default
validationEnabledValidation Matrixtrue
brainScopeBrain scopelocal

helixmind spiral

helixmind spiral status    # Nodes, levels, storage
helixmind spiral search    # Semantic search
helixmind spiral compact   # Trigger compaction

helixmind feed

helixmind feed README.md src/     # Specific files/dirs
helixmind feed --deep src/        # Deep analysis
helixmind feed --watch src/       # Watch for changes

helixmind export / helixmind import

helixmind export ./backups                # Export to ZIP
helixmind export -n my-project            # With name
helixmind import backup.zip              # Merge import
helixmind import --replace backup.zip    # Replace import

Exit Codes

CodeMeaning
0Success
1General error
130Interrupted (Ctrl+C)
HelixMind โ€” AI Coding CLI with Spiral Memory