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.

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

flowchart LR
    A[Agent / MCP client] -- "MCP over stdio" --> E[estus]
    E -- "your OpenSSH" --> H1[web-1]
    E --> H2[db-1]
    P[(your policy: TOML)] -.-> E

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.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.1.0
File Size Uploaded Provenance Actions
estus-0.1.0.tar.gz 485.9 kB With provenance Details for estus-0.1.0.tar.gz

Built distributions (wheels)

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

Total release size: 27.6 MB

Release files / estus-0.1.0.tar.gz

Download URL estus-0.1.0.tar.gz
Size 485.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a3c90607f8824fb9e2f2e221ded34c7bd05b3ad6f74ff4a38226c23ae24a108c
BLAKE2b-256 checksum
How to use checksums
85f9772e1520bc9a21d2059724df06ace46cf9f06d0758ea892d8926f9a1c357
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 25, 2026.

Transparency log

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

Download URL estus-0.1.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
2dbb88a7aa6d0a6c3cf5e87d135e80dac71c92a2d940923efe19f46ba7768d4b
BLAKE2b-256 checksum
How to use checksums
e2f93117c04b86bf8e1d5f57274bb25150cb9939c6b168e254a12a6f6b95a338
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 25, 2026.

Transparency log

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

Download URL estus-0.1.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
8ddcd14bca1276097dd129fa5eb6b643a120ac0e71b50ebd270a1a4bfc234b97
BLAKE2b-256 checksum
How to use checksums
1f675a6d54bc11b525a2a9431393dd05f3aa70c358994411363bf615d2198e80
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 25, 2026.

Transparency log

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

Download URL estus-0.1.0-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
1c877a400e3d2d4d9393c31c861ead7bdf5cb765c6d2b0c9bac7b6f4601907eb
BLAKE2b-256 checksum
How to use checksums
3b8fc817317394f5eefd1d932ab9b161de0c3d9b2cbe1537219057b78f4ca5a4
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 25, 2026.

Transparency log

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

Download URL estus-0.1.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
1fe1c5e80ad050026c15e08c4b43e7d26b5feb8851e2214b14715f2fc85640b1
BLAKE2b-256 checksum
How to use checksums
19662aef7bd6ab34462494b75ae8b445e7e6b737419b420737861f630128fcd4
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 25, 2026.

Transparency log

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

Download URL estus-0.1.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
4e67a43d5746c773bf7321f5953622357ee7682cc3714928be70eb96b1973349
BLAKE2b-256 checksum
How to use checksums
c89ed80ffef274b5af434ce87d1bede113ba737c7bf34fda27d8b36912f83c0f
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 25, 2026.

Transparency log

Security for estus 0.1.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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for estus-0.1.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 25, 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