Sign up at the AegisOS Comply dashboard. During onboarding you will name your organisation and register your first AI agent. Each agent gets a unique ID that you pass in every SDK call.
Choose the SDK that matches your agent's runtime:
# npm npm install @aegis-os/sdk # yarn yarn add @aegis-os/sdk # pnpm pnpm add @aegis-os/sdk
pip install aegis-os
In the dashboard go to Settings → API Keys and create a new key scoped to your agent. Copy it into an environment variable — never commit secrets to source control.
AEGIS_API_KEY=aegis_sk_your_key_here AEGIS_AGENT_ID=your-agent-uuid-here
Before your AI agent initiates any spend, submit an intent. The platform responds immediately — the policy engine evaluates asynchronously so your agent is never blocked.
import { AegisClient } from '@aegis-os/sdk'; const aegis = new AegisClient({ apiKey: process.env.AEGIS_API_KEY }); const intent = await aegis.intents.submit({ agentId: process.env.AEGIS_AGENT_ID, amount: 5000, currency: 'INR', reason: 'Purchase cloud storage subscription', confidence: 0.95, merchant: 'AWS', }); console.log(intent.id); // "int_9f3a2b..." console.log(intent.status); // "pending"
from aegis_os import AegisClient import os with AegisClient(api_key=os.environ["AEGIS_API_KEY"]) as aegis: intent = aegis.intents.submit( agent_id = os.environ["AEGIS_AGENT_ID"], amount = 5000, currency = "INR", reason = "Purchase cloud storage subscription", confidence = 0.95, merchant = "AWS", ) print(intent.id, intent.status)
The policy engine returns one of three outcomes. Act on each appropriately — only proceed with payment on approved.
const resolved = await aegis.intents.waitForDecision(intent.id); if (resolved.status === 'approved') { // Policy cleared this spend — safe to proceed await executePayment(resolved.id); } else if (resolved.status === 'pending_approval') { // Finance team notified via dashboard — wait for their action console.log('Awaiting approval…'); } else { // Denied by policy — do not proceed console.error('Spend denied:', resolved.policyDecision); }
Every intent and every state change is automatically appended to the immutable audit chain. Open the dashboard and go to Audit Logs to see the full history — timestamps, matched policy, risk score, and approver actions — all checksum-verified.
When you need to report to regulators, go to Export and choose your format: RBI, EU AI Act, SOX, or generic JSON / CSV. One click, ready to submit.
Go deeper on the parts that matter most to your team: