Skip to main content

Estus

Keep SSH in your hands.

Estus is an MCP server that lets an AI agent triage and operate Linux hosts over SSH, through structured, policy-gated tools instead of a raw shell.

SSH baseline Coverage OpenSSF Scorecard crates.io PyPI License: AGPL-3.0-or-later

Status: pre-1.0. Configuration format and tool schemas may change between releases. Read the security model before pointing Estus at anything you care about.

Why

Giving an agent ssh gives it a shell with all of your access, and "allow this command?" prompts are hard to review. Estus sits in between. The agent calls named tools with typed arguments, and you decide, per host, which tools exist and what they can touch.

  • Tools, not shell strings. observe_memory, inspect_journal, change_systemd_unit. Catalog tools take fixed, typed inputs and return structured results, so there are no flags or paths to smuggle in.
  • Ansible modules as tools. Turn any module from an offline bundle into a typed tool of your own, with no playbooks. See below.
  • Policy per host. Production can be read-only while staging may restart services. Rules combine by "strictest wins", so file order never weakens them.
  • Tiered for approvals. Every tool is observe, inspect, preview, change or exec. Auto-approve reads; prompt for the rest.
  • Honest about failure. If a change's acknowledgement is lost, Estus doesn't guess. It locks writes on that host and never retries. You reconcile, then unlock.
  • Your SSH, your credentials. Estus runs your OpenSSH. It never sees, stores or asks for keys, and uses your host-key checking and ProxyJump. Targets need only sshd and python3 (3.8+).

How it works

An agent or MCP client talks to estus over MCP on stdio; estus checks each call against your TOML policy and runs it on hosts such as web-1 and db-1 through your OpenSSH.

Your MCP client starts Estus as a local process. Estus validates each call against your policy, runs it over SSH, and returns a structured result.

An example

You ask: "Is web-1 under memory pressure?" The agent calls observe_memory:

{"host": "web-1", "inputs": {}}
{
  "data": {
    "status": "successful",
    "complete": true,
    "changed": false,
    "host": "web-1",
    "projection": {
      "status": "complete",
      "value": {
        "memory_bytes": {
          "mem_total_bytes": 33532788736,
          "mem_available_bytes": 32737964032,
          "swap_total_bytes": 1073733632,
          "swap_free_bytes": 1073733632
        },
        "vm_counters": { "oom_kill_events": 0, "swap_out_pages": 0 }
      }
    }
  },
  "error": null
}

(Trimmed for length.) The agent never wrote a shell command, and could not have asked for anything outside this tool's schema.

Tiers

Tier Meaning Suggested approval
observe Read-only telemetry allow
inspect Sensitive reads (logs, files, processes) and active probes ask
preview "What would this change do?", read-only ask
change One mutation ask
exec Arbitrary remote execution ask

Estus ships a large catalog of reviewed tools (systemd, network, storage, kernel, packages, logs and more) that you opt into by name or by preset. It also has a few generic builtin tools for files and commands. They are off until you enable them in [capabilities]: reading files, writing files, running commands and sudo are separate switches. See concepts.

Ansible modules as tools

Estus can run Ansible modules, compiled ahead of time into an offline bundle, as typed tools. Some ship in the catalog, such as package changes with a check-mode preview and diff. Or turn any module into a tool of your own: you choose the inputs the agent may pass, fix every other argument, and pick which fields of the result come back.

# fragment: the core of a custom tool
[tools.observe_path_stat]
execution = { kind = "ansible_module", module = "ansible.builtin.stat" }
input_map = { path = "path" }                           # all the agent supplies
fixed_args = { get_checksum = false, get_mime = false } # everything else is yours

[tools.observe_path_stat.result]
kind = "ansible_projection"
fields = { exists = ["stat", "exists"] }                # all that comes back

Nothing needs Ansible at run time, on the machine running Estus or on the target; the target needs Python 3.9 or later for these tools. The agent can't widen what the tool does, and its name sets its tier, so your approval rules apply. A module does run as code on the target under the authority you pick, so review it, and the bundle, like anything else you deploy. See Ansible bundles to build one and Define your own Ansible tool for the full example.

Install

pip or uv. Prebuilt wheels for Linux (x86_64 and aarch64, glibc or musl) and macOS (Apple silicon), for Python 3.8 and later:

uv tool install estus    # or: pipx install estus
estus --version

Prebuilt binary. Each release has a tarball per platform. Use -gnu on glibc 2.34 or later (RHEL 9, Ubuntu 22.04, Debian 12) and -musl, a static build, on anything older or on Alpine:

curl -fsSL https://github.com/aw1cks/estus/releases/latest/download/estus-x86_64-unknown-linux-gnu.tar.gz | tar xz
./estus-x86_64-unknown-linux-gnu/bin/estus --version

The tarball carries the tool catalog, and Estus finds it next to the binary.

Cargo. Needs Rust 1.88+. The crate is estus-mcp; it installs the estus command. The catalog is built into the binary, so write it to disk once, next to the binary, where Estus looks for it:

cargo install estus-mcp --locked
estus catalog install

After upgrading, run estus catalog install --replace to refresh it.

Nix (includes the tool catalog):

nix run github:aw1cks/estus -- --config /path/to/estus.toml

Use github:aw1cks/estus#automation instead for a build that also ships an Ansible bundle.

Home Manager (needs a release with programs.mcp, 26.05 or later). The flake exports a module that writes estus.toml for you, checks it at build time and registers Estus in programs.mcp.servers:

