Skip to main content

Terminal Interface

The terminal interface (khaos-tui) provides a full-featured, keyboard-driven interface for Khaos Machine. It runs in your terminal and offers the same project management and analysis capabilities as the web dashboard.

Launching

khaos-tui

Views

The TUI has five main views, navigable with keyboard shortcuts:

ViewDescription
ProjectsBrowse and select projects
DashboardView scenes, characters, locations, and analysis results
AnalysisRun and monitor analysis jobs
SettingsConfigure provider, model, and preferences
ImportImport wizard for adding new screenplays

Import Wizard

The import wizard walks you through adding a new screenplay in 5 steps:

  1. Select file — browse your filesystem for a screenplay file
  2. Detect format — auto-detects .fountain, .fdx, .sbx, .md, .pdf, or .txt
  3. Name project — enter a project name
  4. Choose location — set the project directory
  5. Confirm — review and create the project

Keyboard Shortcuts

The TUI uses standard terminal conventions:

  • Tab / Shift+Tab — navigate between panels
  • Enter — select / confirm
  • Escape — go back
  • q — quit
  • ? — help

When to Use the TUI

The terminal interface is ideal for:

  • Remote servers — SSH into a machine and manage projects
  • Keyboard-first workflows — no mouse required
  • Low-bandwidth — no browser rendering overhead
  • Scripting — combine with CLI tools for automated workflows

Logs

TUI activity is logged to ~/.khaos/logs/khaos-tui.log.