Skip to main content

Aegis Invariant Kernel for Python

Deterministic Tool-Call Safety Gateway for Autonomous AI Agents
Sub-0.1ms Latency • Zero External Dependencies • Zero Network Egress

License: MIT Python Tests


🚀 Installation

pip install aegis-kernel

⚡ Quickstart

Protect Database Tools

from aegis_kernel import aegis_guard

@aegis_guard(tool_name="database_exec")
def execute_sql(query: str):
    # Automatically blocks destructive SQL (DELETE without WHERE, DROP TABLE, etc.)
    return db.execute(query)

Protect Financial & Payout Operations

from aegis_kernel import aegis_guard

@aegis_guard(tool_name="payout_tool")
def transfer_funds(amount: float, recipient_id: str):
    # Automatically blocks transactions exceeding numeric risk limits
    return payment_gateway.transfer(amount, recipient_id)

CrewAI & AutoGen Integration

from aegis_kernel import AegisCrewAITool

safe_tool = AegisCrewAITool(my_existing_tool)

📄 License

Distributed under the MIT License. Copyright (c) 2026 Sneh Gabani.

Download files

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

Source Distribution

aegis_kernel-1.1.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

aegis_kernel-1.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file aegis_kernel-1.1.0.tar.gz.

File metadata

  • Download URL: aegis_kernel-1.1.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for aegis_kernel-1.1.0.tar.gz
Algorithm Hash digest
SHA256 468659018c6e133cdeefd8c19109ac037f25b9f8ca4dc686cf66e9bd14dfb3af
MD5 6493e140e10df381dd7c8474abc46f67
BLAKE2b-256 764783f23124a0579d959dcc848d538d92ec6d66edd3e6d31a9b24878c35293c

See more details on using hashes here.

File details

Details for the file aegis_kernel-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: aegis_kernel-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for aegis_kernel-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bb21d9c3d9540ff7eb556ba303340f4c4d844860b05853b0ab40571e1c72598
MD5 57ea57044790544a58790acc057b15e7
BLAKE2b-256 af3a9525e01a91af5f8d49455f630afcbe1ebc656dfef426be3ecfd8a1782fce

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 Sentry Error logging StatusPage Status page