You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,38 @@ Flags
75
75
--pin <code> Override generated PIN (pair only)
76
76
```
77
77
78
+
Terminal commands (resume sessions on desktop)
79
+
----------------------------------------------
80
+
81
+
Pocket Server can attach your mobile terminal sessions on your desktop terminal. No pairing or token is required on your own machine — the CLI and server exchange a local secret under `~/.pocket-server/data/runtime/local-ws.key`.
82
+
83
+
```
84
+
# List active terminal sessions with indices
85
+
pocket-server terminal sessions
86
+
87
+
# Attach by index (from the list)
88
+
pocket-server terminal attach 2
89
+
90
+
# Attach by title (case-insensitive, supports spaces)
91
+
pocket-server terminal attach --name "Opencode"
92
+
# or positional query
93
+
pocket-server terminal attach "Opencode"
94
+
95
+
# Attach by id
96
+
pocket-server terminal attach --id term:/path#3
97
+
98
+
# JSON output for tooling
99
+
pocket-server terminal sessions --json
100
+
101
+
# Optional: specify a port if not 3000
102
+
pocket-server terminal attach 1 --port 3010
103
+
```
104
+
105
+
Notes
106
+
- Attach streams the session interactively into your current terminal. Press Ctrl+C to detach without closing the remote PTY.
107
+
- The desktop attach replays terminal output to reconstruct the TUI exactly as you left it on mobile. It does not clear your local terminal.
108
+
- Session titles come from the mobile tabs; you can long‑press to rename on mobile and they’ll appear here.
0 commit comments