host

NAME

host — display and manage tray host status

SYNOPSIS

host
host reset

DESCRIPTION

The host command shows the current tray session state. It reports whether this instance is the leader or a follower, prints the join URL for sharing, and lists connected followers with their runtime IDs and connection duration.

When running as a follower, host shows connection state (connecting, connected, reconnecting, or error), attach attempts, and last ping time.

SUBCOMMANDS

OUTPUT FORMAT

As leader:

status: leader
join_url: https://slicc.app/tray/join/abc123...
followers:
  - follower-x9k2 (iPhone) connected 4m ago
  - follower-p3j7 (Chrome Extension) connected 1h 12m ago

As follower:

status: follower (connected)
join_url: https://slicc.app/tray/join/abc123...
last_ping: 3s ago

After host reset:

Tray session reset. All followers disconnected.
status: leader
join_url: https://slicc.app/tray/join/def456...

SHARING THE JOIN URL

The join URL printed by host connects other devices to this tray session. Share it by:

Once a follower connects, its browser tabs appear in playwright-cli tab-list and can be controlled remotely. The join URL remains stable until host reset is run or the session expires (1 hour of inactivity).

EXAMPLES

# Check tray status
$ host
status: leader
join_url: https://slicc.app/tray/join/abc123...

# Reset after changing networks
$ host reset
Tray session reset. All followers disconnected.
status: leader
join_url: https://slicc.app/tray/join/def456...

SEE ALSO

tray, playwright-cli teleport, rsync