antiaimark
English | 简体中文 | Español | Français | Русский
Detect and strip AI provenance marks from text, images, documents, videos and audio —
invisible Unicode steganography, C2PA/EXIF/XMP image metadata, container
metadata (PDF, DOCX, ODT, SVG, HTML, Markdown, best-effort video) — with
CLIs, an HTTP service + web UI, an MCP server for AI IDEs, and background
auto-clean. Pure Go, static binaries, no runtime dependencies.
Features
- Text (Layer A) — zero-width characters, bidi overrides, tag characters,
homoglyph spaces, private-use planes; byte-exact round-trip of non-UTF-8 input
- Images — PNG/JPEG/WebP plus GIF/TIFF/HEIF/AVIF metadata · C2PA/JUMBF manifests, XMP
digitalSourceType=trainedAlgorithmicMedia, generator text chunks; native ISOBMFF box stripping for HEIF/AVIF, GIF comment/app-extension stripping
- Containers — PDF (exiftool + qpdf when available), DOCX/PPTX/XLSX/ODT internals,
SVG metadata blocks, HTML meta/JSON-LD, Markdown frontmatter
- Video & audio — ISOBMFF-native for MP4/MOV/M4V (moov/udta/meta/uuid stripping + exiftool supplemental); byte-scan for the rest
- Vendor keywords — single source of truth including Stability AI, Sora/Runway/Pika/Luma/Veo/Nova Reel/Stable Video/Udio/Riffusion + OpenAI/Imagen/Firefly/Midjourney/Stable Diffusion/FLUX/Ideogram/Recraft/Grok + 豆包·即梦/腾讯混元/通义万相/可灵/智谱/文心一格/海螺…
(CMS tags like WordPress are preserved)
- HTTP + web UI — JSON API (
/inspect /clean), drag & drop upload with
one-shot download; format cards now reflect the real dispatch table (ImageExts/ContainerExts/VideoExts/AudioExts)

- MCP server — native tools inside Claude Code/Desktop, Cursor, Windsurf, Cline, Continue, Zed…
- 5 languages — en / zh / es / fr / ru across CLIs, HTTP errors, web UI and MCP descriptions
- Background auto-clean — disk-space threshold, configurable period
Quickstart
go build ./... # build everything
go test ./... # run the suite
./deploy.sh build # or: build the single binary into bin/
./bin/antiaimark server # HTTP + web UI on 127.0.0.1:8765
Open http://127.0.0.1:8765/ and drag an image or video in. CLI examples:
./bin/antiaimark inspect-file photo.png --json # unified inspect (auto-routes)
./bin/antiaimark clean-file doc.docx # writes doc.cleaned.docx
./bin/antiaimark clean-text notes.txt --lang zh # localized CLI messages
./bin/antiaimark audit-dir ~/blog # aggregate directory audit
Deployment
./deploy.sh covers every path (also via make package, make install-systemd):
| Command | What it does |
|---|
./deploy.sh build | build all binaries for the host platform into bin/ |
./deploy.sh build-linux [amd64|arm64|386] | cross-compile static linux binaries |
./deploy.sh package [arch] | self-contained tarball in dist/ (binaries + README + deploy/) |
./deploy.sh docker-build [tag] | build the distroless Docker image |
./deploy.sh docker-run | run the image with production defaults (loopback, read-only, tmpfs) |
sudo ./deploy.sh install-systemd | Linux bare-metal: binaries + dedicated user + env file + hardened systemd unit |
sudo ./deploy.sh uninstall-systemd | stop and remove the unit |
Bare-metal flow on a linux server:
./deploy.sh package amd64 # on your workstation
scp dist/antiaimark-*-linux-amd64.tar.gz server:
ssh server 'tar xzf antiaimark-*.tar.gz && cd antiaimark && sudo ./deploy.sh install-systemd'
# configure: sudoedit /etc/antiaimark.env (port, API key, auto-clean…)
sudo systemctl restart antiaimark
Docker alternative: docker compose up -d (loopback bind, healthcheck,
read-only rootfs, dropped capabilities; knobs via environment).
Configuration (env file / environment)
| Variable | Default | Meaning |
|---|
ANTIAIMARK_SERVER_HOST | 127.0.0.1 | bind address (loopback-only unless behind a proxy) |
ANTIAIMARK_SERVER_PORT | 8765 | port |
ANTIAIMARK_SERVER_API_KEY | empty | require Authorization: Bearer <key> when set |
ANTIAIMARK_LANG | system locale | en zh es fr ru |
ANTIAIMARK_AUTO_CLEAN | 0 | 1 enables the background janitor |
ANTIAIMARK_AUTO_CLEAN_INTERVAL | 15m | check period |
ANTIAIMARK_AUTO_CLEAN_THRESHOLD | 11 | free-space % that triggers cleanup |
ANTIAIMARK_AUTO_CLEAN_TTL | 24h | download retention before eviction |
The janitor only ever deletes this service's own wm-* temp directories and
expired downloads — nothing else on disk; directories younger than 1h are
protected so in-flight requests are never disturbed.
HTTP API