Surfinguard sits between AI agents and the actions they take. It scores URLs, commands, file operations, API calls, and 14 more action types against 5 risk primitives — catching threats before they cause harm.
{
"level": "DANGER",
"score": 10,
"allow": false,
"primitive": "MANIPULATION"
}npm install @surfinguard/sdkpip install surfinguardZero-latency local mode. No API calls needed.
import { Guard } from '@surfinguard/sdk';
const guard = await Guard.create({ mode: 'local' });
// Check before the agent acts
const result = guard.checkUrl('https://g00gle-login.tk/verify');
// => { level: "DANGER", score: 9, allow: false }
const cmd = guard.checkCommand('rm -rf / --no-preserve-root');
// => { level: "DANGER", score: 9, allow: false }
const safe = guard.checkCommand('ls -la');
// => { level: "SAFE", score: 0, allow: true }Every action is scored against 5 risk primitives. The composite score is the maximum across all primitives.
Every threat maps to one of five dimensions. Scores are additive within each primitive, capped at 10.
Free to start. Scale when you need to.
Quick answers. No fluff.