Who it is forA security or compliance owner whose apps send user text to LLMs and must keep personal data and injection attempts out.
The problemUser text can carry personal data or instructions that try to override the app, and each app would need its own filter.
The outcomeRequests with PII or injection attempts are caught at the gateway, and redaction keeps the original format.
What you need first
- Docker installed on the machine that will run the gateway
- An API key from OpenAI or Anthropic
- A web browser to open the console at http://localhost:8081/ui/
Steps
- Start the gateway with
docker run -p 8080:8080 -p 8081:8081 -v antirion-data:/var/lib/antirion eliasbiondo/antirion. - In the console, open the guardrail settings and enable the PII and prompt injection checks for the key or project. (inferred, check the README)
- Send a test chat request with a made-up email address in the message using the Playground or the curl command from the getting started guide.
- Open Request log and confirm the request shows the guardrail result.
Prompt for your agent
Using the eliasbiondo/antirion README, enable the PII guardrail for the key <key name> in the console and send a test request containing a fake email address. Expected output: the request is redacted or blocked as configured. Verify the result in the Request log.
Caveat. The README lists the guardrail types but the exact configuration steps are not in the excerpt, so each step must be checked against the console.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for eliasbiondo/antirion and "Screen prompts for PII and prompt injection"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer