Last Verified: 2025-01-27
Package:
@hopx-ai/sdk on npm
Overview
TheTerminal resource provides interactive terminal access via WebSocket.
Methods
connect
Connect to interactive terminal.
Promise<WebSocket> - WebSocket connection
sendInput
Send input to terminal.
resize
Resize terminal.
output
Async iterator for terminal output.
Related Classes
See Also
- Core Concepts: Terminal - Learn about terminal access
- Sandbox Class - Access terminal via
sandbox.terminal
Next Steps
Now that you understand terminal access, explore:- WebSocket Terminal - Learn terminal concepts
- Sandbox Operations - Use terminal in sandbox workflows
- Running Commands - Execute commands
- CLI Reference - Use HopX from the command line
- Background Commands - Non-blocking execution

