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.

Estus needs OpenSSH on the machine that runs it. macOS and Linux are supported; 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.1.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.1.1
File Size Uploaded Provenance Actions
estus-0.1.1.tar.gz 486.7 kB With provenance Details for estus-0.1.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for estus 0.1.1
File Actions
estus-0.1.1-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details for estus-0.1.1-py3-none-manylinux_2_34_x86_64.whl
estus-0.1.1-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details for estus-0.1.1-py3-none-manylinux_2_34_aarch64.whl
estus-0.1.1-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.1.1-py3-none-manylinux2014_x86_64.musllinux_1_2_x86_64.whl
estus-0.1.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.1.1-py3-none-manylinux2014_aarch64.musllinux_1_2_aarch64.whl
estus-0.1.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for estus-0.1.1-py3-none-macosx_11_0_arm64.whl

Total release size: 27.6 MB

Release files / estus-0.1.1.tar.gz

Download URL estus-0.1.1.tar.gz
Size 486.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f144d1f8c5faef5409eeef0ae7de5792ae96e6bd8faf00fd8352b948f291175c
BLAKE2b-256 checksum
How to use checksums
d6317ce2843f71420a0e40a4ea089f677531994a8092822c11befb2a9857521f
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 26, 2026.

Transparency log

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

Download URL estus-0.1.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
2f0377bb3c4b63eebd52a9a52e96976894a398f4eb12869063a04055f3f3953d
BLAKE2b-256 checksum
How to use checksums
d843cb611e49ce99e04b28ff5a68a373edb56243aae4ba586a3ac12be458de27
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 26, 2026.

Transparency log

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

Download URL estus-0.1.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
efdf9fdc34cc2e955960deeb2cfe2cedc7c715aa76168d86b7568c1d5c0b555c
BLAKE2b-256 checksum
How to use checksums
ce0d4fdd82576b3e324b3a59a4d50c613d39f4177d30c7a7347a419377ac0a42
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 26, 2026.

Transparency log

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

Download URL estus-0.1.1-py3-none-manylinux2014_x86_64.musllinux_1_2_x86_64.whl
Size 5.6 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
341745c94f1d33785a087a70ae4a13145f0b3bd9fa40fad8ee8cf561f95df1ff
BLAKE2b-256 checksum
How to use checksums
b2389082883a33bdac2ea9dc91baceb7af7707a1a0bbf0db3bb4558a920a2649
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 26, 2026.

Transparency log

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

Download URL estus-0.1.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
1348be1d11a5e0e2895c12251ff68e3147d5db73daba549d1fbe05ec4d14745e
BLAKE2b-256 checksum
How to use checksums
f89ae91fbe4ca64079b098d7058ac6578b325bc470f8fe4f8df8d78c107da5de
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 26, 2026.

Transparency log

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

Download URL estus-0.1.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
3dcf9ae240de613d4c524b2daca9f83874ac6a56c690322e79ced0c2b58c749d
BLAKE2b-256 checksum
How to use checksums
bb1d0b22294c948fc87bf5584a728e71b8d62a16ec76dd0531f2d9e089829b55
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 26, 2026.

Transparency log

Security for estus 0.1.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.1.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 26, 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