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), macOS (Apple silicon) and Windows (x64), for Python 3.8 and later:

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

Prebuilt binary. Each release has an archive per platform: a zip for Windows (Running on Windows), a tarball elsewhere. 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 archive 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.3.0

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.3.0
File Size Uploaded Provenance Actions
estus-0.3.0.tar.gz 501.7 kB With provenance Details for estus-0.3.0.tar.gz

Built distributions (wheels)

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

Total release size: 33.3 MB

Release files / estus-0.3.0.tar.gz

Download URL estus-0.3.0.tar.gz
Size 501.7 kB
Tags Source
SHA-256 checksum
How to use checksums
64521bf521d23b1b9fb093feef7667b50f7f98734117345259a8715382a0159e
BLAKE2b-256 checksum
How to use checksums
d0b9ea135b94cbac4ff7f7530a7e333d199a6630c02c29d42918088b894e4740
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.3.0-py3-none-win_amd64.whl

Download URL estus-0.3.0-py3-none-win_amd64.whl
Size 5.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
de98f9e775bf27424bd8b119c6e2d12188a43638e92add77929043e4efcd0982
BLAKE2b-256 checksum
How to use checksums
11c88aae3d3e10e1365d419cbde2058909e050e848d748b85b52d9720f1b0631
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.3.0-py3-none-manylinux_2_34_x86_64.whl

Download URL estus-0.3.0-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
093a3616d57eb6583c3869504a308741b085ffe712eb64e527cf5afccc433d25
BLAKE2b-256 checksum
How to use checksums
f88009f4eb62fb81b82391aec34d8ab5bc9411a182a3575027dd19943971f372
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.3.0-py3-none-manylinux_2_34_aarch64.whl

Download URL estus-0.3.0-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
09ed072dbd5ec74f4e66fd04e936a9bc04cbd26778c861c46d53647f4cfb1aca
BLAKE2b-256 checksum
How to use checksums
eee30371f3a0480fa98af2719e68492ea8321d26ad469b1ef23a79e3e2c2a8cf
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.3.0-py3-none-manylinux2014_x86_64.musllinux_1_2_x86_64.whl

Download URL estus-0.3.0-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
8aab8a2d23d7a761eeaf37aceada60703ce617855f7c9291f48caa42c28624e0
BLAKE2b-256 checksum
How to use checksums
a75566e1d2cca3a294833785acf603adbf688d8990288b85467526c1025593a2
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.3.0-py3-none-manylinux2014_aarch64.musllinux_1_2_aarch64.whl

Download URL estus-0.3.0-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
d5b38669716eecd4c10f02bab79244d9db831657300bfb9ffaf1da3f240d9fd3
BLAKE2b-256 checksum
How to use checksums
e6f7b48d4b14c7a96b5f550d69bdba53be86de5b838dbd9241a9339760e40904
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.3.0-py3-none-macosx_11_0_arm64.whl

Download URL estus-0.3.0-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
0d1b3763eab0f014304aba57790a3a1ab78eb03809f242b0f09b8afda0ad85c2
BLAKE2b-256 checksum
How to use checksums
9506afe193f85b9bd1c9b40652404e667ec299b530769a6d0cc18d292c4b4cc0
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.3.0

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 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for estus-0.3.0.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