Skip to content
reason-machines avatar

Openai Privacy Filter

Bidirectional token-classification model that detects and masks PII spans in text, with a 128k-token context.

CCM score
46 of 100
skills.sh installs
261
GitHub stars
99
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers one-shot redaction, JSONL evaluation, finetuning, and a Python API with batch processing in a single package
  • Detects 8 labels: account_number, private_address, private_email, private_person, private_phone, private_url, private_date, and secret
  • Offers high_recall, high_precision, and balanced operating points, plus a --device cpu option for inference without CUDA
  • Designed for teams that sanitize text or files before sending them to an LLM or logging findings for audit

Install

$ npx -y skills add reason-machines/trending-skills --skill openai-privacy-filter -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

OpenAI Privacy Filter

Skill by ara.so — Daily 2026 Skills collection.

OpenAI Privacy Filter is a bidirectional token-classification model (1.5B params, 50M active) for detecting and masking PII spans in text. It runs in a single forward pass with constrained Viterbi decoding, supports a 128k-token context window, and is licensed Apache 2.0.

Installation

pip install -e .
# or from a cloned repo:
git clone https://github.com/openai/privacy-filter
cd privacy-filter
pip install -e .

After install, the opf CLI is available. On first use it downloads the model checkpoint to ~/.opf/privacy_filter unless OPF_CHECKPOINT is set.

export OPF_CHECKPOINT=/path/to/local/checkpoint_dir

Detected PII Categories

LabelDescription
account_numberBank/card/account numbers
private_addressPhysical addresses
private_emailEmail addresses
private_personPersonal names
private_phonePhone numbers
private_urlPersonal URLs
private_dateDates of birth / personal dates
secretCredentials, tokens, API keys

CLI Usage

One-shot redaction

Details

Repository
github.com/reason-machines/trending-skills
Categories
Security, AI Agents & LLM Apps
First seen
Jun 3, 2026

Questions

What does the openai-privacy-filter skill do?

The openai-privacy-filter skill detects personally identifiable information in text and masks it, using OpenAI's Privacy Filter model. It flags account numbers, addresses, emails, personal names, phone numbers, personal URLs, personal dates and secrets such as API keys.

How do I install the openai-privacy-filter skill?

Run npx -y skills add reason-machines/trending-skills --skill openai-privacy-filter -y in a project to install it. After that, the openai-privacy-filter skill lets the agent redact sensitive spans from text or files.

Where does openai-privacy-filter stand in the Security category?

openai-privacy-filter is listed in the Security category on Claude Marketplaces, next to security-audit, azure-compliance, firebase-security-rules-auditor and cloudflare-one. Its focus is masking personal data in text rather than auditing configurations.

More from reason-machines/trending-skills

All 251

Similar to Openai Privacy Filter

More Security