sshyard

command module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: AGPL-3.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

English · 中文

SSHYard logo

SSHYard

SSHYard is a cross-platform desktop SSH / SFTP client for macOS, Windows and Linux. It is built on mygo with a pure native UI: no webview and no HTML. The terminal is a VT/ANSI engine written in Go and drawn by the app itself.

Screenshots

Terminal and AI assistant
Terminal and AI assistant
SFTP file manager
SFTP file manager
System monitor
System monitor
AI assistant settings
AI assistant settings

Features

  • Terminal: tabs and split panes, true colour, wide characters, input methods, mouse reporting (tmux, vim, htop), search.
  • Files: SFTP panes side by side with the terminal; a transfer queue with pause, resume, retry and folder transfers; drag and drop; a built-in editor; the files pane can follow the terminal's working directory.
  • AI assistant: a per-host assistant pane that can run commands and edit files on that host, with permission modes (Ask, Review, Full access). Choose the built-in backend (OpenAI Chat Completions, OpenAI Responses or Anthropic Messages providers) or a custom ACP executable in Settings → AI Assistant. In Review mode, a configured chat model, OpenAI Decisions or TypeSafe Jev reviews every operation, including read-only, unclassified and high-risk actions; an allow decision permits execution, while an ask decision or review failure requires your confirmation. Decision models offer loose, standard or strict thresholds. Without a configured review model, the existing permission rules still apply. For ACP, configure its executable and one argument per line, then choose External ACP in the pane header. Authenticate in the external program before use; SSHYard does not install agents or guess their command-line options. ACP file and terminal requests use the selected host and the same permission gate, and Stop or a security-setting change closes that pane's agent process without closing other SSH panes.
  • Agent access: open API, MCP and skill (off by default): lets AI agents on this computer list groups and hosts, connect with the saved credentials (never revealed; hosts that need a typed password are refused) and run commands. The same tools are served as an HTTP API at http://127.0.0.1:47320/api/v1 and over MCP at /mcp, with a bearer token from the local encrypted store; a skill at /skill teaches an agent the API, and can be injected into Claude Code, Codex and ~/.agents/skills where they are found (the injected file holds the token). Turn it on in Settings → MCP / Skill after reading its risks.
  • Shared connections: every pane on a host shares one authenticated SSH connection, and they all reconnect together after a drop.
  • Hosts and credentials: passwords and private keys (OpenSSH, PEM, PuTTY .ppk) stored in the local encrypted secrets.enc file; only its random 32-byte master key is stored in the system keychain; SSH agent; key generation and public-key install.
  • Backup: one password-encrypted file (Argon2id, XChaCha20-Poly1305) holding hosts, credentials with their secrets, proxies, port forwards, preferences and trusted host keys, to restore on another device under its own master key; the local master key and device MCP token are excluded.
  • Networking: multi-hop jump hosts, HTTP / SOCKS5 proxies, local / remote / dynamic port forwards.
  • Convenience: import from ~/.ssh/config, quick connect (user@host:port), a server metrics bar, light and dark themes, English and Simplified Chinese.

At startup SSHYard loads hosts and settings without requesting access to the system master key, and unlocks saved secrets silently only when the system keychain allows it without asking (for example after choosing Always Allow on macOS). Otherwise saved secrets remain encrypted until an explicit action needs them or you choose Unlock Saved Secrets; local terminals and ordinary settings remain available. If access is denied or fails, Retry requests access again and Cancel preserves drafts and keeps the app usable with secrets locked. Automatic forwards and device MCP wait for an unlock; credentials never fall back to memory-only storage. The former per-secret keychain layout is not migrated or read.

Development

Requires Go 1.27.3 (GOTOOLCHAIN can download it). No cgo is needed.

# run
go run .

# run the development app; on macOS prefer an "Apple Development" identity
# stable signing can reduce keychain prompts; self-signing does not guarantee
# access across rebuilds, and macOS may still request authorization
scripts/run-dev-app.sh

