A full-featured terminal user interface for interacting with Claude AI. Supports multiple providers, headless mode, session management, and cross-platform operation.
| Flag | Short | Description | Value |
|---|---|---|---|
| --cwd | -c | Set working directory | Yes |
| --dry-run | — | Preview actions without executing | No |
| --emit-bindings | — | Emit bindings to stdout (LANG: cs, swift, c) | Yes |
| --emit-session | -e | Emit current session data to stdout | No |
| --headless | — | Run without TUI (non-interactive / CI mode) | No |
| --help | — | Show help information | Yes |
| --host | -h | Connect to host endpoint | Yes |
| --new | -n | Start a new conversation | No |
| --prompt | — | Send an initial prompt on launch | Yes |
| --provider | -p | Provider: scorpiox, claude_code, gemini, openai, anthropic | Yes |
| --session-id | — | Resume a specific session by ID | Yes |
| --version | -v | Print version and exit | No |
| -m | — | Send a message directly (non-interactive) | Yes |
# Launch the TUI — starts a new interactive conversation sx
# Start a fresh conversation explicitly sx --new
# Send a one-shot message without entering the TUI sx -m "Explain the difference between TCP and UDP"
# Launch with a prompt that auto-submits on start sx --prompt "Review this codebase for security issues"
# Set working directory for file operations sx --cwd ~/projects/my-app
# Use a specific AI provider sx --provider openai sx -p anthropic
# Connect to a remote ScorpioX host sx --host wss://my-server.example.com:8443
# Resume a previous session sx --session-id a1b2c3d4-e5f6-7890-abcd-ef1234567890
# Run headless for CI/CD pipelines sx --headless --prompt "Generate unit tests for src/auth.py"
# Pipe input in headless mode echo "Refactor this function" | sx --headless
# Generate language bindings sx --emit-bindings swift > SXBindings.swift sx --emit-bindings cs > SXBindings.cs
# Export the current session for inspection or replay sx --emit-session > session_dump.json
# Preview what would happen without executing sx --dry-run --prompt "Delete all .tmp files in /var/log"
# Check version sx --version