This release is a pre-release and may not be stable for production use.
hermes-mordred
Privacy-preserving plugins for the Hermes agent: hardware-backed keys, Tor/VPN routing, local-LLM policy enforcement, end-to-end gateway messages, and macOS-integrated at-rest secret encryption.
Status: active alpha — current release 0.1.0a18.
New here? Follow the Quickstart for the shortest path from an existing Hermes install to encrypted secrets.
The plugins
The package exposes six hermes_agent.plugins entry points:
| Plugin | Purpose |
|---|---|
mordred_privacy_check |
Skill-metadata policy enforcement and audit logging |
mordred_wizard |
The hermes-mordred CLI |
mordred_llm_guard |
Strict-mode local-LLM enforcement |
mordred_network |
Tor, VPN, and clearnet path management |
mordred_keyvault |
Secure Enclave / TPM-backed key management |
mordred_e2e |
Encrypted Slack and Discord gateway commands and replies |
Requirements
- Python 3.11 or newer; CI currently tests 3.11–3.13.
hermes-agent>=0.13.0. Use the canonicalhermes-mordredcommand across the supported Hermes range.- macOS or Linux. macOS can fall back from Secure Enclave to a software P-256 key in the login Keychain. Linux requires TPM 2.0 and fails closed when its helper is unavailable.
- The transparent
.env, configuration, agent-memory, and workspace encryption lifecycle is currently macOS-only. Linux supports the TPM-backed keyvault, but these runtime targets report inactive and continue to use plaintext.
Install (users, from PyPI)
Start with an installed Hermes Agent, then run the Mordred installer:
curl -fsSL https://raw.githubusercontent.com/mordredagent/hermes-mordred/main/scripts/install.sh | bash
To include the browser-extension server and Ethereum wallet support, pass the
installer option through bash:
curl -fsSL https://raw.githubusercontent.com/mordredagent/hermes-mordred/main/scripts/install.sh | \
bash -s -- --with-extension
Add --version VERSION (replacing VERSION with the release to install) to
pin either form to an exact PyPI release. The options can be combined:
curl -fsSL https://raw.githubusercontent.com/mordredagent/hermes-mordred/main/scripts/install.sh | \
bash -s -- --with-extension --version VERSION
The script follows Hermes's own install layout: it resolves the environment
behind the hermes on your PATH, checks the Hermes version, selects the
macOS or Linux dependencies, installs the PyPI package there, and writes a
hermes-mordred launcher next to hermes that scrubs PYTHONPATH /
PYTHONHOME exactly as Hermes's own launcher does. It does not configure
Mordred or create keys.
When upgrading from mordred-hermes==0.1.0a15 or older, the installer first
confirms that a real hermes-mordred>=0.1.0a16 release is available. Only then
does it uninstall the legacy distribution and install the canonical one. This
avoids two distributions owning the same mordred_hermes files; configuration,
keys, audit data, and other state under ~/.hermes/ are not changed.
To inspect the script first, download it and run less mordred-install.sh
before bash mordred-install.sh. The equivalent manual commands are:
# macOS
uv pip install --python ~/.hermes/hermes-agent/venv/bin/python3 \
"hermes-mordred[macos]==0.1.0a18"
# Linux
uv pip install --python ~/.hermes/hermes-agent/venv/bin/python3 \
"hermes-mordred[keyvault]==0.1.0a18"
See the Quickstart for the inspect-before-running sequence and first-time setup.
Optional extras are dependency groups, not Hermes plugins. Install any combination in one step, or add them later by rerunning the installer:
curl -fsSL https://raw.githubusercontent.com/mordredagent/hermes-mordred/main/scripts/install.sh | bash -s -- --extras extension,ethereum,messaging
The installer selects macos or keyvault automatically. Use --all-extras
for all four feature extras, or set MORDRED_INSTALL_EXTRAS to the same
comma-separated list in automation.
| Extra | Use it for |
|---|---|
extension |
Browser-extension WebSocket server and wallet RPC transport |
ethereum |
HD-wallet derivation and signing |
messaging |
Terminal QR codes for extension pairing |
tor-control |
Deep Tor liveness checks |
Enable the plugins
The first configure run adds all six mordred_* entries to
plugins.enabled in ~/.hermes/config.yaml. No manual edit is normally
required.
Use it
The fastest path is the guided orchestrator:
hermes-mordred setup
setup probes each step in order and only runs what is still incomplete, so
it is safe to re-run after an interruption. It never deletes or recreates an
existing keyvault: a blocked or corrupt keyvault stops setup with repair
guidance instead of auto-repairing it. Add --non-interactive to run the
automatable subset and list the interactive commands still needed (exit code
0 only once everything is set up).
Prefer to drive each step yourself, or need to fix just one? setup runs the
manual sequence below, in the same order (after first checking upstream
Hermes) — start with the standalone command:
hermes-mordred configure # policy / LLM / harness setup
hermes-mordred network init # optional: Tor / VPN / clearnet
Prepare the platform key helper, then create the keyvault:
# macOS: unattended keys work in background gateways without Touch ID prompts
hermes-mordred keyvault enable-se
MORDRED_SEKEY_UNATTENDED=1 hermes-mordred keyvault init
# Linux: run these instead
hermes-mordred keyvault enable-tpm
hermes-mordred keyvault init
After initialization, create the first portable Keyvault snapshot in an existing private directory:
hermes-mordred keyvault export --output /secure/path/keyvault-backup.mrkv
The destination must not already exist. Store the snapshot separately from the
Keyvault init passphrase and 24-word Seed Phrase, and export a new snapshot
after every Keyvault content change, including keyvault eth new.
On macOS, turn on transparent .env encryption and verify it:
MORDRED_SEKEY_UNATTENDED=1 hermes-mordred encryption enable env
hermes-mordred status # the env row should read [on] enrolled
The environment variable applies to each command separately. keyvault init
creates the main keyvault key; the first encryption enable creates a distinct
device key for the at-rest file vault, so both creation commands need the flag
when both keys must be unattended.
On Linux, the supported operator path stops after keyvault initialization and
status. The transparent env/config startup shims are not active there, and
vault recover does not yet have a Linux device-anchor store;
encryption status reports enrolled targets as inactive and plaintext remains
the runtime source.
Everyday commands:
hermes-mordred status
hermes-mordred encryption status
hermes-mordred encryption enable <env|config|memory|workspace|all>
hermes-mordred network use <tor|vpn|clearnet>
hermes-mordred network status
hermes-mordred audit tail
Agent memories (~/.hermes/memories/) are encrypted by Mordred itself — no
Hermes release does it. The memory target is opt-in (via setup or
encryption enable memory), macOS-only, and rides on the env target, which
carries its key. Enabling seals the files already on disk; disable decrypts
them back. Restart a running hermes gateway afterwards — until you do, its
memory reads/writes fail closed (they do not write plaintext), and a session
may see an empty memory. Known limitations (raw readers,
out-of-process writers, approval-gated writes) are listed in
USAGE.md §3.
Once Hermes 0.19.0+ is configured and the plugins are enabled,
hermes mordred <command> exposes the same command tree. On older Hermes
versions, or before the first configure, keep using hermes-mordred.
See the Quickstart for expected output and the usage guide for every command and interactive prompt.
Verify discovery
hermes-mordred plugins list
# mordred_e2e / mordred_keyvault / mordred_llm_guard / mordred_network /
# mordred_privacy_check / mordred_wizard
hermes plugins list scans plugin directories and does not list package entry
points. Use Mordred's command above when checking this package.
Browser-extension WebSocket gateway (preview)
The optional extension server listens on ws://127.0.0.1:7788/ext, validates
the local peer and browser origin, and supports pairing, encrypted chat,
history, wallet accounts, and approval-bound signing.
The installer keeps preview dependencies out of its default install. Re-run it
with --with-extension to retain the platform keyvault dependencies and add
both the extension and ethereum extras:
curl -fsSL https://raw.githubusercontent.com/mordredagent/hermes-mordred/main/scripts/install.sh | \
bash -s -- --with-extension
For a custom feature set, use --extras; --all-extras adds every
user-facing feature extra:
curl -fsSL https://raw.githubusercontent.com/mordredagent/hermes-mordred/main/scripts/install.sh | \
bash -s -- --extras extension,ethereum,messaging
The equivalent version-pinned manual command on macOS is:
uv pip install --python ~/.hermes/hermes-agent/venv/bin/python3 \
"hermes-mordred[macos,extension,ethereum]==0.1.0a18"
Replace macos with keyvault on Linux, and add messaging only when you want
a terminal pairing QR.
The browser client is distributed separately as a
prebuilt Chromium extension.
Load its dist/ directory as an unpacked extension.
How it works
The extension authenticates with a one-time pairing flow and a rotated local
token. Gateway messaging uses the context-bound ENC:v3 wire and rejects
plaintext Slack/Discord agent commands. Security model and protocol details
are in the
Extension guide.
Run it (standalone)
hermes-mordred extension serve # foreground; Ctrl+C to stop
# second terminal
hermes-mordred extension pair
The published Chromium bundle is authorized for port 7788 only. Use
--port 7799 only with the bundled localhost page, tests, or a custom extension
build whose manifest permits that port. If 7788 is occupied, inspect the owner
before starting another server.
Standalone behavior notes
extension serve runs the real Hermes agent when its runtime is installed.
Stock hermes-agent does not host this API, and the Mordred plugin does not
start it automatically because Hermes currently exposes no plugin boot hook
for long-running services. Compatible legacy/custom gateways may host the API;
verify the process rather than inferring that from an occupied port. See the
Extension guide
for deployment, protocol, wallet, and troubleshooting details.
Install (development)
Use the repository's editable .venv, separate from the production Hermes
environment:
git clone https://github.com/mordredagent/hermes-mordred.git
cd hermes-mordred
uv sync --all-extras
.venv/bin/hermes-mordred status
Local commands read real ~/.hermes state unless HERMES_HOME is set. See
development setup
for safe isolation, loaded-code verification, and the full check suite.
Troubleshooting
- For keyvault, Touch ID, and recovery issues, see
USAGE §4.
The file-vault recovery command is currently macOS-only; encrypted data
cannot be recovered if both its device key and recovery passphrase are lost.
Keyvault snapshots are created with
keyvault exportand restored withkeyvault recover; keep the blob, init passphrase, and Seed Phrase separate. - For extension, gateway, and port 7788 issues, see the extension troubleshooting guide.
- For Tor/VPN issues, run
hermes-mordred network status, thenhermes-mordred network use <tor|vpn|clearnet>; restart Hermes if the route changed. - If the audit log falls back to plaintext with
mordred.degraded.audit_encryption_unavailable, restart from a context that can access the device key. Recovery is automatic. - The audit log is encrypted only after
keyvault init(it needs the device-wrapped log key); before that, entries are written in plaintext andhermes-mordred statusshows the audit-log row accordingly.
Upgrading
Re-run the installer with the same --extras, --all-extras, or
--with-extension flags you used originally, then restart the Hermes gateway
or a standalone extension serve process:
curl -fsSL https://raw.githubusercontent.com/mordredagent/hermes-mordred/main/scripts/install.sh | bash
This upgrades Mordred only and handles the transition from the old
mordred-hermes package name. A Hermes self-update can recreate
~/.hermes/hermes-agent/venv; when that happens, a bare re-run installs only
the base package and silently drops any extension, ethereum, messaging,
or tor-control extras from before, because a recreated venv only gets what
the re-run itself asks for. Repeat the same extras flags to keep them. A
re-run against an intact venv leaves already-installed extra dependencies in
place, but only a re-run with the same flags re-resolves those extras against
the new release, so pass them every time.
For a version-pinned upgrade, pass the desired PEP 440 release to the installer
(replace VERSION before running the command):
curl -fsSL https://raw.githubusercontent.com/mordredagent/hermes-mordred/main/scripts/install.sh | \
bash -s -- --version VERSION
Add --with-extension (or --extras ... / --all-extras) before --version
when that installation also runs the browser-extension gateway or uses its
Ethereum wallet bridge.
hermes-mordred upgrade migrates an existing Hermes or OpenClaw configuration;
it does not upgrade the package:
hermes-mordred upgrade
It is safe to repeat. Fresh installations should use configure instead.
Uninstall
Decrypt data before removing the package or keys:
hermes-mordred encryption disable all
hermes-mordred vault disable-config-decrypt
hermes-mordred encryption status # verify every target is off
Optionally destroy profile-owned keys only after verifying the plaintext data:
hermes-mordred keyvault reset --yes # irreversible
Remove the six mordred_* entries from plugins.enabled, then uninstall:
uv pip uninstall --python ~/.hermes/hermes-agent/venv/bin/python3 \
mordred-hermes hermes-mordred
# the launcher lands next to `hermes`, wherever that is
rm -f "$(dirname "$(command -v hermes)")/hermes-mordred"
State under ~/.hermes/mordred/ and installed native helpers are intentionally
left behind. Remove them manually only after confirming no encrypted data or
backup still depends on them.
Repository layout
src/mordred_hermes/ plugins and shared internals
native/ Secure Enclave and TPM helper sources
skills/ read-only Mordred status skill
scripts/install.sh user installer for the Hermes-managed environment
tools/ release and compatibility tooling
tests/ unit and opt-in integration tests
docs/user/ operator documentation
docs/dev/ specification and developer documentation
Documentation
| Audience | Document | Purpose |
|---|---|---|
| Users | Quickstart | PyPI install to protected secrets |
| Users | Usage guide | Complete command reference and ceremonies |
| Users | Extension guide | Browser extension, E2E messaging, and wallet bridge |
| Developers | Development index | Maintained sources of truth |
| Developers | Development setup | Editable environment and validation workflow |
License
MIT
Metadata
Release files for hermes-mordred 0.1.0a18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hermes_mordred-0.1.0a18.tar.gz | 1.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hermes_mordred-0.1.0a18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.4 MB
Release files / hermes_mordred-0.1.0a18.tar.gz
| Download URL | hermes_mordred-0.1.0a18.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a8a6bcdb503f8273a9ede6e4627147cae76e5e60cd62f82d8ffba5852b24768
|
|
BLAKE2b-256 checksum How to use checksums |
acaf3aa958f0b81e90e66c06a372acaa571e15bc18a9df64c126edc5626281d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 21, 2026.
Transparency logRelease files / hermes_mordred-0.1.0a18-py3-none-any.whl
| Download URL | hermes_mordred-0.1.0a18-py3-none-any.whl |
|---|---|
| Size | 939.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e684a8d6613d83b97dedafd5cfbc271b3ffed5fc53e64e86e7bc81badef3c5d
|
|
BLAKE2b-256 checksum How to use checksums |
62cf9f0b44e12035485df7fdbab37bf066cfc3310e8059cb241d16c87fa2de89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 21, 2026.
Transparency log