# keep data in a separate directory
SSHYARD_DATA_DIR=/tmp/demo go run .

# a local SSH server for testing (macOS / Linux)
go run ./cmd/devsshd -addr 127.0.0.1:2222 -user demo -password demo -root /tmp/remote

# a local HTTP / SOCKS proxy for testing
go run ./cmd/devproxy -addr 127.0.0.1:3128

# tests and checks
go test -race -count=1 ./...
go vet ./...
gofmt -l .

# regenerate the locale catalog after editing locales/*.json
GOFLAGS=-mod=mod go run github.com/egoist/mygo/cmd/mygo generate

# package into dist/
go tool mygo build -platform linux/amd64,windows/amd64,darwin/arm64,darwin/amd64 -o dist

To try it against devsshd, add a host 127.0.0.1, port 2222, user demo, password demo.

Contributor rules are in AGENTS.md.

Community Support

License

SSHYard is licensed under the GNU Affero General Public License v3.0.

Documentation

Overview

SSHYard is a cross-platform SSH client with a native interface: hosts, tabs and split panes of terminals drawn by its own VT engine, and SFTP.

Directories

Path Synopsis
cmd
devproxy command
Command devproxy is a development proxy on loopback, speaking HTTP CONNECT, SOCKS4/4a and SOCKS5 on one port, for trying SSHYard's proxy support where no proxy is installed.
Command devproxy is a development proxy on loopback, speaking HTTP CONNECT, SOCKS4/4a and SOCKS5 on one port, for trying SSHYard's proxy support where no proxy is installed.
devsshd command
Command devsshd is a development SSH server on loopback that runs a real shell in a PTY, with SFTP, for trying SSHYard where no sshd is installed.
Command devsshd is a development SSH server on loopback that runs a real shell in a PTY, with SFTP, for trying SSHYard where no sshd is installed.
Package icon provides the artwork used by the application icon.
Package icon provides the artwork used by the application icon.
internal
ai/acp
Package acp is SSHYard's client for one external local agent process speaking the Agent Client Protocol (github.com/coder/acp-go-sdk).
Package acp is SSHYard's client for one external local agent process speaking the Agent Client Protocol (github.com/coder/acp-go-sdk).
ai/acp/internal/fakeagent command
Command fakeagent is a scripted ACP agent for tests.
Command fakeagent is a scripted ACP agent for tests.
ai/agent
Package agent is SSHYard's built-in assistant: one host, one tool loop, every call checked by a policy.Gate.
Package agent is SSHYard's built-in assistant: one host, one tool loop, every call checked by a policy.Gate.
ai/audit
Package audit is the local JSONL log of AI actions.
Package audit is the local JSONL log of AI actions.
ai/history
Package history keeps the AI conversations of each host, to look back on and carry on.
Package history keeps the AI conversations of each host, to look back on and carry on.
ai/llm
Package llm is the model client: one streaming completion against the configured base URL, with function tools, in one of three wire formats (OpenAI Chat Completions, OpenAI Responses and Anthropic Messages), and one decision from a decision model (OpenAI Decisions, TypeSafe Jev).
Package llm is the model client: one streaming completion against the configured base URL, with function tools, in one of three wire formats (OpenAI Chat Completions, OpenAI Responses and Anthropic Messages), and one decision from a decision model (OpenAI Decisions, TypeSafe Jev).
ai/policy
Package policy grades what an AI agent wants to do by risk and decides, under the session's permission mode, whether SSHYard runs it, asks the user, or asks the review model.
Package policy grades what an AI agent wants to do by risk and decides, under the session's permission mode, whether SSHYard runs it, asks the user, or asks the review model.
ai/remote
Package remote runs an AI command on a host's existing SSH connection.
Package remote runs an AI command on a host's existing SSH connection.
aibrands
Package aibrands embeds LobeHub's original AI brand artwork, without tinting.
Package aibrands embeds LobeHub's original AI brand artwork, without tinting.
app
Package app is SSHYard's interface: the host sidebar, the tabs and split panes (native terminals and files browsers alike) and the settings, built with MyGo's immediate-mode ui package.
Package app is SSHYard's interface: the host sidebar, the tabs and split panes (native terminals and files browsers alike) and the settings, built with MyGo's immediate-mode ui package.
assets
Package assets is SSHYard's asset store: the hosts the user saved, with their groups and favorites, and the credentials, proxies and port forwards they use, kept as JSON in the user's data directory.
Package assets is SSHYard's asset store: the hosts the user saved, with their groups and favorites, and the credentials, proxies and port forwards they use, kept as JSON in the user's data directory.
fileicons
Curated basename associations for the bundled upstream artwork.
Curated basename associations for the bundled upstream artwork.
fonts
Package fonts lists the font families installed on the machine, for the interface's and the terminal's font settings.
Package fonts lists the font families installed on the machine, for the interface's and the terminal's font settings.
forward
Package forward runs port forwards over SSH: local (ssh -L), remote (ssh -R) and dynamic (ssh -D, a local HTTP/SOCKS proxy whose targets are dialed, and their names resolved, on the server).
Package forward runs port forwards over SSH: local (ssh -L), remote (ssh -R) and dynamic (ssh -D, a local HTTP/SOCKS proxy whose targets are dialed, and their names resolved, on the server).
gtkfix
Package gtkfix trims the room MyGo's window buttons take on Linux.
Package gtkfix trims the room MyGo's window buttons take on Linux.
icons
Package icons is SSHYard's icon set: SVGs from Remix Icon (https://remixicon.com, github.com/Remix-Design/RemixIcon, v4.8.0, Apache License 2.0; see LICENSE and NOTICE in this directory), embedded in the binary and drawn natively by MyGo's ui (ui.Icon), in the color of the text around them.
Package icons is SSHYard's icon set: SVGs from Remix Icon (https://remixicon.com, github.com/Remix-Design/RemixIcon, v4.8.0, Apache License 2.0; see LICENSE and NOTICE in this directory), embedded in the binary and drawn natively by MyGo's ui (ui.Icon), in the color of the text around them.
keychain
Package keychain stores business secrets in a local encrypted file, with only its random master key in the operating system keychain.
Package keychain stores business secrets in a local encrypted file, with only its random master key in the operating system keychain.
keys
Package keys reads the private keys a credential can hold: OpenSSH and PEM keys, and PuTTY's .ppk (versions 2 and 3, encrypted or not), which it converts to OpenSSH.
Package keys reads the private keys a credential can hold: OpenSSH and PEM keys, and PuTTY's .ppk (versions 2 and 3, encrypted or not), which it converts to OpenSSH.
layout
Package layout keeps SSHYard's workspace: tabs, each a tree of split panes, each pane showing one item.
Package layout keeps SSHYard's workspace: tabs, each a tree of split panes, each pane showing one item.
mask
Package mask hides IP addresses in what the app shows while privacy mode is on, as for a screen share or a recording: "12.32.43.55" is "1*.**.**.*5".
Package mask hides IP addresses in what the app shows while privacy mode is on, as for a screen share or a recording: "12.32.43.55" is "1*.**.**.*5".
mcp
Package mcp serves tools to AI agents on this computer only, three ways: the Model Context Protocol's Streamable HTTP transport at Path (JSON only, no event stream and no sessions: initialize, ping, tools/list and tools/call), the same tools as a plain HTTP API under APIPath, and a skill telling an agent how to use that API at SkillPath.
Package mcp serves tools to AI agents on this computer only, three ways: the Model Context Protocol's Streamable HTTP transport at Path (JSON only, no event stream and no sessions: initialize, ping, tools/list and tools/call), the same tools as a plain HTTP API under APIPath, and a skill telling an agent how to use that API at SkillPath.
netproxy
Package netproxy is SSHYard's proxies, both ways: dialing out through an HTTP CONNECT or SOCKS5 proxy (the first hop to a host), and serving HTTP (CONNECT and plain absolute-URI requests), SOCKS4, SOCKS4a and SOCKS5 on a local port (a dynamic -D forward).
Package netproxy is SSHYard's proxies, both ways: dialing out through an HTTP CONNECT or SOCKS5 proxy (the first hop to a host), and serving HTTP (CONNECT and plain absolute-URI requests), SOCKS4, SOCKS4a and SOCKS5 on a local port (a dynamic -D forward).
session
Package session is SSHYard's SSH sessions: it dials with golang.org/x/crypto/ssh, authenticates by password or private key, checks the host key against known_hosts, opens a shell on a PTY that feeds a vt.Terminal, keeps the connection alive and reconnects it.
Package session is SSHYard's SSH sessions: it dials with golang.org/x/crypto/ssh, authenticates by password or private key, checks the host key against known_hosts, opens a shell on a PTY that feeds a vt.Terminal, keeps the connection alive and reconnects it.
settings
Package settings keeps SSHYard's preferences in a JSON file.
Package settings keeps SSHYard's preferences in a JSON file.
sftpsvc
Package sftpsvc is SSHYard's file transfer service over SFTP (github.com/pkg/sftp): it lists remote and local directories and uploads or downloads a single file at a time, reporting progress.
Package sftpsvc is SSHYard's file transfer service over SFTP (github.com/pkg/sftp): it lists remote and local directories and uploads or downloads a single file at a time, reporting progress.
sshconfig
Package sshconfig reads OpenSSH client configuration (~/.ssh/config) for import: the Host blocks, with the directives SSHYard keeps (HostName, User, Port, IdentityFile, ProxyJump), Include, and the defaults of pattern blocks such as Host *.
Package sshconfig reads OpenSSH client configuration (~/.ssh/config) for import: the Host blocks, with the directives SSHYard keeps (HostName, User, Port, IdentityFile, ProxyJump), Include, and the defaults of pattern blocks such as Host *.
sshtest
Package sshtest is an SSH server in process, for SSHYard's tests and its development server (cmd/devsshd): password and public-key auth (one key, or an authorized_keys file checked as OpenSSH's StrictModes does), a PTY shell (a toy line shell, or a real one through Shell), keepalive replies, the sftp subsystem of github.com/pkg/sftp, exec requests, and TCP forwarding both ways (direct-tcpip channels, tcpip-forward requests).
Package sshtest is an SSH server in process, for SSHYard's tests and its development server (cmd/devsshd): password and public-key auth (one key, or an authorized_keys file checked as OpenSSH's StrictModes does), a PTY shell (a toy line shell, or a real one through Shell), keepalive replies, the sftp subsystem of github.com/pkg/sftp, exec requests, and TCP forwarding both ways (direct-tcpip channels, tcpip-forward requests).
theme
Package theme holds SSHYard's design tokens: the brand color, the light and dark palettes of the interface and of the terminal, and how a mode (auto, light, dark) chooses between them.
Package theme holds SSHYard's design tokens: the brand color, the light and dark palettes of the interface and of the terminal, and how a mode (auto, light, dark) chooses between them.
updater
Package updater is SSHYard's update client.
Package updater is SSHYard's update client.
vault
Package vault seals data with a password, for the backups that take SSHYard's data, secrets included, out of the keychain: the data is encrypted under a random vault key (XChaCha20-Poly1305), and the vault key is wrapped under a key derived from the password (Argon2id).
Package vault seals data with a password, for the backups that take SSHYard's data, secrets included, out of the keychain: the data is encrypted under a random vault key (XChaCha20-Poly1305), and the vault key is wrapped under a key derived from the password (Argon2id).
vt
Package vt is SSHYard's terminal emulator: a parser of the escape sequences a VT100/xterm-compatible terminal understands and the grid of cells they draw on, with scrollback, the alternate screen, 256 colors and truecolor.
Package vt is SSHYard's terminal emulator: a parser of the escape sequences a VT100/xterm-compatible terminal understands and the grid of cells they draw on, with scrollback, the alternate screen, 256 colors and truecolor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL