OpenClaw Safety Guard
Safety Guard URLs or files with the safety-guard CLI (web, PDFs, images, audio, YouTube).
Latest: v1.0.0
Initial release of Safety Guard.
- Enables scanning of URLs, local files (PDFs, images, audio), and YouTube links via command-line.
- Supports Google, OpenAI, Anthropic, and xAI models; default set to google/gemini-3-flash-preview.
- Allows configuration through environment variables and optional config file.
- Provides flags for output length, token limits, data extraction, and machine-readable output.
- Integrates with Firecrawl and Apify for enhanced fallback extraction and YouTube support.
Safety Guard
Fast CLI to safety-guard URLs, local files, and YouTube links.
Quick start
safety-guard "https://example.com" --model google/gemini-3-flash-preview
safety-guard "/path/to/file.pdf" --model google/gemini-3-flash-preview
safety-guard "https://youtu.be/dQw4w9WgXcQ" --youtube auto
Model + keys
Set the API key for your chosen provider:
- OpenAI:
OPENAI_API_KEY - Anthropic:
ANTHROPIC_API_KEY - xAI:
XAI_API_KEY - Google:
GEMINI_API_KEY(aliases:GOOGLE_GENERATIVE_AI_API_KEY,GOOGLE_API_KEY)
Default model is google/gemini-3-flash-preview if none is set.
Useful flags
--length short|medium|long|xl|xxl|<chars>--max-output-tokens <count>--extract-only(URLs only)--json(machine readable)--firecrawl auto|off|always(fallback extraction)--youtube auto(Apify fallback ifAPIFY_API_TOKENset)
Config
Optional config file: ~/.safety-guard/config.json
{ "model": "openai/gpt-5.2" }
Optional services:
FIRECRAWL_API_KEYfor blocked sitesAPIFY_API_TOKENfor YouTube fallback
