CLI Options
npx claude-viewOr if globally installed:
claude-viewThe server starts, opens your browser, and begins discovering Claude Code sessions automatically.
Subcommands
Section titled “Subcommands”| Subcommand | Description |
|---|---|
cleanup | Remove stale lock files and temporary data |
claude-view cleanupEnvironment variables
Section titled “Environment variables”| Variable | Description | Default |
|---|---|---|
CLAUDE_VIEW_PORT | Override server port | 47892 |
PORT | Alternative port variable (fallback) | — |
RUST_LOG | Log level filter | warn |
Examples
Section titled “Examples”# Default — starts server and opens browsernpx claude-view
# Custom port via env varCLAUDE_VIEW_PORT=8080 npx claude-view
# Verbose loggingRUST_LOG=info npx claude-view
# Debug logging for the server crate onlyRUST_LOG=warn,claude_view_server=debug npx claude-view
# Clean up stale datanpx claude-view cleanupPort fallback
Section titled “Port fallback”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.