{"repo":"sanshao85/persistent-terminal-api","free":true,"listed":false,"github":"https://github.com/sanshao85/persistent-terminal-api","clone":"git clone https://github.com/sanshao85/persistent-terminal-api.git","description":"A standalone REST API service for persistent terminal session management, designed for AI assistants","language":"TypeScript","stars":31,"topics":["ai-assistant","api","claude","gpt","node-pty","rest-api","terminal","typescript"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Persistent Terminal API A standalone REST API service for persistent terminal session management Designed to enable AI assistants (Claude, GPT, etc.) to execute long-running commands without blocking English 简体中文 Features • Quick Start • API Docs • Web UI • Contributing --- 🌟 Features - 🖥️ Persistent Terminal Sessions - Terminals run in background even when clients disconnect - 🔄 Auto-Execute Commands - Automatically adds newline to execute commands - 📦 Smart Output Buffering - Circular buffer with configurable size and intelligent truncation - 📊 Statistics & Monitoring - Track output size, line count, and token estimates - ⏰ Auto-Cleanup - Automatically removes inactive sessions after timeout - 🌐 REST API - Simple HTTP/JSON interface - 🔒 Graceful Shutdown - Properly terminates all terminals on exit - 📂 Directory Awareness - Required cwd parameter prevents path confusion - 👥 Multi-User Isolation - Each user (AI assistant) can only access their own terminals - 🆕 ANSI Sequence Cleaning - Optional clean=true parameter removes control sequences to save 30-90% tokens - 🎨 Web UI Included - Beautiful web interface with xterm.js for visual management 📋 Table of Contents - Quick Start - Installation - Configuration - API Documentation - Web UI - Usage Examples - Architecture - Performance - Security - Troubleshooting - Contributing - License 🚀 Quick Start Prerequisites - Node.js = 18.0.0 - npm or yarn Installation Start Backend API API will be available at: http://localho","default_branch":null,"files":null,"tree":[],"storefront":"/r/sanshao85","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sanshao85/persistent-terminal-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}