Skip to main content

Bodyguard

Usage​

Bodyguard can be integrated in three ways:

1. HTTP Server​

Deploy Bodyguard as a standalone service that other applications can query:

# GET request
curl "/_sites/app.leadovaro.com/bodyguard/check?prompt=Your%20prompt%20here"

# POST request
curl -X POST /_sites/app.leadovaro.com/bodyguard/check \
-H "X-API-Key: your_api_key_here"
-H "Content-Type: application/json" \
-d '{"prompt":"Your prompt here"}'

2. Client Library​

Integrate directly into your application:

import { check } from '@civic/bodyguard';

const { result, threatScore, findings } = await check('User prompt here', {
threshold: 0.5 // Fail if threat score > 0.5
});

3. CLI Tool​

bodyguard "Analyze this prompt for threats"

4. MCP Hooks​

Bodyguard can be used as a middleware hook for MCP servers, analyzing prompts before they reach the LLM:

"mcpServers": {
"my-mcp-server": {
"command": "passthrough-mcp-server",
"env": [
"TARGET_SERVER_URL", "https://my-mcp-server",
"HOOKS", "/_sites/app.leadovaro.com/bodyguard/hook?threshold=0.7"
]
}
}

For more details on the passthrough proxy, see the Pass-through Proxy documentation.

Docker Deployment​

Docker images are available for easy deployment. Contact us to get access to the Docker images on AWS ECR.

Resources​

  • GitHub Repository: https://github.com/leadovaroteam/bodyguard (private - request access)
  • Docker Image: Available on AWS ECR (contact for access)
  • API Documentation: Coming soon

For more information and access, please contact us.