Rest PTY provides 'terminals as a service' by wrapping pseudo-terminal (PTY) sessions behind a REST API. It allows you to define, start, stop, feed input to, and read output from named sessions, making it ideal for orchestrating interactive or long-running terminal programs programmatically. Each session can run either in a local PTY or within a hardened, isolated Docker container, with session metadata persisted in SQLite and I/O streamed through Redis ring buffers that retain scrollback history. It also exposes a dedicated Model Context Protocol (MCP) endpoint, enabling AI agents to define, drive, and interact with sandboxed terminal sessions securely.
주요 기능
01OpenAPI specification with a generated TypeScript client SDK
020 GitHub stars
03Bounded scrollback history for session output via Redis ring buffers
04Two execution drivers: local PTY or hardened Docker container
05Persistent session definitions surviving restarts via SQLite
06Hardened-by-default Docker containers with read-only rootfs and dropped capabilities
사용 사례
01Automating terminal-based tasks from other software or scripts
02Enabling AI agents to define, drive, and interact with sandboxed terminal sessions
03Orchestrating interactive or long-running terminal programs from a service or UI