____ _ _ _ _ ____ ___ ____ ____ _ _ ____ ____ _ _ ____ ____ _ _ ____ _ _ ____ ____
|__| | __ | | | |__| | |___ |__/ |\/| |__| |__/ |_/ __ |__/ |___ |\/| | | | | |___ |__/
| | | |_|_| | | | |___ | \ | | | | | \ | \_ | \ |___ | | |__| \/ |___ | \
ai-watermark-remover
Agent skill + stdlib Python service that strips multi-vendor AI provenance marks from text and files — for privacy and hygiene on content you own. The skill is a thin client: it drives the machinery over HTTP, so the agent host needs no Python.

Skill: · Service: service/
What it targets, by layer:
- 🅰️ Layer A — invisible Unicode, exotic spaces, bidi, tag chars → deterministic Python scripts
- 🅱️ Layer B — statistical (token-sampling) text watermarks → agent rewrite + optional
rewrite_text.py hook
- 🗃️ Files — C2PA / EXIF / XMP / doc props → PNG, JPEG, WebP, AVIF, HEIC, BMP, GIF, TIFF, SVG, PDF, DOCX, XLSX, PPTX, EPUB, ODT, HTML, Markdown, MP4/MOV/M4A/M4V, WAV, MP3, FLAC
Vendors / ecosystems (class-level): Claude · Gemini / SynthID-Text · OpenAI provenance surfaces · open-LLM Kirchenbauer-style (green-list) and keyed-Gumbel / EXP (Aaronson) marks
🧭 Contents
🖥️ Web app (browser UI)
A UI layer sits on top of the same engine, so the whole thing — frontend and backend — runs from this one repo with a single command. Nothing in the engine itself changed; the web app just gives it a browser front end.
python3 run_local.py
Then open http://127.0.0.1:8080. run_local.py starts the cleaning engine and serves the UI together, forwarding /api/* to the engine so there's no CORS to configure.
Upload one or many files, in two modes:
- Inspect — report AI provenance marks (invisible Unicode, C2PA / EXIF / XMP metadata, doc properties, stylometry score) without changing the file.
- Clean — strip those marks and hand back the cleaned file to download. The document body is preserved; only the marks come out.
Supported: text, Markdown, HTML, PNG, JPEG, WebP, AVIF, HEIC, BMP, GIF, TIFF, SVG, PDF, DOCX, XLSX, PPTX, EPUB, ODT, and common audio/video containers — whatever the engine supports, the UI can send.
Docker deploy, architecture, and API key setup
Docker (for servers / AWS)
cd deploy
cp .env.example .env # optional — set WATERMARKS_SERVER_API_KEY to lock it down
docker compose up --build -d
Open http://localhost:8080. Deploying to AWS and where every key/setting lives: deploy/DEPLOYMENT.md.
Architecture
Browser ─▶ nginx (wr-web)
├── / serves web/ (static UI)
└── /api/* ───▶ Python engine (wr-core :8765)
The UI and API share one origin through nginx, so there is no CORS to deal with, and the engine is never exposed to the internet directly — only nginx is. The UI calls four endpoints on the engine: GET /health, GET /capabilities, POST /inspect/batch, POST /clean/batch. The engine's full API (single-file /inspect /clean /detect, /openapi.json) is documented below in HTTP service.
API key — the short version
The cleaning is fully local; no third-party AI key is required. The only key is an optional bearer token that locks the service down: