Scrub Secrets
scrub_secretsDetect and mask API keys, tokens, and passwords in content before sending to language models to prevent secret leakage.
Instructions
Scrub secrets from content before sending to LLM.
Detects and masks 15+ types of secrets:
AWS keys, OpenAI/Anthropic API keys
GitHub tokens, Stripe keys, Firebase/Supabase keys
Private keys (PEM), JWTs, connection strings
Generic API keys and passwords
Use this before including user content in prompts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Content to scrub secrets from | |
| show_end | No | Characters to show at end of masked secret (default: 0) | |
| show_start | No | Characters to show at start of masked secret (default: 4) |