A2A Gateway
A gateway that lets one software agent call another, with caller checks, rate limits and an audit record.
Status, in the repository's words: Released; the changelog says the code behind an earlier release had been running in production since 2026-09-14.
What it is
A FastAPI service that lets agents and outside callers invoke other agents' capabilities.
It is not tied to one agent runtime: you list your own agents in a YAML registry and give the gateway a command template that runs them.
Because it runs a command on the host in response to an HTTP request, the repo's security policy calls it a privileged component.
What it does today
- Only agents listed in the registry file can be reached through the gateway.
- Every route except the health check and the public agent card requires a valid API key in the X-API-Key header.
- Agents marked elevated can only be invoked with a key that is also listed in ELEVATED_API_KEYS.
- Caps requests per minute per caller id (RATE_LIMIT_RPM). The caller id is self-declared, so the repo calls this protection against runaway clients, not against a determined attacker.
- Sends a best-effort JSON audit event for every invocation to a destination you choose; an unreachable destination logs a warning and never blocks the invocation.
- Audit events record the caller id, agent id, job id, trust level and the length of the prompt, not its content.
- Every registered agent is also offered as an MCP tool.
- REST calls return a job id that the caller polls for the result; MCP calls wait for the agent and return the result directly.
- Runs the agent command without a shell, so the text of a prompt cannot add extra command arguments.
- When an agent command fails, the caller gets a reference id rather than the command's error output, which stays in the gateway log.
What it ships
- The MCP bridge: JSON-RPC 2.0 over HTTP at POST /mcp, where each agent becomes one MCP tool.
- An example registry file with three example entries meant to be replaced with your own agents.
- An optional 36-agent registry for the Claude Code conductor plugin suite.
- An echo executor that returns the prompt without running anything, for trying the gateway before an agent runtime is connected.
- A Dockerfile; the image contains only the gateway and exposes port 8100.
- launchd and systemd service files and a health watchdog for running the gateway on a host.
- Worked invoker configurations and instructions for registering a custom executor in Python.
What it needs
- Python 3.11 or newer; the Docker image uses python:3.12-slim and CI tests on 3.12.
- An agent runtime of your own: whatever command A2A_INVOKER_TEMPLATE points at.
- API_KEYS must be set: a comma-separated list of the keys callers present.
- Optionally, an HTTP endpoint to receive the audit events.
- The Docker image contains no agent runtime; invoking a real agent from it needs the agent's command to be reachable inside the container.
Install
Copied from the repository's README. This site has not run these commands.
python3 -m venv .venv && . .venv/bin/activate pip install -r requirements.txt cp .env.example .env # set API_KEYS, then A2A_INVOKER_TEMPLATE python -m src # loads ./.env, listens on $HOST:$PORT (0.0.0.0:8100)
Limits and known issues, as the repository lists them
As listed on branch main of BulletproofSoftwareAI/bulletproof-a2a-gateway on 2026-11-30, commit 8c9350f: newer than the version described above.
- The Docker image contains the gateway only, with no agent runtime.
- API keys have no per-agent scoping, no expiry and no revocation list; changing them means editing two settings and restarting.
- Job results are readable by any valid API key that knows the job id.
- The allowed_tools list in the registry is advisory; the gateway does not enforce it, so the agent runtime has to.
- The gateway speaks plain HTTP; TLS has to be provided by a reverse proxy or ingress in front of it.
- Jobs are not saved: they are held in memory and are lost when the gateway restarts.
Works with
Documents in the repository
Where each statement on this page comes from
Read from BulletproofSoftwareAI/bulletproof-a2a-gateway, branch main, commit d61014a; the limits and known issues from BulletproofSoftwareAI/bulletproof-a2a-gateway, branch main, commit 8c9350f, read on 2026-11-30. File and line for each statement:
- A gateway that lets one software agent call another, with caller checks, rate limits and an audit record.
README.md:3 - Released; the changelog says the code behind an earlier release had been running in production since 2026-09-14.
CHANGELOG.md:556 - 1.2.15
src/__init__.py:6 - 2026-11-14
CHANGELOG.md:8 - Apache-2.0
README.md:148 - A FastAPI service that lets agents and outside callers invoke other agents' capabilities.
README.md:10 - It is not tied to one agent runtime: you list your own agents in a YAML registry and give the gateway a command template that runs them.
README.md:15 - Because it runs a command on the host in response to an HTTP request, the repo's security policy calls it a privileged component.
SECURITY.md:19 - Only agents listed in the registry file can be reached through the gateway.
registry/capabilities.yaml:5 - Every route except the health check and the public agent card requires a valid API key in the X-API-Key header.
SECURITY.md:24 - Agents marked elevated can only be invoked with a key that is also listed in ELEVATED_API_KEYS.
docs/ADMINISTRATOR.md:67 - Caps requests per minute per caller id (RATE_LIMIT_RPM). The caller id is self-declared, so the repo calls this protection against runaway clients, not against a determined attacker.
SECURITY.md:134 - Sends a best-effort JSON audit event for every invocation to a destination you choose; an unreachable destination logs a warning and never blocks the invocation.
README.md:116 - Audit events record the caller id, agent id, job id, trust level and the length of the prompt, not its content.
docs/ADMINISTRATOR.md:94 - Every registered agent is also offered as an MCP tool.
README.md:29 - REST calls return a job id that the caller polls for the result; MCP calls wait for the agent and return the result directly.
docs/OVERVIEW.md:41 - Runs the agent command without a shell, so the text of a prompt cannot add extra command arguments.
README.md:87 - When an agent command fails, the caller gets a reference id rather than the command's error output, which stays in the gateway log.
CHANGELOG.md:16 - The MCP bridge: JSON-RPC 2.0 over HTTP at POST /mcp, where each agent becomes one MCP tool.
docs/OVERVIEW.md:23 - An example registry file with three example entries meant to be replaced with your own agents.
README.md:66 - An optional 36-agent registry for the Claude Code conductor plugin suite.
README.md:93 - An echo executor that returns the prompt without running anything, for trying the gateway before an agent runtime is connected.
docs/ADMINISTRATOR.md:120 - A Dockerfile; the image contains only the gateway and exposes port 8100.
README.md:55 - launchd and systemd service files and a health watchdog for running the gateway on a host.
README.md:61 - Worked invoker configurations and instructions for registering a custom executor in Python.
README.md:90 - Python 3.11 or newer; the Docker image uses python:3.12-slim and CI tests on 3.12.
docs/INSTALL.md:5 - An agent runtime of your own: whatever command A2A_INVOKER_TEMPLATE points at.
docs/INSTALL.md:7 - API_KEYS must be set: a comma-separated list of the keys callers present.
README.md:102 - Optionally, an HTTP endpoint to receive the audit events.
docs/INSTALL.md:11 - The Docker image contains no agent runtime; invoking a real agent from it needs the agent's command to be reachable inside the container.
docs/INSTALL.md:77 - The Docker image contains the gateway only, with no agent runtime.
README.md:76 at 8c9350f - API keys have no per-agent scoping, no expiry and no revocation list; changing them means editing two settings and restarting.
docs/ADMINISTRATOR.md:168 at 8c9350f - Job results are readable by any valid API key that knows the job id.
docs/ADMINISTRATOR.md:178 at 8c9350f - The allowed_tools list in the registry is advisory; the gateway does not enforce it, so the agent runtime has to.
docs/ADMINISTRATOR.md:171 at 8c9350f - The gateway speaks plain HTTP; TLS has to be provided by a reverse proxy or ingress in front of it.
docs/ADMINISTRATOR.md:152 at 8c9350f - Jobs are not saved: they are held in memory and are lost when the gateway restarts.
docs/OVERVIEW.md:81 at 8c9350f - The event router is one place audit events can be sent; it requires a bearer token, which the gateway can be configured to send.
README.md:113 - The optional conductor registry lists 36 agents, 17 of them from conductor-dev.
docs/OVERVIEW.md:72 - The optional conductor registry lists 36 agents, 19 of them from conductor-kernel.
docs/OVERVIEW.md:72 - Install section of the README
README.md:34
Bulletproof suite v1.0.0 pins tag v1.2.15, commit d61014a, tagged 2026-11-14.