Your licence key and the address of the service
Every request carries your licence key in the X-Sealforge-License header (or Authorization: Bearer SF-…): no account to create, no token to renew. The address of the service is https://anonymizer.sealforge.fr; it is written $SEALFORGE_API in this guide.
Only anonymizations use units (/anonymize, /anonymize-file, /anonymize-structured): one unit per successful anonymization up to 100,000 characters, then one more for each started slice. The other calls, restore included, are free. Every response says what it cost in the X-Sealforge-Units header, and what the licence has left in X-Sealforge-Units-Left.
Pseudonymize a text with a named strategy
Name the strategy in centralStrategy: the service applies it, category by category.
curl "$SEALFORGE_API/anonymize" \
-H "X-Sealforge-License: YOUR-LICENCE-KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "Follow up with Ms Dupont.", "centralStrategy": "placeholders" }'The strategies it offers out of the box:
reversible | reversible pseudonymization of every value, with your key |
reversible-identities | identities reversible; secrets, social security numbers and bank accounts replaced for good |
placeholders | numbered tokens [[LAST_NAME_1]], for a prompt |
pseudonyms | realistic fake values, stable for the same value |
same-format | fake values of the same length and shape |
masked | values partly hidden |
redacted | values replaced with their category [[EMAIL]] |
GET $SEALFORGE_API/policy lists the available strategies with their description.Reversible pseudonymization: send your key
Add pseudonymKey, a secret of at least 16 characters that you choose, and the reversible strategy:
curl "$SEALFORGE_API/anonymize" \
-H "X-Sealforge-License: YOUR-LICENCE-KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "Follow up with Ms Dupont.", "centralStrategy": "reversible", "pseudonymKey": "$SEALFORGE_PSEUDONYM_KEY" }'Each value becomes a token that holds it, encrypted with your key: Follow up with Ms [[LAST_NAME~v1~Zk3…]]. The same value always gives the same token under the same key, request after request.
pseudonymKey, the reversible strategy is refused: the tokens must only open with a key you hold, never with the service's.Restore the real values
Send the text written with the tokens (an AI's answer, a document drafted by a contractor) and the same key to /restore:
curl "$SEALFORGE_API/restore" \
-H "X-Sealforge-License: YOUR-LICENCE-KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "Dear Ms [[LAST_NAME~v1~Zk3…]], your file is complete.", "pseudonymKey": "$SEALFORGE_PSEUDONYM_KEY" }'
{ "text": "Dear Ms Dupont, your file is complete.", "restored": 1, "unreadable": 0 }The tokens the key opens are replaced. A token made with another key, or altered, stays as it is and is counted in unreadable: it never becomes a wrong value.
Files: CSV, JSON, Excel, images and PDF
A structured file is pseudonymized by column and keeps its format; the key goes in the pseudonymKey form field:
curl "$SEALFORGE_API/anonymize-structured" \
-H "X-Sealforge-License: YOUR-LICENCE-KEY" \
-F "file=@clients.csv" \
-F 'fields=[{ "path": "A", "category": "LAST_NAME", "strategy": "reversible", "headerRow": 1 }]' \
-F "pseudonymKey=$SEALFORGE_PSEUDONYM_KEY" -o clients.pseudonymized.csvImages and PDFs are masked with /anonymize-file: the sensitive areas are painted over in the image, which cannot be restored.
LicenseKey instead of ApiKey.With your AI assistants: the MCP server in online mode
Installed with an online offer, Sealforge's MCP server already uses the service, with nothing to set. It can also be declared by hand, on a computer the installer did not connect: it reads the files on your computer, has them pseudonymized by the service, and writes the deliverables with the real values.
claude mcp add sealforge \
-e SEALFORGE_LICENSE_KEY=YOUR-LICENCE-KEY \
-e SEALFORGE_PSEUDONYM_KEY=your-secret-of-16-characters-or-more \
-- sealforge-mcp --online "$SEALFORGE_API"The assistant gets reversible tokens and calls restore_to_file to write the result to disk; it never sees the values.
SEALFORGE_PSEUDONYM_KEY, the key is derived from this computer's own secret. Either way the history stays on the computer, encrypted: values can be restored from one conversation to the next, on this computer.In Codex and Claude Code
In online mode, the MCP server gives your assistants the same tools as the local mode, with the online service behind them.
Codex
- Declared in
~/.codex/config.toml([mcp_servers.sealforge]) with--onlineand the two environment variables. read_file_anonymizedreturns[[LAST_NAME~v1~…]]tokens: Codex keeps them as they are in what it writes.restore_to_filewrites the deliverable with the real values; Codex only gets counts.
Claude Code
claude mcp add sealforge … -- sealforge-mcp --online …, then restart Claude Code.- Ask: "Read
clients.csvwith Sealforge"; the read goes through the service, never through Claude's own file tools. - Only the reads that pseudonymize count in units on your licence; restoring is free, and
statussays the units left.