Metadata-Version: 2.4
Name: ea-agentgate
Version: 1.0.1
Summary: Enterprise-grade security gateway for AI agents with middleware, tracing, and auto-rollback
Project-URL: Homepage, https://github.com/EaCognitive/agentgate
Project-URL: Documentation, https://github.com/EaCognitive/agentgate#readme
Project-URL: Repository, https://github.com/EaCognitive/agentgate
Project-URL: Changelog, https://github.com/EaCognitive/agentgate/blob/main/CHANGELOG.md
Project-URL: Bug Tracker, https://github.com/EaCognitive/agentgate/issues
Project-URL: Source Code, https://github.com/EaCognitive/agentgate
Author-email: Erick Aleman <erick@eacognitive.com>
Maintainer-email: Erick Aleman <erick@eacognitive.com>
License: # PolyForm Noncommercial License 1.0.0
        
        <https://polyformproject.org/licenses/noncommercial/1.0.0>
        
        Required Notice: Copyright (c) 2026 Erick Aleman (https://github.com/eacognitive)
        
        ## Acceptance
        
        In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
        
        ## Copyright License
        
        The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose.  However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
        
        ## Distribution License
        
        The licensor grants you an additional copyright license to distribute copies of the software.  Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
        
        ## Notices
        
        You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software.  For example:
        
        > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
        
        ## Changes and New Works License
        
        The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
        
        ## Patent License
        
        The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
        
        ## Noncommercial Purposes
        
        Any noncommercial purpose is a permitted purpose.
        
        ## Personal Uses
        
        Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
        
        ## Noncommercial Organizations
        
        Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
        
        ## Fair Use
        
        You may have "fair use" rights for the software under the law. These terms do not limit them.
        
        ## No Other Rights
        
        These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else.  These terms do not imply any other licenses.
        
        ## Patent Defense
        
        If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
        
        ## Violations
        
        The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice.  Otherwise, all your licenses end immediately.
        
        ## No Liability
        
        ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
        
        ## Definitions
        
        The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
        
        **You** refers to the individual or entity agreeing to these terms.
        
        **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization.  **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise.  Control can be direct or indirect.
        
        **Your licenses** are all the licenses granted to you for the software under these terms.
        
        **Use** means anything you do with the software requiring one of your licenses.
License-File: LICENSE
Keywords: agentgate,agents,ai,anthropic,gateway,gemini,governance,llm,middleware,monitoring,openai,safety,security
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Monitoring
Classifier: Typing :: Typed
Requires-Python: >=3.13
Requires-Dist: aiosqlite>=0.19.0
Requires-Dist: fastapi>=0.109.0
Requires-Dist: greenlet>=3.0.0
Requires-Dist: keyring>=25.0.0
Requires-Dist: pydantic-settings>=2.0.0
Requires-Dist: sqlmodel>=0.0.14
Requires-Dist: uvicorn[standard]>=0.27.0
Provides-Extra: all
Requires-Dist: anthropic>=0.30.0; extra == 'all'
Requires-Dist: google-genai>=1.0.0; extra == 'all'
Requires-Dist: openai>=1.0.0; extra == 'all'
Requires-Dist: torch>=2.0.0; extra == 'all'
Requires-Dist: transformers>=4.30.0; extra == 'all'
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.30.0; extra == 'anthropic'
Provides-Extra: async
Requires-Dist: aiofiles>=23.0.0; extra == 'async'
Provides-Extra: azure
Requires-Dist: azure-identity>=1.15.0; extra == 'azure'
Requires-Dist: azure-keyvault-secrets>=4.8.0; extra == 'azure'
Provides-Extra: backup-cloud
Requires-Dist: azure-storage-blob>=12.19.0; extra == 'backup-cloud'
Requires-Dist: boto3>=1.26.0; extra == 'backup-cloud'
Provides-Extra: dashboard
Requires-Dist: httpx>=0.27.0; extra == 'dashboard'
Provides-Extra: dev
Requires-Dist: aiofiles>=23.0.0; extra == 'dev'
Requires-Dist: allure-pytest>=2.13.0; extra == 'dev'
Requires-Dist: anthropic>=0.30.0; extra == 'dev'
Requires-Dist: azure-identity>=1.15.0; extra == 'dev'
Requires-Dist: azure-keyvault-secrets>=4.8.0; extra == 'dev'
Requires-Dist: bcrypt<5.0.0,>=4.0.0; extra == 'dev'
Requires-Dist: cryptography>=46.0.5; extra == 'dev'
Requires-Dist: fakeredis[lua]>=2.20.0; extra == 'dev'
Requires-Dist: httpx>=0.27.0; extra == 'dev'
Requires-Dist: hypothesis>=6.100.0; extra == 'dev'
Requires-Dist: lingua-language-detector>=2.0.0; extra == 'dev'
Requires-Dist: mypy<1.19,>=1.18.2; extra == 'dev'
Requires-Dist: openai>=1.0.0; extra == 'dev'
Requires-Dist: opentelemetry-api>=1.20.0; extra == 'dev'
Requires-Dist: opentelemetry-sdk>=1.20.0; extra == 'dev'
Requires-Dist: passlib[bcrypt]>=1.7.4; extra == 'dev'
Requires-Dist: pillow>=12.1.1; extra == 'dev'
Requires-Dist: presidio-analyzer>=2.2.0; extra == 'dev'
Requires-Dist: presidio-anonymizer>=2.2.0; extra == 'dev'
Requires-Dist: prometheus-client>=0.20.0; extra == 'dev'
Requires-Dist: pyjwt[crypto]>=2.10.1; extra == 'dev'
Requires-Dist: pyotp>=2.9.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
Requires-Dist: pytest-xdist>=3.5.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: python-json-logger>=2.0.0; extra == 'dev'
Requires-Dist: python-multipart>=0.0.6; extra == 'dev'
Requires-Dist: qrcode>=7.4.0; extra == 'dev'
Requires-Dist: ruff>=0.3.0; extra == 'dev'
Requires-Dist: sentry-sdk[fastapi]>=2.0.0; extra == 'dev'
Requires-Dist: slowapi>=0.1.9; extra == 'dev'
Requires-Dist: torch>=2.10.0; extra == 'dev'
Requires-Dist: transformers>=5.1.0; extra == 'dev'
Requires-Dist: webauthn>=2.0.0; extra == 'dev'
Requires-Dist: z3-solver>=4.13.0; extra == 'dev'
Provides-Extra: enterprise
Requires-Dist: openai>=1.0.0; extra == 'enterprise'
Requires-Dist: opentelemetry-api>=1.20.0; extra == 'enterprise'
Requires-Dist: opentelemetry-sdk>=1.20.0; extra == 'enterprise'
Requires-Dist: redis>=4.5.0; extra == 'enterprise'
Provides-Extra: google
Requires-Dist: google-genai>=1.0.0; extra == 'google'
Provides-Extra: ml
Requires-Dist: torch>=2.0.0; extra == 'ml'
Requires-Dist: transformers>=4.30.0; extra == 'ml'
Provides-Extra: openai
Requires-Dist: openai>=1.0.0; extra == 'openai'
Provides-Extra: otel
Requires-Dist: opentelemetry-api>=1.20.0; extra == 'otel'
Requires-Dist: opentelemetry-sdk>=1.20.0; extra == 'otel'
Provides-Extra: otel-otlp
Requires-Dist: opentelemetry-api>=1.20.0; extra == 'otel-otlp'
Requires-Dist: opentelemetry-exporter-otlp>=1.20.0; extra == 'otel-otlp'
Requires-Dist: opentelemetry-sdk>=1.20.0; extra == 'otel-otlp'
Provides-Extra: postgres
Requires-Dist: asyncpg>=0.29.0; extra == 'postgres'
Requires-Dist: psycopg2-binary>=2.9.9; extra == 'postgres'
Provides-Extra: redis
Requires-Dist: redis>=4.5.0; extra == 'redis'
Provides-Extra: semantic
Requires-Dist: openai>=1.0.0; extra == 'semantic'
Provides-Extra: server
Requires-Dist: aiosqlite>=0.19.0; extra == 'server'
Requires-Dist: alembic>=1.13.0; extra == 'server'
Requires-Dist: azure-identity>=1.15.0; extra == 'server'
Requires-Dist: azure-keyvault-secrets>=4.8.0; extra == 'server'
Requires-Dist: bcrypt<5.0.0,>=4.0.0; extra == 'server'
Requires-Dist: cryptography>=46.0.5; extra == 'server'
Requires-Dist: fastapi>=0.109.0; extra == 'server'
Requires-Dist: greenlet>=3.0.0; extra == 'server'
Requires-Dist: httpx>=0.27.0; extra == 'server'
Requires-Dist: keyring>=25.0.0; extra == 'server'
Requires-Dist: lingua-language-detector>=2.0.0; extra == 'server'
Requires-Dist: mcp[cli]<2,>=1.26.0; extra == 'server'
Requires-Dist: passlib[bcrypt]>=1.7.4; extra == 'server'
Requires-Dist: pillow>=12.1.1; extra == 'server'
Requires-Dist: presidio-analyzer>=2.2.0; extra == 'server'
Requires-Dist: presidio-anonymizer>=2.2.0; extra == 'server'
Requires-Dist: prometheus-client>=0.20.0; extra == 'server'
Requires-Dist: pydantic-settings>=2.0.0; extra == 'server'
Requires-Dist: pyjwt[crypto]>=2.10.1; extra == 'server'
Requires-Dist: pyotp>=2.9.0; extra == 'server'
Requires-Dist: python-json-logger>=2.0.0; extra == 'server'
Requires-Dist: python-multipart>=0.0.6; extra == 'server'
Requires-Dist: qrcode>=7.4.0; extra == 'server'
Requires-Dist: redis>=4.5.0; extra == 'server'
Requires-Dist: slowapi>=0.1.9; extra == 'server'
Requires-Dist: sqlmodel>=0.0.14; extra == 'server'
Requires-Dist: uvicorn[standard]>=0.27.0; extra == 'server'
Requires-Dist: webauthn>=2.0.0; extra == 'server'
Requires-Dist: z3-solver>=4.13.0; extra == 'server'
Description-Content-Type: text/markdown

# 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

```bash
pip install ea-agentgate
```

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

```bash
pip install "ea-agentgate[server]"
```

## Minimal SDK Example

```python
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

- Repository: [github.com/eacognitive/agentgate](https://github.com/EaCognitive/agentgate)
- Full README: [GitHub README](https://github.com/EaCognitive/agentgate#readme)
- Issues: [github.com/eacognitive/agentgate/issues](https://github.com/EaCognitive/agentgate/issues)

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