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.0.0.tar.gz (13.7 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.0.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aegis_kernel-1.0.0.tar.gz
Algorithm Hash digest
SHA256 24e09b33c4f174afa2df9ba74245f6da4c7923406aa97eff373efee07a08e0d0
MD5 f7b989a5e3ee6f255ee76a3e8f2f2e08
BLAKE2b-256 a563dd97125f318d6f84f981aa4b28889971dfa51c4bec155dc55cb89666afd7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aegis_kernel-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 292afd150a3bd0898ab9cbb27b772996971fce87336ec2caf2f725753e99299a
MD5 1b5154a279111f14bd77e3d23569ff73
BLAKE2b-256 3a467fc15618878c7018882aacbfbdac9c1d3e467599c7a0e186f462bb8b7f17

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