Integrate anonymization into your stack
PromptShield is available as a CLI tool for local pipelines and as a self-hosted Docker API for your infrastructure. Your data never touches our servers.
CLI & Python SDK
Install from PyPI and anonymize documents from your terminal or Python scripts. Integrate into CI/CD pipelines, batch processing workflows, or custom applications.
pip install promptshield-appSelf-Hosted Docker API
Deploy the full PromptShield API on your own infrastructure with a single docker compose up. RESTful endpoints for ingestion, detection, anonymization, and decoding.
docker pull promptshield/promptshield-api:latest
docker compose up -dQuick Start
# Detect PII in a document
promptshield detect report.pdf -o report-pii.json
# Anonymize and export
promptshield anonymize report.pdf -o report-safe.pdf
# Restore original data
promptshield detokenize ai-output.pdf -o restored.pdf
# Start local API server
promptshield serve --host 0.0.0.0 --port 8000Command-line interface
Process documents from your terminal with a single command. Detect, anonymize, and decode — all offline.
Self-hosted Docker API
Deploy on your infrastructure with docker compose. Full REST API with interactive Swagger docs at /docs.
Python SDK
Import the core engine directly in your Python scripts. Full async support, type hints, and Pydantic models.
Zero-trust architecture
All processing happens inside the container or on your machine. No data is sent externally — not even to us.
All document formats
PDF, DOCX, XLSX, PPTX, images (PNG, JPEG, TIFF, BMP, WebP). OCR for scanned documents included.
Batch processing
Process hundreds of documents programmatically. Consistent code mappings across linked document sets.
CLI and self-hosted API are available on the Business plan and above.