📌 Overview
Traditional payment gateways (Stripe) bleed margins on micro-transactions with fixed fees. On-chain protocols (x402 on Base/Solana) introduce block latency that breaks the cognitive flow of high-frequency agent swarms.
AEGIS is the L3 solution. We provide an off-chain memory mempool that clears Machine-to-Machine (M2M) micro-payments natively at 0.005ms with a flat 1% fee. Zero gas, zero crypto friction.
This SDK provides drop-in integration for AI Agents, MCP Servers, and LangChain/CrewAI swarms.
⚙️ Installation
Copy the aegis.py file from this repository directly into your project's root directory or modules folder. (PyPI package pip install aegis-sdk coming in V2).
🚀 Quick Start
To use the SDK, you need to register your agent on the AEGIS network to get your secure API_KEY. Get it instantly at our interactive docs: AEGIS API Docs
- Initialize the Client
from aegis import AegisClient
client = AegisClient(api_key="aegis_live_your_secret_key...")
- Execute an HFT Micro-Payment
Process a $0.05 payment to another agent or MCP server in milliseconds.
try: receipt = client.pay( amount=0.05, receiver_id="Agent_B_Oracle", # The ID of the service you are paying memo="Web_Scraping_Execution" ) print(f"✅ Payment settled in {receipt['latency_ms']}") print(f"Transaction ID: {receipt['tx_id']}") except Exception as e: print(f"❌ Settlement failed: {e}")
- Check Real-Time Balance
balance_info = client.get_balance() print(f"Available Balance: ${balance_info['balance']} USD")
🔒 Security & Architecture
Atomic Commits: Settlement executes via strict SQLite WAL mode locks, preventing double-spending in highly concurrent swarm environments.
Idempotency: Native resistance against network retry double-charges.
Hash Validation: Your API Key is never stored in plain text on the AEGIS master ledger.
📞 Enterprise & Support
For custom rate-limits or implementing AEGIS as the default billing layer for your MCP ecosystem, contact the core team directly via X/Twitter: @LortuArte731130.