The map
sah means Service Automation Hub. The hub is the platform (SystemAPI, ComputeAPI, the execution shell adssh) plus this suite of utilities. Every utility has its own repository, version and release lifecycle. Six are usable end to end today, one of them from a repository that is not public yet; one works between two machines you control but is not yet joined to the hub; one is a library with no command; and one is reserved. Four more programs run on the enrolled host itself rather than on your machine; they are mapped under On the host.
| Tool | Job | State | Version |
|---|---|---|---|
| opensah | Local index. Lists every suite name with its role and state, and checks which binaries are on PATH. | Available | 0.1.0 |
| sahconnect | Log in, open a shell on a host through its agent, call the SystemAPI HTTP API, or pass arguments to adssh. | Available | 0.2.0 |
| sahapi | A loopback HTTP service with the suite catalog and three read-only SystemAPI proxies, for local tools and agents. | Available | 0.1.0 |
| sahlink | Start a process and capture its stdio; forward one TCP port, or RDP, through a host's agent. | Available | 0.2.0 |
| sahsync | Copy and sync files and directories through a host's agent. The scp, sftp and rsync-over-SSH replacement. | Available | 0.1.0, repository not public yet |
| sahmesh | Loopback SOCKS5 proxy that reaches every enrolled host by name: one multiplexed WebSocket per host, many TCP streams on it. | Available | 0.1.0 |
| sahrdp | Watch a host's desktop: a recorded, view-only sahrdp/1 stream and a native viewer for macOS, Linux and Windows. Not Microsoft RDP. | Early development | unversioned |
| sahxfer | Move one large file fast on its own encrypted UDP plane, once a grant allows it. | Early development | unversioned |
| sah2grpc | gRPC debug bridge: a daemon and a client that prints the hub's decisions. | Early development | no binary yet |
| sahcore | Reserved name. No role, binary or service. | Unassigned | — |
opensah tools prints the same names on your machine with its own short state words (built, optional, early, not_built, external) and adds the platform names adssh, systemapi and computeapi.
Which one do I reach for?
- I want a shell on a host. sahconnect. The host's outbound agent runs the terminal, so the host needs no inbound SSH.
- I want to call the SystemAPI HTTP API from a script. sahconnect api with a token or an API key. A local program that should not hold the key talks to sahapi instead.
- I want to copy a few files, a directory, or keep a tree in sync. sahsync. It is audited, refuses symlink tricks, and plans before it deletes.
- I want to move one big file as fast as the network allows. sahxfer. One file, one direction, one grant, its own UDP data plane.
- I want to reach a port on a host, such as a database or RDP. sahlink's TCP forward, the local half of
ssh -Lwithout SSH. - I want one proxy that reaches many hosts by name. sahmesh, a loopback SOCKS5 listener: dial
NAME.sah:PORTand it finds agentNAME. - I want to watch a host's desktop, recorded. sahrdp, once the display channel is wired. For a Windows host that already runs Remote Desktop, use sahlink rdp.
- I want to record exactly what a program I start reads and writes. sahlink run.
- I want to see which suite tools are installed here. opensah ready.
- I want to drive and inspect SAH decisions from a test harness. sah2grpc, once it has a binary.
- I want to script what happens in a login session on a host. sash, the shell the agent starts;
sash --needsprints the grant a script asks for and runs nothing. - I want a local audit chain and intrusion checks on one Linux host. systemapi-security, in early development.
- I want to supervise services from strict JSON units instead of systemd. sash-init, in early development and not yet PID 1 on a real host.
- I want to change nftables through a local API. nftapi, in early development.
- I want one small process to own listen sockets and hand each connection to a program or a local upstream. sahinetd, in early development and not for production use.
- I want to run commands under policy, with approvals and an audit chain. That is the shell, adssh, not a suite utility.
sahsync and sahxfer are not the same tool. sahsync moves many paths over the agent's file channel, one operation at a time, with an audit line per change. sahxfer moves exactly one regular file and puts the bytes on a separate UDP path with its own encryption, loss repair and pacing. Neither one grows a second login: both use the token that sahconnect login stores.
opensah
Available 0.1.0The local index. opensah tools prints one tab-separated line per suite name: name, state, role. opensah ready checks PATH and exits 1 when sahconnect, sahapi or sahlink (the built tools) is missing; a missing adssh, sahsync or sahxfer is reported without failing the check, and names without a binary are listed as no-binary. It does not start the other tools and does not call their APIs.
opensah tools
opensah ready
opensah versionsahconnect
Available 0.2.0The client. sahconnect login gets a bearer token by OAuth device login (it prints a URL and a code; you open the URL and enter the code, so a forwarded link alone cannot approve a login) and stores it in ~/.config/sahconnect/token, mode 0600. sahconnect <host> then opens an interactive shell on that host: the host's outbound agent runs the PTY, so nothing has to listen on the host. Piped stdin runs without raw mode, and the exit code is the remote shell's. --root asks for a root shell and needs the terminal:root scope.
export SYSTEMAPI_URL=https://systemapi.example
sahconnect login --username alice # prints a URL and a code
sahconnect web1 # shell on web1
echo uptime | sahconnect web1 # one command, piped
sahconnect api GET /api/v1/fleet # HTTP; SYSTEMAPI_API_KEY works too
sahconnect ssh -- version # pass through to the installed adssh
sahconnect logoutsahconnect api makes authenticated SystemAPI HTTP requests. sahconnect ssh launches SAHCONNECT_ADSSH, or adssh on PATH, with your arguments; it does not set ADSSH_SAH. The other file tools reuse this login and this configuration.
sahapi
Available 0.1.0A small HTTP service for the machine it runs on. It listens on a loopback address, checks a local bearer of 16 to 512 bytes, and serves a fixed suite catalog plus three fixed, read-only proxies into the operator's SystemAPI: fleet, alerts, and audit verification. /health is unauthenticated. It does not serve OAuth; device login stays in SystemAPI and dashboard login stays in Authentik. Use it when a local tool or agent should query the fleet without holding the SystemAPI key itself.
export SAHAPI_TOKEN='replace-with-16-or-more-bytes'
export SAHAPI_LISTEN=127.0.0.1:8787
export SYSTEMAPI_URL=https://systemapi.example
# Set SYSTEMAPI_API_KEY through your secret manager.
sahapi servesahlink
Available 0.2.0sahlink run -- <program> starts a program and records its stdin, stdout and stderr; a control socket on the local machine can read those streams and write to stdin, and an optional relay listens on loopback and dials one upstream host and port. It only sees the process it started: no attaching to an existing PID, no ptrace, and no sockets the child opens on its own.
Since 0.2.0, a TCP forward through the host's agent. sahlink web1:5432 listens on 127.0.0.1 and the agent on web1 dials 127.0.0.1:5432, the local half of ssh -L without SSH; -L PORT picks the local port and --via AGENT ADDR:PORT reaches a host that has no agent through one that does. sahlink rdp win1 opens that forward for RDP, keeps it up, and prints the matching mstsc, xfreerdp and macOS open commands. Reverse forwards (-R) are refused as reverse_unsupported.
sahlink run -- /bin/echo ok # stderr prints the socket and token-file paths
sahlink web1:5432 # local port to the host's PostgreSQL
sahlink -L 15432 web1:5432 # choose the local port
sahlink rdp win1Captured output can contain secrets the child prints. Treat the capture like the terminal it came from.
sahsync
Available 0.1.0 Repository not public yetFile copy and sync through a host's SystemAPI agent: the SAH replacement for scp, sftp and rsync over SSH. A remote is HOST:PATH. put uploads one regular file, get downloads one (or a tree with -r), ls lists, and sync makes a destination tree match a source tree in either direction (--from pulls). It copies whole files with no rolling checksums. --delete without --yes only prints the plan, as does --dry-run; --create makes a missing destination. Every real change writes one audit op=… path=… size=… sha256=… line to stderr, and a refusal is one code word such as exists, symlink_refused or agent_unsupported. --root runs the host helper as root and needs the admin-only file:root scope.
sahsync put ./app.tar.gz web1:/srv/app/
sahsync get web1:/srv/app/note.txt ./
sahsync ls web1:/srv/app/
sahsync sync ./site/ web1:/srv/www/
sahsync sync --from web1:/srv/www/ ./site-copy/
sahsync sync --delete ./site/ web1:/srv/www/ # prints the plan only; add --yes to applyHow it joins. sahsync opens its own file channel on the host's agent (file:read, file:write or the admin-only file:root ticket, then one WebSocket session of sequential operations), separate from the terminal channel sahconnect uses. That channel is on SystemAPI's main branch and the suite contract lists sahsync as a wired join. A Linux agent needs a kernel with openat2; a macOS or other non-Linux agent answers agent_unsupported. The client carries import-path-only copies of sahconnect's client, config, token and secure-file packages, so login and configuration are the same. The GitHub repository is still private; ask for access until it is published.
sahmesh
Available 0.1.0A loopback SOCKS5 proxy that reaches every host with a SystemAPI agent by name. sahmesh up binds 127.0.0.1:1080; the first connection to a host opens one multiplexed WebSocket for it, and every later connection to that host is a stream on the same socket. Dial NAME.sah:PORT to reach agent NAME with target local; an IP literal is sent through the agent of its longest matching route (--route CIDR=AGENT, repeatable, or ~/.config/sahmesh/routes.toml). Nothing else is routed: sahmesh never resolves DNS, and localhost, a bare name, a loopback literal, or an IP with no route is refused by the SOCKS reply. The listener is 127.0.0.1 or ::1 only, CONNECT only; BIND and UDP ASSOCIATE are refused.
sahmesh up # prints 127.0.0.1:1080
sahmesh up --listen 127.0.0.1:1085 --route 10.0.0.0/24=gw1
curl --socks5-hostname 127.0.0.1:1080 http://web1.sah:8080/healthzHow it joins. sahmesh up opens a session with a mesh:open ticket, its own operator scope separate from tcp:open, then one WebSocket per host that carries many streams. Each stream is opened with a mesh_open frame and is a TCP session under the same target validation, server tcp_policy, signed lease, limits, and per-actor and per-agent caps as sahlink's TCP forward, with tcp_start and tcp_end audit rows that also name the mesh session and the stream id. Credit runs per stream in both directions, so one stalled stream never stalls the others. The host agent is unchanged: it sees ordinary TCP-open frames. This call is in the suite contract's wired join, against the phase-0 mesh protocol contract; a client that resolves NAME.sah itself, instead of sending the name to the proxy, will fail to resolve it, which is the intended outcome.
For specifications and current engineering work, see Transfer documentation: wire protocol, API lifecycle, compatibility, failure semantics and measured performance.
sahrdp
Early development unversionedWatch a host's desktop. sahrdp speaks its own protocol, sahrdp/1, not Microsoft RDP, and takes no Windows password. There are two programs. sahrdp daemon runs on the host under a signed display lease, the same systemapi-lease-v1 envelope as the other channels. It reads frames from a capture pipe, records every frame in an HMAC-chained file before it sends any, and writes a view-only stream to stdout: JPEG tiles, plus PCM audio only when the lease grants audio=1 and the daemon allows it. It never listens on a port. Keyboard and mouse input, clipboard, printers and drive redirection are refused. sahrdp-gui is a native viewer for macOS, Linux and Windows, built with Fyne. It shows the tiles in a resizable or fullscreen window and plays granted audio, muted until you turn it on. It can also disconnect and reconnect. sahrdp client --out DIR saves a stream to a directory, and sahrdp verify checks a recording's chain and prints its digest.
git clone https://github.com/afterdarksys/sahrdp.git && cd sahrdp
go build -o sahrdp ./cmd/sahrdp # daemon, client, verify
go build -tags desktop -o sahrdp-gui ./cmd/sahrdp-gui # native viewer, needs a C compiler
./sahrdp-gui # opens the connection form
TRANSPORT --host web1 | ./sahrdp-gui --stdin --fullscreenWhat does not work yet. SystemAPI has no display channel, and the agent does not start the daemon, so no enrolled host serves a desktop. TRANSPORT above stands for an adapter you supply. It handles login, the ticket and the lease, and writes only the sahrdp/1 stream on stdout. No SAH command does that today. The daemon's capture path is Unix only, and Linux virtual-seat capture is the first planned seat. To reach a machine that already runs Remote Desktop, use sahlink rdp, which forwards the port with mstsc or xfreerdp on your side.
Source, README and PROTOCOL.md ↗
sahxfer
Early development unversionedBulk transfer of one large file. SAH decides whether the transfer may happen; sahxfer moves the bytes. The decision is a grant: host, root, path, size, hash, direction, expiry and a per-transfer key. The data plane is UDP with a 64-byte header, ChaCha20-Poly1305 sealing, NACK-based loss repair and a BBR-style pacer, so a big file crosses a long path at the rate the path allows rather than one TCP stream's share. One regular file, one direction, one grant: no directories, no deltas, no resume. A failed transfer deletes its temp file and starts over. A Linux end opens paths with openat2 (no symlinks, no fallback), so a Linux host needs a kernel that has it.
What works today. The grant-file mode, between two machines you control: grant writes a bootstrap grant file (mode 0600, the only disk copy of the key), recv listens with that grant on the receiving host, and put or get runs on the other side. relay forwards sealed datagrams between the two and cannot decrypt them; in grant-file mode it reads the grant file and keeps only the transfer id, route token and byte cap. Every finished command prints the grant id, the transfer id and ok; stderr is a single code word, and --diag adds the socket-buffer sizes and a warning when the receive buffer is too small for the arrival rate.
# receiving host
sahxfer recv --grant g.json --listen 0.0.0.0:47100 --root /srv/inbox
# sending machine
sahxfer put --grant g.json --to 203.0.113.9:47100 ./image.binWhat does not work yet. The hosted path, sahxfer put --url https://sah.example …, asks the hub for a grant and expects the host's agent to spawn recv. SystemAPI already serves the grant route, but no agent advertises xfer yet, so every real host answers agent_unsupported; no relay is deployed; and only put over UDP is issued, so hosted get and the QUIC transport are refused. The suite contract lists sahxfer as partially wired. Agents will start recv as the host user; it does not drop privileges itself.
Source, README and PROTOCOL.md ↗
sah2grpc
Early development no binary yetDebug and integration tooling for SAH over gRPC. The design describes sah2grpc, a daemon that binds loopback only and drives adssh sah for you (an Execute call spawns it, SubmitIdentity feeds it SAML, OIDC or passkey results), and grpc2sah, a client that prints the recorded decisions, so you can test policy, leases, identity flows and bad frames without hand-building frames. The design is accepted and the repository holds the protocol definitions and library packages, but no command has been built yet and nothing is wired: identity results stay not_wired until SAH consumes them.
sahcore
UnassignedThe name is reserved so it is not reused for a different product. There is no binary, module or service, and opensah ready lists it as no-binary. Nothing should be added there until a role is assigned.
On the host
These programs run on the enrolled machine, not on the operator's. Each has its own repository; none has a packaged release.
| Tool | Job | State | Version |
|---|---|---|---|
| sash | The login and emergency shell: a closed table of filters and agent verbs under a signed grant, with a scripting language. | Available | unversioned, language v6 |
| systemapi-security | Local security service secsvc: grants, an anchored audit chain, a host IDS and distro security modules. | Early development | unversioned |
| sash-init | Service supervisor sahinit, intended to replace systemd as PID 1. | Early development | unversioned |
| nftapi | A loopback JSON API for nftables with a closed rule language and threat-indicator feeds. | Early development | unversioned |
| sahinetd | A small inetd sinetd: one process owns the listen sockets and runs exec or proxy services. | Early development | unversioned |
sash
Available unversionedThe login and emergency shell of the SAH fleet: one Go binary. Under --session it runs a closed table of in-process filters and agent verbs under a signed grant, with no PATH lookup and no shell fallback; an unknown name is refused. Under --local it runs programs from PATH with the invoking user's permissions. The scripting language has pipelines of bytes and of rows, functions, structured errors, secret bindings that print as *** and cannot be a verb argument, plan mode, and record and replay against a fixture. --needs prints the grant a script asks for and --lint gives advisory findings; neither runs anything.
sash --needs -c 'unit status nginx' # the grant this asks for; runs nothing
sash --lint script.sash # advisory findings; runs nothing
sash --plan script.sash # plan modeHow it joins. On Linux the SystemAPI agent is built to exec sash --session for an ordinary terminal session, with rollout to hosts in progress. It passes the signed grant and a verb socket on file descriptors; a missing sash is sash_missing, never the passwd shell. Without --session the grant is empty: verbs are denied and filters still run. Break-glass stays in adssh, which can start sash with an emergency grant.
In the language now. Path values, defer and finally, capture, z and jump, and sash service files as the unit language for sash-init. What does not work yet. Agent-managed interactive jobs and expect are planned; job control and expect run only under --local.
The sash guide · Language reference · Source and README ↗
systemapi-security (secsvc)
Early development unversionedA local security service for one Linux machine. The binary is secsvc. Its only listener is a Unix socket, and each call carries a short-lived Ed25519 grant. It keeps an append-only audit chain in capped segments with a local anchor and a signed head that off-host witnesses can store, and it runs a host IDS: authentication failures from the auth log, file integrity against a baseline, and listeners against an allow list. Opt-in distro security modules cover Debian, Red Hat, Rocky, Ubuntu, Alpine and Arch. High findings page through ntfy; by default a page carries a kind, a count and a reference, not the host, a path or an address.
secsvc keygen --seed-out /etc/secsvc/seed
secsvc serve --dir /var/lib/secsvc --pub /etc/secsvc/pub.hex \
--host HOST --socket /run/secsvc/sock --interval 30s
secsvc audit verify --dir /var/lib/secsvcWhat does not work yet. The segmented, anchored chain, the signed head and the detail-free pages are on the default branch. The SystemAPI agent and control-plane collector of signed heads and witnesses, and its dashboard panel, are built on systemapi.io main, not yet deployed. Until they run, root on the host can still rewrite every local file; the off-host witness is meant to detect that.
The systemapi-security guide · Source and README ↗
sash-init (sahinit)
Early development unversionedA Go userspace service supervisor intended to replace systemd as PID 1. The binary is sahinit. Units are strict JSON. It boots them in dependency waves with readiness checks and restart limits and backoff, runs each under an explicit identity, can apply a Landlock sandbox, puts each service in its own cgroup v2 cgroup with kill-all and memory, CPU and PID limits, and answers on a local control socket. sahinit migrate previews conversion from systemd, daemontools or OpenRC and never runs their scripts. sahinit policy verifies and caches signed boot-policy metadata that either never expires, bounded by a signed revocation floor, or must be renewed.
sahinit plan --dir ./units
sahinit supervise --dir ./units --socket /run/sahinit/sahinit.sockA unit can also name a sash service script: sahinit verifies its signed grant and floor before every start and performs the script's privileged steps itself.
What does not work yet. It does not replace systemd on a host yet: supervise runs under an existing init with a delegated cgroup, and an experimental PID 1 mode is tested in virtual machines. Boot policy is metadata only for --dir catalogs; a verified deployment (exec units only) is the one mode where a signed policy admits units, and it has no issuer yet. There is no fleet signer for sash grants yet. These features are on the feat/host-ops branch, not yet merged into main. sahinit is licensed GPL-3.0-or-later (LICENSE).
The sahinit guide · Unit reference · Commands, files and codes · Source and README ↗
nftapi
Early development unversionedA localhost JSON API for nftables. POST /v1 takes one JSON object with a bearer key and returns JSON; GET /health is unauthenticated. The listen address must be a literal loopback address. Rules use a closed match and verdict language (accept, drop, reject); a rule outside it is listed as opaque. Built-in feeds (feed.list, feed.fetch) return threat indicators and leave the ruleset unchanged.
curl -sS -H "Authorization: Bearer $(cat nftapi.key)" -H 'Content-Type: application/json' \
-d '{"op":"ruleset.list"}' http://127.0.0.1:9789/v1What does not work yet. Named sets, for groups and for block and unblock, are planned and not in this build. SystemAPI is a planned client; nothing in the suite calls nftapi yet.
sahinetd (sinetd)
Early development unversionedA small inetd for the SAH suite. The repository is sahinetd; the binary and the configuration schema are sinetd. One static process owns the listen sockets. A service is either exec, where the accepted socket becomes the child's stdin, stdout and stderr, or proxy, a byte bridge to a loopback or Unix-socket upstream. TLS 1.3 can wrap either. Configuration is one strict TOML file, schema sinetd/1, and unknown fields fail. The commands are check, run, reload and debug.
sinetd check --config /etc/sinetd/sinetd.toml
sinetd run --config /etc/sinetd/sinetd.tomlWith source = "local" it serves the services in the file. With source = "fleet" it serves only what a signed listen lease allows; a lease lives at most 300 seconds, and a lapsed lease closes the listeners. It ships a sahinit unit.
What does not work yet. There is no release, a security review is in progress, and it is not for production use. Fleet mode is not wired: the SystemAPI side that issues listen leases is not on SystemAPI's main branch, so nothing in the suite sends sinetd a lease yet. The shipped sahinit unit asks for a capability that sahinit does not yet grant to a non-root unit, so it does not start under sahinit as shipped. The repository states no licence.
Install
Each installable tool is a Go module with a single command under cmd/; Go 1.26 or later builds them. Clone and install the ones you want, put GOBIN (or $(go env GOPATH)/bin) on PATH, then let opensah confirm what is there. The install guide walks through the three core tools and the shell.
for r in opensah sahconnect sahapi sahlink sahmesh sahxfer; do
git clone https://github.com/afterdarksys/$r.git
(cd $r && go install ./cmd/$r)
done
opensah readyNo tool has a packaged release download yet; the versions above are the version strings on each repository's default branch.
How to read the states
- Available. Built, tested, and listed as a wired join in the suite contract: it works against today's SystemAPI. For sash, that join is the agent starting it for a login session.
- Early development. The program or library exists, but the hub or agent side it needs is not wired yet, so an end-to-end run is refused.
opensah toolsprints these asearly. - opensah's
builtversusoptional.opensah readyfails only when abuilttool (sahconnect, sahapi, sahlink) is missing;optionaltools such as sahsync andearlyones such as sahxfer are reported without failing. - Unassigned. A reserved name with nothing behind it.
The availability and roadmap page tracks the joins between the platform pieces; this page tracks the utilities themselves.
Links
- Tool reference for the full ecosystem, including the shell and the farm tools
- Install and first steps
- afterdarksys on GitHub
Built on 2026-10-22 from each tool's README and source and from the SystemAPI suite contract (docs/sah-suite.md), which decides what counts as wired when a README disagrees. The host components were added on 2026-11-23 from their READMEs and design documents.