SDK Overview

The AEGIS SDK provides client libraries for integrating AI systems with the AEGIS governance platform. Rather than calling the REST API directly, the SDK handles authentication, request formatting, retries, and response parsing.

Supported Languages

PackageLanguageRegistryInstall
@aegis-initiative/sdkTypeScript / JavaScriptnpmnpm install @aegis-initiative/sdk
aegis-sdkPythonPyPIpip install aegis-sdk

What the SDK Provides

Quick Example

TypeScript

import { AegisClient } from '@aegis-initiative/sdk';

const aegis = new AegisClient({
  endpoint: 'https://api.aegissystems.live',
  apiKey: process.env.AEGIS_API_KEY,
});

const decision = await aegis.propose({
  actor: { id: 'agent-001', type: 'ai-agent' },
  action: { capability: 'database.query', parameters: { query: '...' } },
});

if (decision.outcome === 'ALLOW') {
  // execute
}

Python

from aegis_sdk import AegisClient

aegis = AegisClient(
    endpoint="https://api.aegissystems.live",
    api_key=os.environ["AEGIS_API_KEY"],
)

decision = aegis.propose(
    actor={"id": "agent-001", "type": "ai-agent"},
    action={"capability": "database.query", "parameters": {"query": "..."}},
)

if decision.outcome == "ALLOW":
    # execute
    pass

Governance Outcomes

Both SDKs return one of four governance outcomes:

OutcomeMeaning
ALLOWAction approved — proceed with execution
DENYAction rejected — do not execute
ESCALATERequires elevated review before proceeding
REQUIRE_CONFIRMATIONRequires explicit human approval

Language-Specific Guides

Source Code

The SDK source code is maintained in the aegis-sdk repository:

aegis-sdk/
  packages/
    sdk-ts/        # TypeScript/JavaScript SDK
    sdk-py/        # Python SDK

Note: The AEGIS SDKs are under active development. Packages will be published to npm and PyPI as the platform reaches general availability.