A local-first secure server access layer for humans and AI agents.
Manage SSH hosts, credentials, remote access, and host-specific agent context from one deterministic interface — without putting secrets in config files, shell history, or an AI model's context.
Website · Documentation · Product README · 简体中文
OpenSSH is excellent at transport. The hard part is everything around it:
- remembering which hostname, user, port, bastion, or credential belongs to which machine;
- keeping passwords and key passphrases out of dotfiles, scripts, environment variables, and shell history;
- letting coding agents operate remote machines without exposing credentials to the model;
- keeping environment-specific procedures attached to the hosts where they actually apply;
- providing one consistent interface across macOS, Linux, and Windows.
servers-connect puts a small local control layer around OpenSSH.
Human
│
CLI / Local Web UI
│
▼
┌───────────────────────┐
│ serverctl │
│ │
│ Host inventory │
│ Credential routing │
│ Context routing │
│ Test / Exec / Files │
└───────────┬───────────┘
│
OpenSSH / SFTP
│
▼
Remote Servers
▲
│
AI Agent
│
Agent Skill
The core idea is simple:
Humans and agents can use a server without needing to know or expose its secret.
A managed server is more than an IP address.
| Layer | What servers-connect knows |
|---|---|
| Identity | alias, hostname, port, username, tags, notes, ProxyJump chain |
| Credential | password, private-key reference, key passphrase, ssh-agent/OpenSSH defaults |
| Context | working paths, host notes, host-bound Agent Skills |
| Action | test, connect, execute commands, browse and transfer files |
That turns this:
ssh -J user@bastion.example.com deploy@10.0.2.7into this:
serverctl connect db1And for an AI agent:
serverctl exec db1 --json -- uptimePasswords and key passphrases live in the operating system's native credential vault:
| Platform | Secret storage |
|---|---|
| macOS | Keychain |
| Windows | Credential Locker |
| Linux | Secret Service |
| Private keys | Existing local file; only the absolute path is stored |
serverctl does not inject secrets through command-line arguments, environment variables, config files, or shell history.
Authentication is handled out-of-band through OpenSSH AskPass:
AI Agent
│
│ serverctl exec gpu01 ...
▼
serverctl
│
│ credential identifier
▼
AskPass ───────────────► OS Credential Vault
│ │
│ actual secret │
◄───────────────────────────┘
│
▼
OpenSSH
│
▼
Remote Host
The secret is delivered directly to the SSH authentication process. It is not returned to the caller and does not enter the agent's model context.
Unsafe plaintext keyring backends are rejected rather than silently accepted.
See the full security model.
The project ships as an Agent Skill for Claude Code, Codex, Gemini CLI, Cursor, and other Agent Skills-compatible clients.
For managed hosts, agents are instructed to use serverctl instead of improvising with raw ssh, scp, sftp, rsync, or sshpass.
That gives agents a deterministic, machine-readable interface:
# Discover available hosts
serverctl server list --json
# Test connectivity
serverctl server test gpu01 --json
# Run a remote command
serverctl exec gpu01 --json -- nvidia-smi
# Transfer a file
serverctl get gpu01:/data/results.csv ./
# Resolve locally saved working paths
serverctl path resolve gpu01 --jsonConnection failures are classified — authentication failure, untrusted host key, timeout, DNS failure, and more — so an agent can branch on structured results instead of parsing prose.
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/xiayh0107/servers-connect/main/install.sh | shWindows:
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/xiayh0107/servers-connect/main/install.ps1 | iex"The installer installs dependencies, exposes serverctl, links the skill into detected local agents, and runs serverctl doctor.
Connecting to a server is only half the problem. After connecting, an agent may also need to know:
- cluster topology;
- scheduler conventions;
- approved health checks;
- project directories;
- storage layouts;
- deployment procedures;
- service-specific runbooks.
That information should not live in one giant global prompt.
servers-connect lets local Agent Skills be explicitly associated with the hosts where they apply:
gpu-login ───────┐
gpu-node-01 ─────┼── gpu-ops
gpu-node-02 ─────┘
storage-01 ────────── storage-ops
production-web ───── production-runbook
The workflow is target first, context second:
serverctl server list --json
serverctl skill resolve gpu-node-01 --jsonA host-skill binding is relevance metadata, not authorization. It does not grant permission to operate on a machine or bypass normal credential and host-key rules.
Manage bindings explicitly:
# Discover local skills without downloading or installing anything
serverctl skill discover --json
# Register one and bind it to selected hosts
serverctl skill add ~/.agents/skills/gpu-ops \
--server gpu-node-01 \
--server gpu-node-02 \
--json
# Resolve context for the current target
serverctl skill resolve gpu-node-01 --jsonWhen the target changes, agents are expected to resolve again instead of carrying host-specific context across environments.
See Using SSH Server Manager with AI agents.
git clone https://github.com/xiayh0107/servers-connect.git
cd servers-connect/ssh-server-manager
./scripts/bootstrap
./scripts/serverctl doctorOnce installed, use serverctl directly from PATH.
Preview first:
serverctl server importApply explicitly:
serverctl server import --applyThe importer follows OpenSSH Include directives and resolves aliases through ssh -G. Your original ~/.ssh/config is read but never rewritten.
serverctl credential add-password work-passwordThe password is entered through a hidden local prompt and stored in the OS credential vault.
Private key:
serverctl credential add-key deploy-key \
--key-path ~/.ssh/id_ed25519 \
--store-passphraseOr use ssh-agent / normal OpenSSH defaults:
serverctl credential add-agent default-agentThere is deliberately no normal CLI command that dumps a stored password back to stdout.
serverctl server add web1 \
--hostname web1.example.com \
--username deploy \
--credential work-passwordThen:
serverctl server test web1
serverctl connect web1
serverctl exec web1 -- uptime
serverctl exec web1 --json -- systemctl is-active nginxUse --shell for pipelines or compound shell expressions:
serverctl exec web1 --shell -- 'du -sh /var/log/* | sort -h | tail -5'Bastions are modeled as ordinary managed hosts:
serverctl server add bastion \
--hostname bastion.example.com \
--username jump
serverctl server add db1 \
--hostname 10.0.2.7 \
--username dba \
--proxy-jump bastionProxyJump chains are ordered and checked for loops.
Resolve remembered working directories before searching blindly:
serverctl path resolve gpu01 --jsonTransfer individual files through the same credential and host-key boundary:
serverctl get gpu01:/remote/result.csv ./
serverctl put ./config.yaml gpu01:/remote/config.yamlThe Files page browses SFTP directories, uploads with conflict confirmation, and downloads ordinary files within the runtime transfer limit.
serverctl uiopens a management interface that listens only on loopback.
Use it to:
- add and edit servers;
- manage credentials;
- organize hosts with tags;
- inspect connection state;
- import OpenSSH configuration;
- browse remote files;
- manage Host ↔ Agent Skill relationships;
- reveal a stored secret after explicit re-authentication.
The UI uses a one-time launch token, Origin/Host validation, CSRF protection, a strict Content Security Policy, and WebAuthn/platform passkeys or an Argon2id master password for secret reveal.
Check or stop a background UI:
serverctl ui --status
serverctl ui --stopservers-connect does not weaken OpenSSH host-key verification.
An unknown or changed host key fails with a classified host-key-untrusted error. There is intentionally no convenience switch that silently turns on StrictHostKeyChecking=no.
Verify the fingerprint and resolve the trust decision explicitly.
There is no servers-connect cloud account required to hold your SSH inventory or credentials.
Host metadata
│
▼
local SQLite database
Passwords / passphrases
│
▼
OS credential vault
Private keys
│
▼
your existing filesystem
SSH transport
│
▼
OpenSSH
The trust boundary is your local OS user account, similar to OpenSSH's trust model for ~/.ssh.
A local secure server access layer around OpenSSH.
It handles:
- server inventory;
- credential routing;
- managed SSH configuration;
- secure authentication;
- host-key verification;
- remote command execution;
- file transport;
- host-specific Agent context.
Not an SSH implementation.
OpenSSH remains the transport layer.
Not Terraform or Ansible.
It does not define desired infrastructure state or fleet configuration. Those tools can sit above or beside it.
Not a generic Agent runtime.
It does not provide planning, memory, scheduling, or multi-agent orchestration. It provides one bounded capability: secure access to remote machines.
Not a cloud credential service.
Your host inventory and credentials remain local.
- Secrets are capabilities, not context. An agent may be allowed to use a credential without being allowed to read it.
- Targets come before context. Identify the host first; only then load environment-specific Agent Skills.
- Fail closed. Unsafe credential storage, ambiguous Skills, unknown host keys, and invalid security state produce errors instead of insecure fallbacks.
- Keep OpenSSH underneath. Add management and policy around a mature SSH implementation instead of replacing it.
- Humans retain trust decisions. Secret entry, secret reveal, host-key trust, and interactive shells remain explicit human-facing operations where appropriate.
| macOS | Linux | Windows | |
|---|---|---|---|
| CLI + Local Web UI | ✅ | ✅ | ✅ |
| Native credential vault | Keychain | Secret Service | Credential Locker |
| Secret reveal re-auth | Passkey / master password | Passkey / master password | Passkey / master password |
| SSH connection reuse | ✅ | ✅ | — |
See platform notes for details.
| Guide | Description |
|---|---|
| Quickstart | From installation to first managed host |
| Installation | Installation methods and dependencies |
| CLI reference | Complete serverctl command surface |
| Web UI | Local management interface |
| AI agents | Agent Skill deployment and host-specific context |
| Security model | Trust boundaries and security invariants |
| Platforms | macOS, Linux, and Windows behavior |
| FAQ | Common questions and troubleshooting |
Product source, detailed docs, and the Agent Skill live in ssh-server-manager/.
servers-connect/
├── ssh-server-manager/ # Product source, CLI, Web UI, docs and Agent Skill
├── website/ # Project website
├── install.sh # macOS / Linux installer
├── install.ps1 # Windows installer
└── README.md # You are here
SERVER ACCESS
Identity
+
Credential
+
Context
+
Action
│
▼
Remote Environment
A server is not merely an address. For a human or an AI agent, it is an environment with an identity, an authentication boundary, relevant operational knowledge, and a controlled set of actions.
servers-connect keeps those pieces together.