Mobile Terminal Experience
This guide explains how to use LibreChat on mobile devices to monitor and operate persistent tmux sessions.
Mobile Limitations of Traditional SSH
Traditional mobile SSH applications have operational disadvantages:
- Virtual keyboards obscure terminal output.
- Control keys require multi-touch navigation bars.
- Mobile operating systems terminate background TCP connections when the screen locks.
LibreChatTmuxBridge eliminates these issues. Terminal sessions persist independently on the host server. The mobile interface uses standard HTTP and Server-Sent Events to stream terminal updates.
Mobile Operational Workflow
You can manage sessions on mobile devices through built-in slash commands:
List Active Sessions: Send
/listto view running sessions, window counts, and connection states.Create New Sessions: Send
/new <session_name> [start_directory] [command]to start a detached session.Terminate Sessions: Send
/kill <session_name>to stop an active session.Send Control Keystrokes: Send
/keys <key_combination>to transmit special keys such asC-c(Interrupt) orEscape.
Operating Interactive Agent Sessions
You can run interactive coding agents such as Antigravity (agy) or OpenCode in persistent sessions:
Create an agent session:
text/agy caddy-work /containers/webservicesSelect the new session from the LibreChat model menu:
texttmux:caddy-workSubmit instructions to the agent:
textCheck the Caddyfile configuration and validate syntax.The bridge streams the terminal output into the chat message bubble.
When the agent prompts for confirmation, send approval:
text/approve