Skip to main content

Enterprise-grade security gateway for AI agents with middleware, tracing, and auto-rollback

Project description

AgentGate

AgentGate is a source-available security and governance layer for AI agents. It adds PII protection, injection defense, approvals, rate limits, audit evidence, and formal verification around model and tool calls without forcing teams to rebuild their application stack.

Why Teams Use AgentGate

  • Redact PII before prompts leave your infrastructure.
  • Block common attack classes such as SQL injection, shell injection, XSS, and prompt attacks.
  • Enforce human approvals, rate limits, and budget controls around sensitive operations.
  • Capture tamper-evident audit logs and signed decision certificates.
  • Run the same project as an SDK, API service, dashboard, CLI, and MCP security server.

Installation

pip install ea-agentgate

Install the full server profile when you want the local API, dashboard, auth, and governance surfaces:

pip install "ea-agentgate[server]"

Minimal SDK Example

from ea_agentgate import Agent
from ea_agentgate.middleware import PIIVault, Validator

agent = Agent(
    middleware=[
        PIIVault(mask_ssn=True, mask_email=True, mask_credit_card=True),
        Validator(block_sql_injection=True, block_shell_injection=True),
    ]
)

Project Links

Local Demo Note

The repository demo stack includes a dashboard playground. To get real model responses in that playground, set OPENAI_API_KEY in the root .env file before running ./run demo --fresh.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ea_agentgate-1.0.1.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ea_agentgate-1.0.1-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file ea_agentgate-1.0.1.tar.gz.

File metadata

  • Download URL: ea_agentgate-1.0.1.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.21

File hashes

Hashes for ea_agentgate-1.0.1.tar.gz
Algorithm Hash digest
SHA256 468fda10764d67324b8e7ab90dc162a871000b4ff5ffa558277dc3c8f15b2ff2
MD5 2bf65b1af09c916572f1605481c5ea41
BLAKE2b-256 b7ec065aabfc46623bce57f8e5d32685c157bcce6d303e21634cc062c70be192

See more details on using hashes here.

File details

Details for the file ea_agentgate-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ea_agentgate-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21b59203f63da55d8d691528276524476120bf84bb6d33ba6810d807087742bc
MD5 96556f80b6da279ec8206464ca8fb7fc
BLAKE2b-256 0aee4e7561844ef964e895f3c33296f9fafa09cbc8f9ae01c43ebcadccb6afd2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page