Skip to content

CLI Options

Terminal window
npx claude-view

Or if globally installed:

Terminal window
claude-view

The server starts, opens your browser, and begins discovering Claude Code sessions automatically.

SubcommandDescription
cleanupRemove stale lock files and temporary data
Terminal window
claude-view cleanup
VariableDescriptionDefault
CLAUDE_VIEW_PORTOverride server port47892
PORTAlternative port variable (fallback)
RUST_LOGLog level filterwarn
Terminal window
# Default — starts server and opens browser
npx claude-view
# Custom port via env var
CLAUDE_VIEW_PORT=8080 npx claude-view
# Verbose logging
RUST_LOG=info npx claude-view
# Debug logging for the server crate only
RUST_LOG=warn,claude_view_server=debug npx claude-view
# Clean up stale data
npx claude-view cleanup

If the specified port (default 47892) is unavailable, claude-view automatically binds to an ephemeral port and prints the actual URL. Logs show the actual address on startup.