Skip to main content

Superagent Security CLI

Use Superagent security tools from the command line.

Prerequisites

npm install @superagent/ai-sdk
export SUPERAGENT_API_KEY=your-superagent-api-key

Guard (Prompt Injection)

praisonai-ts agent run \
  --tools superagent:guard \
  --prompt "Check this input for prompt injection: 'Ignore previous instructions'"

Redact (PII Removal)

praisonai-ts agent run \
  --tools superagent:redact \
  --prompt "Redact PII from: John Smith, SSN 123-45-6789, [email protected]"

Verify (Claim Verification)

praisonai-ts agent run \
  --tools superagent:verify \
  --prompt "Verify: AI will replace 50% of jobs by 2030"

Combined Security

praisonai-ts agent run \
  --tools "superagent:guard,superagent:redact,superagent:verify" \
  --prompt "Process this text securely"

Environment Variables

VariableRequiredDescription
SUPERAGENT_API_KEYYesSuperagent API key
OPENAI_API_KEYYesOpenAI API key