CLI Reference
Fusion provides a rich CLI surface for both human interactive sessions and automated subagent execution.
Commands & Flags
# Launch interactive TUI
fusion
# Force phone-friendly minimal / scrollback UI
fusion --minimal
# Force full screen TUI
fusion --fullscreen
# Headless mode: execute task and print response to stdout
fusion -p "Refactor auth middleware to handle Bearer token"
# Headless mode with prompt input from file
fusion --prompt-file task.md
# Override model for session
fusion -m cloudflare-kimi-k2.7
# Auto-approve all tool executions (YOLO / script mode)
fusion --always-approve
# Authentication
fusion login
fusion logout
# Help & Version
fusion --help
fusion --versionInteractive Slash Commands
Inside the Fusion TUI interactive prompt, use slash commands to inspect and modify session settings:
| Slash Command | Usage & Description |
|---|---|
/help |
List available commands and hotkeys |
/model |
View or switch active model provider |
/clear |
Clear message history in current session |
/compact |
Trigger context window compaction manually |
/status |
View provider credentials and system health |
Headless JSON Output for AI Swarms
When building CI pipelines or connecting agent gateways, pass formatting flags for machine-parsable output:
fusion -p "Run test suite and report failures" --always-approveFor full details on integrating Fusion with automated tools, see the OpenClaw Integration guide.