Running Agent Gateway images? See how to verify image signatures and digests.
AI agents are moving beyond chat. They can call APIs, use MCP servers, access enterprise systems, send emails, make payments and take actions on our behalf.
That creates a practical question:
How do you give an AI agent enough freedom to be useful without giving it unlimited authority?
Agent Gateway is the missing control layer for agent that actually do things. Scoped authority • Automatic for low risk • Human approval for high stakes • Instant revocation • Full audit trail
Its defining capability is fine-grained delegation: a human scopes an agent's authority by what it can access and do, sets limits and expiry, and decides which actions require approval. The gateway checks each request against that authority, lets permitted work proceed, and holds consequential actions for a human decision.## Fine-grained delegation. Human approval when it matters.
The agent gets scoped authority to work autonomously. People retain control over consequential actions.
When an agent can affect real systems, asking it to “be careful” is not a security control. Organisations need to know:
- Who authorised this agent to act?
- What is it allowed to do, and for how long?
- Which actions can happen automatically?
- Which actions need a human decision?
- How can access be stopped quickly?
- Can we show what happened afterwards?
Agent Gateway is designed to enforce those boundaries where an agent tries to use a tool, API or service.
A human gives an agent a fine-grained delegation: what it may access and do, the applicable limits, and when its authority expires. The gateway checks each request against that authority and makes one of three decisions:
- Allow — the action is within the agent’s authority and can proceed.
- Hold for approval — the action waits for a human decision before it is executed.
- Deny — the agent is not authorised to perform the action.
Decisions are recorded for audit, and a delegation can be revoked so subsequent requests are refused—even if the agent still holds an otherwise valid token.
Agent Gateway lets AI agents work autonomously within human-defined boundaries, while keeping people in control of consequential actions.
Those tools are valuable infrastructure controls, and Agent Gateway is designed to complement—not replace—them. Agent Gateway adds fine-grained, human-issued delegation for autonomous agents, including time-bounded authority, approval workflows, and revocation. Read the full explanation.
A quick way to understand the project is to see it working:
| Video | What it covers |
|---|---|
| Introduction to Agent Gateway (AGW) | An introduction to AGW. Watch on YouTube |
| Quick Demo | A short introduction to Agent Gateway and its core control model. Watch on YouTube |
| Console Wizard Demo | A walkthrough of the console and guided onboarding experience. Watch on YouTube |
| Discovery Capability | A walkthrough of a proposed roadmap capability offering discovery capability. Watch on YouTube |
- A human defines the authority. The delegation describes the resources and actions an agent may use, together with applicable limits and expiry.
- The agent gets to work. Routine, authorised activity can proceed without asking a human to approve every request.
- The gateway checks each request. It enforces the delegation and applicable policy at the point of access.
- Consequential actions can be held. A human reviews the proposed action and approves or denies it before it reaches the protected system.
- Access can be revoked. Operators can cut off a delegation without waiting for an agent token to expire.
- The activity is auditable. Decisions and approval outcomes are recorded.
The goal is not to put a human in front of every agent action. It is to let routine work remain autonomous while keeping consequential decisions under human control.
Imagine an accounts-payable agent. It can read invoices, look up supplier records and prepare payments automatically. But when it proposes a significant payment, the gateway holds the action for a human decision.
The same pattern applies elsewhere: read data but require approval to delete it; prepare an email but require approval to send it; deploy to test automatically but hold production changes for review.
One of the project's demonstrations explores this under prompt injection. The important boundary is not whether the model recognises every malicious instruction: a consequential action is still subject to gateway enforcement and human approval.
The repository includes a local demonstration stack. Requirements are Docker Engine 24+ or Podman 4.7+, Compose, and curl (jq is optional). The short walkthrough below uses the signed, digest-pinned main images by default; the exact local image IDs used by STRIX and published-image verification steps are in the image verification guide.
./ensure-secrets.sh creates the ignored demo/.env from .env.example if
it does not exist, generates independent local secrets, and restricts the
file to your user. You do not need to copy .env from another machine; do
not reuse a file containing machine-local image overrides or credentials.
cd demo
./ensure-secrets.sh
DEX_ISSUER_URL=http://dex:5556/dex \
OIDC_CONNECTOR_ID= \
WEB_ADMIN_EMAILS=alice@example.com \
docker compose up -d
./demo.shThen open the guided demo at http://localhost:8083/demo.html.
The local demo signs in as alice@example.com with password password.
These shared credentials are intentionally insecure: use them only for a
loopback demo, never for production or security testing. For Google or
Microsoft Entra ID sign-in and the hardened setup, see the
deployment guide.
The walkthrough covers sign-in, delegation, agent activity, a held action, a human decision, revocation and audit. For the full catalogue—including MCP protection, egress, DPoP/RAR, the kill switch, public API and Gmail examples—see the demos guide.
To run the OPA/Rego Policy Playground together with the egress demo,
start Compose with both overlays from demo/:
DEX_ISSUER_URL=http://dex:5556/dex OIDC_CONNECTOR_ID= WEB_ADMIN_EMAILS=alice@example.com \
docker compose \
-f docker-compose.yml -f docker-compose.egress.yml \
-f docker-compose.opa.yml up -dFor Google/Microsoft sign-in, also include
-f docker-compose.hardened.yml so Compose keeps the generated IdP config.
For that external-IdP configuration, omit the local DEX_ISSUER_URL override:
docker compose -f docker-compose.yml -f docker-compose.egress.yml \
-f docker-compose.opa.yml -f docker-compose.hardened.yml up -dThen open http://localhost:8083/policy.html. The full overlay combinations and setup details are in the Demos guide.
In local Compose mode, the Console Wizard's catalog-demo, users, and refunds APIs are preconfigured to use JSONPlaceholder, and geocoding uses Open-Meteo Geocoding. Each runs behind a dedicated policy-enforcing gateway. Compose does not dynamically provision PEPs for arbitrary Wizard API URLs: unsupported API names or URLs are rejected rather than silently routed to the demo API. Set CATALOG_DEMO_UPSTREAM_URL, USERS_API_UPSTREAM_URL, REFUNDS_API_UPSTREAM_URL, or GEOCODING_API_UPSTREAM_URL before starting Compose to change those examples, or use Kubernetes mode for dynamically provisioned upstreams.
You can also explore the live CRM demonstration at agw.sjfisher.com using the Claude CRM tutorial. See Claude integration for the wiring details.
Agent Gateway has been successfully deployed on Kubernetes and on AWS, Google Cloud Platform (GCP) and Microsoft Azure. Provider-specific deployment configurations are available for running it on your own cloud infrastructure; see the deployment guide.
Agent Gateway is designed to govern access to systems you already have, including:
- Internal and external APIs
- MCP servers and tools
- Agent egress
- Enterprise applications and existing agent runtimes
Choose a starting point:
- Protect an API
- Protect an MCP server
- Agent authentication basics
- Integration patterns
- Public API curl tutorial
- Common AI agent concerns — practical security and governance questions, and how Agent Gateway addresses them.
- Repository guide — a directory of documentation, demo scripts and integration resources.
This README is the introduction. The technical detail lives in the supporting documentation:
- Architecture — components, request flow, enforcement and supporting services.
- Security model — security properties, trust boundaries and threat considerations.
- Agent identity — agent identity and delegated authority.
- DPoP and RAR — sender-constrained tokens and fine-grained permission downscoping.
- Policy and OPA — policy-as-code and policy engine details.
- Why Agent Gateway? — how it complements API gateways, service meshes and policy engines.
- Deployment guide — deployment and operational configuration.
- Observability — logs, audit and tracing.
Successfully deployed on Kubernetes, AWS, GCP and Azure — and continuing to evolve.
The project is actively developed, with deployment experience across Kubernetes and the major cloud platforms. Feedback is still welcome: if you try the demos, integrate it with your own agent or have a different view of how agent authority should work, please open an issue or get in touch at steve@sjfisher.com.
The project is free to explore, with a non-expiring licence token available to individuals by email request. Repository documentation and demo assets are MIT licensed; distributed software images are provided under a separate commercial licence. See Pricing, Commercial Licence and Security and Licensing.
The challenge isn't simply making AI agents autonomous. It's deciding where autonomy should end and human authority should begin.
For the latest main image versions, verification details, and changes since the previous release, see RELEASE_NOTE.md.
