Integrate the 14-agent swarm into your AI stack in under 15 minutes. All examples below use the inline gateway mode — no SDK required to get started.
The fastest path to protection is the inline API gateway. Route your existing AI API calls through OmniaGuard's endpoint — your code changes by exactly one URL.
After signing up, your API key is available on your dashboard. All keys follow the format og_live_xxxxxxxxxxxx.
const response = await openai.chat.completions.create({
model: "gpt-4",
messages: [{ role: "user", content: userInput }]
});const response = await fetch("https://api.omniaguard.ai/v1/proxy", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-OmniaGuard-Key": "og_live_xxxxxxxxxxxx",
"X-Target-Model": "openai/gpt-4"
},
body: JSON.stringify({
messages: [{ role: "user", content: userInput }]
})
});That's it. All 14 agents are now inspecting every request before it reaches OpenAI. Zero changes to your downstream code.
OmniaGuard uses API key authentication. Include your key in the X-OmniaGuard-Key header on every request.
# .env — never commit this file
OMNIAGUARD_API_KEY=og_live_xxxxxxxxxxxxKeys are scoped to your account. Enterprise customers can create per-project sub-keys with granular permissions from the dashboard.
npm install @omniaguard/sdkimport { OmniaGuard } from '@omniaguard/sdk';
const og = new OmniaGuard({
apiKey: process.env.OMNIAGUARD_API_KEY,
model: 'openai/gpt-4',
agents: 'all' // or ['prime', 'vault', 'forge']
});
const result = await og.inspect({
messages: [{ role: 'user', content: userInput }]
});
if (result.safe) {
// proceed to your AI model
} else {
console.log('Threat blocked:', result.threat);
}pip install omniaguardfrom omniaguard import OmniaGuard
og = OmniaGuard(api_key=os.environ["OMNIAGUARD_API_KEY"])
result = og.inspect(
messages=[{"role": "user", "content": user_input}],
agents="all"
)
if not result.safe:
raise SecurityError(result.threat_type)The OmniaGuard API is RESTful. All requests use HTTPS. Base URL: https://api.omniaguard.ai/v1
By default all agents on your tier are active. You can customize which agents inspect each request type using policy objects.
{
"policy_name": "production",
"agents": {
"prime": { "enabled": true, "sensitivity": "high" },
"vault": { "enabled": true, "pii_redaction": true },
"forge": { "enabled": true, "rate_limit": 1000 },
"nexus": { "quorum": 7 }
},
"block_action": "reject",
"log_blocked": true
}