# Aaf-gate

> Aaf-gate is an open-source agent for security. Policy gate, kill switch and audit log in front of AI agent tool calls. It is available on CLI, Self-hosted and macOS.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, macOS
- **Repository:** https://github.com/buberlo/aaf-gate
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

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.

## Features

- **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

## 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.

## Alternatives

- [ARTEX](https://ai-powered.com/agents/artex): ARTEX is an open-source agent for security.
- [pentagi](https://ai-powered.com/agents/pentagi): pentagi is an open-source agent for security.
- [openfang](https://ai-powered.com/agents/openfang): openfang is an open-source agent for multi-agent frameworks.
- [superagent](https://ai-powered.com/agents/superagent): superagent is a freemium agent framework for security.
- [maestro-orchestrate](https://ai-powered.com/agents/maestro-orchestrate): maestro-orchestrate is an open-source agent for security.
- [cynative](https://ai-powered.com/agents/cynative): cynative is an open-source agent for security.
- [tenuo](https://ai-powered.com/agents/tenuo): tenuo is an open-source agent framework for ai models and llm tooling.
- [sealbridge](https://ai-powered.com/agents/sealbridge): sealbridge is an open-source agent for security.

---
Source: https://ai-powered.com/agents/aaf-gate
