Official Client Libraries

Integrate Faster with Maintained SDKs

Use official clients for JavaScript, Python, and PHP. All SDKs wrap auth, request handling, and API errors consistently.

JavaScript (npm)

npm install @aegiscore/sdk

Supports Node.js 18+ and browser-capable fetch runtimes.

Python (PyPI)

pip install aegiscore-sdk

Pure Python client for Python 3.9+ with zero runtime dependencies.

PHP (Packagist)

composer require aegiscore/sdk

PHP 8.0+ client with cURL-based transport and typed exceptions.

Quickstart

JavaScript

import { AegisCoreClient } from "@aegiscore/sdk";

const client = new AegisCoreClient({ apiKey: process.env.AEGIS_API_KEY });
const out = await client.moderate({ text: "you are an idiot" });
console.log(out.action, out.score);

Python

from aegiscore_sdk import AegisCoreClient

client = AegisCoreClient(api_key="ak_live_xxx")
out = client.moderate({"text": "you are an idiot"})
print(out["action"], out["score"])

PHP

<?php
use AegisCore\AegisCoreClient;

$client = new AegisCoreClient("ak_live_xxx");
$out = $client->moderate(["text" => "you are an idiot"]);
echo $out["action"] . " " . $out["score"];
SDK docs and release workflow source live in aegiscore/sdks/ in the main repository.