feat: termora-cli — a CLI for AI agents to reuse saved SSH hosts#1564
Open
ruanun wants to merge 1 commit into
Open
feat: termora-cli — a CLI for AI agents to reuse saved SSH hosts#1564ruanun wants to merge 1 commit into
ruanun wants to merge 1 commit into
Conversation
A termora-cli command (jpackage add-launcher, ships with the app) lets external AI agents such as Claude Code / Codex reuse the SSH hosts saved in Termora to run commands and transfer files, without ever exposing credentials. Commands: assets list / exec / upload / download. Defense-in-depth, opt-in (default off): master switch + host whitelist + dangerous-command guard + audit log. Settings page "Command Line": enable switch, tree-grouped host whitelist, copy/install Skill to Claude/Codex, add to PATH. Ships SKILL.md; i18n for all 6 languages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
termora-cli, a command-line entry (shipped via jpackage--add-launcher) that lets external AI agents — Claude Code, Codex, etc. — reuse the SSH hosts already saved in Termora to run one-off commands and transfer files, without ever exposing credentials. Paired with a bundledSKILL.md, an agent can drive it directly.Features
assets list/exec/upload/download; JSON output when piped, human-readable in a TTYSshClients, incl. jump hosts) and returns clean stdout/stderr/exit codetermora-clito PATHSKILL.md(a format shared by Claude Code and Codex)Design
Changes
app.termora.cli.**(CLI core) andapp.termora.plugin.internal.cli.**(settings UI)PluginManager; widenApplicationInitializr.setupNativeLibrariestointernalfor CLI reuse;build.gradle.ktsadds--add-launcher+--enable-native-accessand tightens the pty4j native-extraction globSKILL.mdTesting
Notes for reviewers
SshClientsfrom the*.internal.sshpackage (public API, "internal" package) — mirrors the existing headless SFTP path; happy to promote it to a dedicated public API if preferred.