Mate replaces SSH, sudo and the shell on a server. People and AI agents act through commands that are checked, signed and logged, and nothing else on the server is reachable.
What it is
Mate is a shell for people and for AI agents. Every action in it is a Captain program. A line typed at the prompt is a one-line program, and an agent writes longer ones. An agent never writes shell scripts or Python.
A program is checked before it runs. Anything that would change the machine is shown first. Every program has a time limit, and every step is logged.
On a server, Mate is two small services:
matedfaces the network and holds no authority. It knows each caller by a pinned TLS identity and passes their signed requests on.- The executor is the only part that runs as root. It acts only on requests a pinned
caller signed, judged by that caller's rights. Each program runs in a worker of its own,
as an account that owns nothing, with no network. Every step goes into an audit log that
matedcan't write.
What it does
One vocabulary instead of Unix tools
- Every command is a verb and a noun:
show process,restart service,edit file,fetch file. Each one replaces a Unix tool, such asps,systemctl,sedorcurl. - Commands return typed values, which read the same on Linux and macOS.
- The old words don't run. Type
psand Mate names the command that replaced it. - No command runs an arbitrary program. A caller can do exactly what its list of commands allows.
Changes shown before they happen
- A file edit is shown as a diff, and a deletion shows the lines it removes. A stopped process is named by its pid and its start time. Each one asks before it happens.
- A file is changed only if it still has the digest that was shown.
fetch filekeeps a download only if its SHA-256 matches.
Authority that traces back to a key
- Callers are pinned by fingerprint. Each caller has a policy that lists the commands it may run and the paths it may list, read or write.
- A signed request is good for one machine, for five minutes, and only once.
- If
matedis taken over, the attacker gets an account that owns nothing. They can't run anything unsigned, replay a request or change anyone's rights.
Servers nobody logs into
show machineproves a server by its pinned identity, not by an address that answers.- Mate upgrades itself from digest-checked builds signed by an allowed caller. A new build that doesn't answer within two minutes is rolled back by the server.
- Logs, ports, services, disks, memory, accounts, callers and reboots each have commands.
- Logs record file contents and secret arguments by digest and size, never their text.
For agents and tools
mate mcpgives an agent Mate in place of bash. Its programs come back with errors to fix before anything runs.mate console --jsonis a machine interface for other programs. A change is made only when the host sends back the digest of the plan a person saw.
Where it runs
Mate runs on Linux x86-64 and macOS arm64. On Linux, a server runs mated and the
executor. On macOS, mated still uses an older helper run through sudo. On your own
machine, Mate works without mated: a program may look anywhere you may, and may edit
files only beneath the directory Mate started in.
Fleet reaches every server it makes through Mate, and WishOS Server is built around it.
What it is not
- Not a general shell. It can't run arbitrary programs, and the Unix commands are not kept as aliases.
- Not a configuration tool over SSH. It needs no SSH, even the first time a server is set up.
Getting it
- Mate is the Gritpack package
@frogfish/mate, for Linux x86-64 and macOS arm64. - Official binaries are licensed by Frogfish LLC under the Frogfish Binary License 1.0.