Running OpenAI Privacy Filter on an M2 MacBook Pro - 52-Case Benchmark

Download printable cheat-sheet (CC-BY 4.0)

23 Apr 2026, 00:00 Z

60-second takeaway
openai/privacy-filter runs comfortably on a 16 GB M2 MacBook Pro (2.8 GB BF16, ~1 s median inference on MPS, zero false positives across nine decoy prompts). It catches OpenAI, Anthropic, GitHub, Stripe, Slack, Google, Clerk, and Postgres-with-password secrets, plus names/emails/phones in English and common Asian languages. It misses AWS AKIA... keys, MongoDB and Redis connection URIs, Arabic and West-African names, and UK-style landline numbers. Do not use it as the sole defense for credentials. It earns its lane as a second layer behind deterministic regex, not as a replacement for one.

Where this fits

  • For founders: If you are worried about pasting internal docs (meeting notes, support tickets, customer emails) into a cloud LLM, this model is a cheap, on-device first pass that catches most incidental PII. It is not safe as the only layer protecting API keys or database credentials.
  • For engineers: Use this page to decide whether openai/privacy-filter fits in your redact-before-send pipeline, what you still need regex for, and what it costs to run on Apple Silicon.

1 What we tested and why

OpenAI released openai/privacy-filter as a 1.5B-parameter mixture-of-experts token classifier (50M active per token, 128 experts top-4) that tags spans into eight privacy categories: account_number, private_address, private_email, private_person, private_phone, private_url, private_date, and secret. The model card positions it for "high-throughput data sanitization workflows" and claims it can run in a browser.

The interesting question for us is narrower: can it be the redact-before-read layer in front of a cloud coding assistant, so that secrets never leave the laptop? That is a strictly harder bar than "can it find names in a document" - a single missed API key is a rotation event.

We built a 52-case suite covering:

  • Credentials - OpenAI, Anthropic, GitHub classic + fine-grained PATs, AWS access key + secret, Stripe live key, Slack bot token, Google API key, Clerk secret, RSA and OpenSSH private key blocks, signed JWT, Postgres/MongoDB/Redis connection URIs with embedded passwords.
  • PII - names across six cultures (Western, Chinese-Singaporean, Indian, Arabic, Nigerian, Japanese), emails with +alias and .co.uk TLDs, phones in Singapore/UK/US formats, addresses in three jurisdictions, birthdays, credit card, UK IBAN, US SSN, routing/account, reset links with tokens, S3 presigned URLs.

AI video production

Turn AI video into a repeatable engine

Build an AI-assisted video pipeline with hook-first scripts, brand-safe edits, and multi-platform delivery.