{
  imports = [ inputs.estus.homeModules.default ];
  programs.estus = {
    enable = true;
    settings = {
      capabilities = { named = true; file_read = true; };
      selection.presets = [ "linux-health" ];
      targets.web-1.ssh_host = "web-1";
      automation.targets.web-1.destination = "web-1";
    };
  };
  programs.claude-code.enableMcpIntegration = true; # or opencode, codex, ...
}

See Connecting a client.

Estus needs OpenSSH on the machine that runs it. macOS and Linux are supported, and Windows runs from a Cargo build with a few differences; targets are Linux. To build from source, see building from source and packaging.

Quick start

A config with one host, read-only:

mode = "headless"
capabilities = { named = true, file_read = true }

[selection]
presets = ["linux-health"]

[targets.web-1]
ssh_host = "web-1"                # a Host from your ssh config

[automation.targets.web-1]
destination = "web-1"
python = "/usr/bin/python3"

Check what it allows, without connecting anywhere:

estus --config estus.toml auth explain web-1

Then add it to your MCP client. For Claude Code:

claude mcp add estus -- estus --config /absolute/path/to/estus.toml

Getting started goes through this step by step, and Connecting a client covers other clients and approval rules.

Security

Estus is a policy and honesty layer between an agent and OpenSSH. It is not a sandbox: exec_command runs arbitrary shell on the target when you enable it, and anything that runs as the same OS user as Estus can bypass it. The security model says what is and isn't enforced, and deployment shows how to run it with separated accounts. To report a vulnerability, see SECURITY.md.

Documentation

License

AGPL-3.0-or-later.

Metadata

Release files for estus 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for estus 0.2.1
File Size Uploaded Provenance Actions
estus-0.2.1.tar.gz 500.0 kB With provenance Details for estus-0.2.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for estus 0.2.1
File Actions
estus-0.2.1-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details for estus-0.2.1-py3-none-manylinux_2_34_x86_64.whl
estus-0.2.1-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details for estus-0.2.1-py3-none-manylinux_2_34_aarch64.whl
estus-0.2.1-py3-none-manylinux2014_x86_64.musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64, Linux glibc 2.17+ x86-64 Details for estus-0.2.1-py3-none-manylinux2014_x86_64.musllinux_1_2_x86_64.whl
estus-0.2.1-py3-none-manylinux2014_aarch64.musllinux_1_2_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64, Linux musl 1.2+ ARM64 Details for estus-0.2.1-py3-none-manylinux2014_aarch64.musllinux_1_2_aarch64.whl
estus-0.2.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for estus-0.2.1-py3-none-macosx_11_0_arm64.whl

Total release size: 27.6 MB

Release files / estus-0.2.1.tar.gz

Download URL estus-0.2.1.tar.gz
Size 500.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d8aeddcf5398c361bf041ac9a838a356a03ba9dcd1a51441236cc2b63aefadb7
BLAKE2b-256 checksum
How to use checksums
6c3f4909eaf4f8496941e7b0c540277be389f3ec0b038a6d53fc173b2ae035d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / estus-0.2.1-py3-none-manylinux_2_34_x86_64.whl

Download URL estus-0.2.1-py3-none-manylinux_2_34_x86_64.whl
Size 5.7 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
1c2c67d1cb1d111152a6c21708ac097c5e2c1865efb11f4445799e7607c40bd0
BLAKE2b-256 checksum
How to use checksums
a84240d257e2ac8ccdeceaf76643820c12bb12fe6921e16eb5f7257299f5a7ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / estus-0.2.1-py3-none-manylinux_2_34_aarch64.whl

Download URL estus-0.2.1-py3-none-manylinux_2_34_aarch64.whl
Size 5.3 MB
Tags Linux glibc 2.34+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0f48a1208235948f639ec34ad1688c1f41d0ed47a0a320f4c9baa613753e4bda
BLAKE2b-256 checksum
How to use checksums
dd27b66b4ec48ab46a17e997e70d40f3b5b5116dfa3c41632b0a47e9f3282daa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / estus-0.2.1-py3-none-manylinux2014_x86_64.musllinux_1_2_x86_64.whl

Download URL estus-0.2.1-py3-none-manylinux2014_x86_64.musllinux_1_2_x86_64.whl
Size 5.7 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
80c0d70b56df97ba6fd45057151cb059b7da61ed01cd7005ca06911d51a126de
BLAKE2b-256 checksum
How to use checksums
eaf86c655e092ab2dd2f53f266c219c50ac7aea187d7676c5a12b897c4703342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / estus-0.2.1-py3-none-manylinux2014_aarch64.musllinux_1_2_aarch64.whl

Download URL estus-0.2.1-py3-none-manylinux2014_aarch64.musllinux_1_2_aarch64.whl
Size 5.3 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
8a263abe67752e26f85f9f7d6e6ebe932045d150e1f728aa290421040e0947b6
BLAKE2b-256 checksum
How to use checksums
bddec22bbc1bef66a0edb97a51601b50f14264febc174bcf507234f85cff701d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / estus-0.2.1-py3-none-macosx_11_0_arm64.whl

Download URL estus-0.2.1-py3-none-macosx_11_0_arm64.whl
Size 5.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ac1a45fd9ec95126b4a788ea5100a4e421f3159e81d0c718de5ae1e8cbe4ac2b
BLAKE2b-256 checksum
How to use checksums
d1a6ea8b6f5a0617e15afc6d590b10af7f5992562dc9e06158a9d5497db369a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for estus 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for estus-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page