What it is
okrapdf/okrapdf-redact-skill is an open-source Codex skill for local PDF redaction.
It does three things in one pass:
- detects visible sensitive values on page images
- writes normalized bbox JSON
- burns black-box redactions into a new PDF
google/gemini-3.1-flash-lite-preview via OpenRouter. Use Qwen when you want a second opinion or behavior closer to OkraPDF’s Qwen-heavy extraction stack.
Why use it
Use this skill when you need bbox-grounded redaction for real PDFs, not just text masking in markdown or completion context. Outputs:<name>.redacted.vlm.pdf<name>.redactions.json<name>.redaction-preview/
Install
Clone the repo and install Python deps:OKRA_API_KEY can also come from ~/.okra/config.json if the okra CLI is already authenticated.
Run
Notes
- Gemini Lite currently works well for tight value boxes on government forms.
- The skill keeps one best box per field type per page.
- The default path drops obvious Gemini receipt-number duplicates in the top barcode/header strip.