Aaf-gate
Policy gate, kill switch and audit log in front of AI agent tool calls
Aaf-gate is an open-source agent for security. It is available on CLI, Self-hosted and macOS.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, macOS
- Built with
- Hermes Agent
- Listing updated
Similar agents
About Aaf-gate
aaf-gate is a control layer that sits between an agent runtime and the tools it calls. Every tool call passes through a deterministic policy that allows or denies it by tool class: reads, drafts and internal writes can each be permitted or blocked separately, and unattended internal writes stay blocked by default.
Alongside the policy it adds an operator kill switch that halts further work for a given principal, per-window call-count limits, and an append-only, hash-chained audit log stored in SQLite. Backup and restore commands carry a chain anchor so the log can be verified after recovery. It does not run models or an agent loop itself; the primary target runtime is Hermes Agent, with adapters for other runtimes described as future work.
The project is aimed at teams and developers who want auditable, rule-based control over what an existing agent may do with mail or other tools. The core is Python standard library only. It is a 1.0.0 release candidate, tested locally but not yet run on the target device.
What it does
- Per-class tool policy
- Allows or denies tool calls by class: read, draft and internal write.
- Kill switch
- Stops further agent work for a principal with stop, resume and status commands.
- Call limits
- Caps the number of tool calls per time window and tool class.
- Tamper-evident audit log
- Stores an append-only, hash-chained audit trail in SQLite.
- Backup and restore
- Backs up the gate database and restores it against a chain anchor.
- Hermes Agent adapter
- Hooks into Hermes Agent's pre and post tool-call events via a plugin and Unix socket.
Good for
- Letting an agent read and label Gmail while blocking any sending of mail
- Stopping a runaway agent for one user without shutting down the whole runtime
- Reviewing a tamper-evident record of every tool call an agent made
- Capping how many tool calls an agent can make in a set time window
Pricing
Open source
Free open source under Apache-2.0; self-hosted.
Aaf-gate FAQ
Does aaf-gate include its own AI agent?
No. It wraps existing agent runtimes and does not reimplement models, providers or the agent loop.
Which runtime is supported?
Hermes Agent is the primary runtime; adapters for other runtimes can be added later.
What license is Aaf-gate under?
Apache License 2.0.
Does the call limit count tokens or cost?
No, it counts tool calls per time window and tool class, not model token cost.
What are the best alternatives to Aaf-gate?
The closest alternatives to Aaf-gate are ARTEX, pentagi, openfang, superagent and maestro-orchestrate.
Where this comes from
- Description: written from the project's README.



