Skip to content

LortuArte/aegis-python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

📌 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

  1. Initialize the Client

from aegis import AegisClient

Initialize with your secure API Key

client = AegisClient(api_key="aegis_live_your_secret_key...")

  1. 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}")

  1. 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.

About

⚡ The official Python SDK for AEGIS Ledger. L3 Off-chain settlement engine for AI Agents (0.005ms latency).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages