AxioRank security gateway for Hermes
Route every Hermes agent tool call through AxioRank, the security gateway for AI agents. It scores tool calls and tool results for live secrets, prompt injection, destructive operations, PII, and risky egress, injects a live guardrail policy into the model's turn, and can hard block a dangerous action before it runs.
Works offline with no API key (local detectors). Add an AXIORANK_API_KEY to also
escalate verdicts to the hosted gateway, apply your workspace policy, land the
session in a central audit log, and mint a signed, offline-verifiable Coding Session
Seal.
What you get
- Guard tools the agent can call:
axiorank_inspect(score a command, content, or a tool call),axiorank_scan_mcp(verify an external MCP server or agent card before trusting it),axiorank_verify(offline-verify an audit receipt). - A guardrail injected into every session: a standing policy banner plus a one-shot taint warning when a tool result is flagged, so a poisoned web page or MCP reply cannot quietly steer the agent.
- Audit and sealing: a per-session trace, a running risk tally, and a signed Coding Session Seal on exit (with a key).
- Optional hard blocking: a
pre_tool_callshell hook that denies a dangerous action before it executes, installed with one command. - A bundled skill that teaches the agent to self-gate risky actions.
Install
With pip (recommended)
pip install hermes-axiorank
Hermes discovers the plugin automatically on next start. Enable it:
hermes plugins enable axiorank
Directory drop
Copy the plugin into your Hermes plugins directory:
mkdir -p ~/.hermes/plugins/axiorank
cp -R src/hermes_axiorank/* ~/.hermes/plugins/axiorank/
pip install 'axiorank>=0.17' # the detection engine
hermes plugins enable axiorank
Use
Start Hermes. You should see axiorank: axiorank_inspect, axiorank_scan_mcp, axiorank_verify in the tool list. Check status any time:
/axiorank status
The agent will call the guard tools on its own (guided by the bundled skill). To load the skill explicitly:
skill_view("axiorank:secure-tool-use")
Hosted mode (optional)
Set a workspace API key to escalate to the hosted gateway and enable session seals:
export AXIORANK_API_KEY=axr_live_...
# optional, defaults to https://app.axiorank.com
export AXIORANK_BASE_URL=https://app.axiorank.com
Get a key from app.axiorank.com.
Hard enforcement (optional)
Python plugin hooks observe tool calls but cannot block them mid-flight. To hard block a dangerous action before it runs, install the shell hook:
hermes axiorank init # guards terminal, write_file, file_edit, patch, web_fetch, mcp__*
hermes axiorank init --tools all # guard every tool
hermes axiorank init --api-key axr_live_... # also save the key to ./.env
hermes axiorank init --print # print the config snippet instead of editing
This adds a pre_tool_call hook to ~/.hermes/config.yaml that runs
axiorank-hermes-guard. It denies a call the detectors flag as high risk and stays
silent otherwise, so Hermes's own permission flow is unaffected.
Configuration
The plugin runs with sensible defaults and no configuration. Environment variables:
| Variable | Meaning |
|---|---|
AXIORANK_API_KEY |
Workspace key for hosted escalation and session seals. Optional. |
AXIORANK_BASE_URL |
Gateway base URL. Defaults to https://app.axiorank.com. |
AXIORANK_MODE |
enforce or monitor for the shell guard. Defaults to enforce once installed. |
AXIORANK_HERMES_GUARD_DISABLE_REMOTE |
Force local-only scoring in the shell guard. |
AXIORANK_HERMES_GUARD_TIMEOUT_MS |
Shell guard hosted-call timeout. |
Posture (mode, deny threshold, blocked categories, result inspection, context
injection) can also be set through the host plugin config. Defaults: monitor posture
for the in-session hooks (they observe and inject context), a deny threshold of 75, a
review band from 50, and blocked categories secret, destructive, malware, injection.
How it works
- Scoring uses the AxioRank detectors from the
axiorankPython SDK, offline and keyless by default. - With a key, each call is also reported to
POST /api/gateway/tool-call; the central decision can only tighten the local one. - The
pre_llm_callhook returns context that Hermes appends to the user turn (never the system prompt), so the guardrail rides alongside the user's message and does not break prompt caching.
License
MIT
Metadata
Release files for hermes-axiorank 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hermes_axiorank-0.1.1.tar.gz | 38.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hermes_axiorank-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 80.4 kB
Release files / hermes_axiorank-0.1.1.tar.gz
| Download URL | hermes_axiorank-0.1.1.tar.gz |
|---|---|
| Size | 38.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ae1b0aaa2d7294f05d7d8f80c62e9eab0f9d146887c790ecabb87c819ae90df
|
|
BLAKE2b-256 checksum How to use checksums |
1f89db065cb45d8745d8084996ab7a8c68cf9fc55477016830ff83d45ef68659
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / hermes_axiorank-0.1.1-py3-none-any.whl
| Download URL | hermes_axiorank-0.1.1-py3-none-any.whl |
|---|---|
| Size | 42.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cb94f515aeb9ce9935c997792d876b591686f9732e49a948632186308f14de8
|
|
BLAKE2b-256 checksum How to use checksums |
8b2ae57e40b034cac7a5e1890fcb1c578157c0ebe4df703ab7a03ac3ff5a3efc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for hermes-axiorank 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.