{"repo":"duo121/termhub","free":true,"listed":false,"github":"https://github.com/duo121/termhub","clone":"git clone https://github.com/duo121/termhub.git","description":"TermHub: Open-source native terminal control gateway for AI Agents. Let LLMs/AI Agents fully control & automate iTerm2 / Windows Terminal: manage tabs, panes, sessions, send commands, capture output programmatically.","language":"JavaScript","stars":52,"topics":["ai-native","cli","iterm2","agent","terminal"],"license":"MIT","category":"cli-tools","readme_excerpt":"termhub 中文说明 termhub is an AI-native terminal control tool. It is designed for this closed loop: 1. AI inspects what terminal sessions are open. 2. AI opens a window or tab when needed. 3. AI launches or targets a Codex session. 4. AI sends the task into that session. 5. AI captures only the new output produced after send and returns it to the user. - Command: termhub - Alias: thub - npm package: @duo121/termhub - macOS backends: iTerm2 , Terminal - Windows backends: Windows Terminal , Command Prompt (CMD) Install Or Homebrew (macOS): Install from GitHub Releases (without npm): - termhub macos-arm64.tar.gz - termhub windows-x64.zip After extraction: - macOS - Windows (PowerShell) Quick Start For AI Use spec as machine-readable truth and --help as human-readable truth. Both now include a currentSession hint near the top that you can copy directly into --session for AI handoff. SDK termhub now ships an SDK preview entry: Core SDK capabilities: - Open/close terminal targets. - Find/resolve terminal sessions. - Send keyboard text and key events ( key / combo / sequence ). - Mouse click simulation on terminal target ( mouseClick ) on macOS. Platform notes: - macOS ( iTerm2 / Terminal ): keyboard + mouse click are supported. - Windows ( Windows Terminal / CMD ): keyboard control is supported; mouseClick currently returns unsupported. SDK quick example: Command Map Top-Level Command What It Does Common Secondary Flags --- --- --- open Open terminal window or tab --app --window --tab","default_branch":null,"files":null,"tree":[],"storefront":"/r/duo121","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/duo121/termhub/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."}