Local, reversible pseudonymisation
Use Claude on your client files, without leaking any sensitive information.
The best pseudonymisation engine on the market.
Masking everything is easy, but then Claude cannot do the work. Shield masks your clients' data and keeps the law readable: articles, courts, dates and amounts stay in clear.
Free and open source. Everything runs on your computer: Shield replaces names with codes before the text is sent, then puts the real names back in the final document.
This site describes RAGbase Shield 0.4.4.
What Claude receives
Click Mask to see what Claude receives. Dear Ms. PERSON_A, Further to our call of 3 March 2025, COMPANY_A Ltd disputes the invoice of GBP 48,000. Please reply to EMAIL_1 or PHONE_1 before the hearing at the High Court of Justice. Account IBAN IBAN_1.
peoplecompaniesemail, phoneIBAN, card, account
The Shield engine runs here, in your browser. Your text never leaves this page.
- Free and open source (Apache-2.0)
- The table of codes stays on your computer
- Shield sends no usage statistics
Mask the data, keep the law
A tool that masks everything leaks nothing, but Claude can do nothing with the document. The right tool masks your clients' data and leaves the law intact. The overall score measures exactly that.
Public benchmarks, then RAGbase benchmarks · public method · updated on
| Measure | Data set | Shield 0.4.4 | Hexagone 0.3.9 | Presidio 2.2.364 | ||
|---|---|---|---|---|---|---|
| Fastdefault | Precisewith AI model | Fast | Precis | |||
| Overall score note 1 F1 by word, higher is better | ||||||
| Overall score note 1 F1 by word, higher is better | FR-PII-Bench public · French texts | 96.9 (highest F1 in the row)Pprecision 95.0R, recall 98.9 | 96.2Pprecision 93.6R, recall 99.1 | 80.7Pprecision 68.4R, recall 98.4 | 80.7Pprecision 67.7R, recall 99.9 | 66.5Pprecision 69.2R, recall 64.1 |
| MAPA note 2 public · Cour de cassation | 81.1Pprecision 83.1R, recall 79.1 | 82.8 (highest F1 in the row)Pprecision 78.7R, recall 87.3 | 43.8Pprecision 28.5R, recall 95.3 | 37.9Pprecision 23.8R, recall 93.9 | 63.5Pprecision 51.0R, recall 84.1 | |
| REF RAGbase · employment law | 97.3 (highest F1 in the row)Pprecision 97.9R, recall 96.7 | 97.3 (highest F1 in the row)Pprecision 97.9R, recall 96.7 | 66.7Pprecision 50.6R, recall 97.6 | 61.1Pprecision 44.0R, recall 99.9 | 79.2Pprecision 82.5R, recall 76.1 | |
| Max note 2 RAGbase · law-firm files | 94.9 (highest F1 in the row)Pprecision 95.2R, recall 94.7 | 91.5Pprecision 87.9R, recall 95.3 | 54.0Pprecision 38.1R, recall 92.4 | 48.9Pprecision 32.7R, recall 96.2 | 47.4Pprecision 38.0R, recall 63.0 | |
| Legal terms changed articles, courts, laws · lower is better | ||||||
| Legal terms changed articles, courts, laws · lower is better | MAPA public · Cour de cassation | 0.0 % (lowest value in the row) | 0.0 % (lowest value in the row) | 43.1 % | 47.6 % | 18.0 % |
| REF RAGbase · employment law | 4.1 % (lowest value in the row) | 4.1 % (lowest value in the row) | 17.8 % | 47.1 % | 15.3 % | |
| Max RAGbase · law-firm files | 2.1 % (lowest value in the row) | 4.2 % | 47.2 % | 58.3 % | 55.6 % | |
| Speed and memory note 3 no graphics card, lower is better | ||||||
| Speed and memory note 3 no graphics card, lower is better | Time per document of 10 pages | 0.63 s (lowest value in the row) | 17.7 s | 26.93 s | 9 min | 1.59 s |
| Memory peak, same document | 79 MB to 80 MB (lowest value in the row) | 3.7 GB to 3.8 GB | 1.6 GB to 1.7 GB | 3.8 GB to 5.4 GB | 0.57 GB | |
Bold: the highest overall score in each row; elsewhere, the lowest value.
- 1 Overall score = F1, computed by word. It drops when the tool leaves data readable (recall, R) and when it masks text by mistake (precision, P).
- 2 MAPA and Max: precision is a lower limit.
- 3 Test machine: 6 cores, 16 GB, no graphics card.
Source: method and detailed results, public on GitHub.
Example: what Claude receives
A document of the folder holds this text. Shield masks it before it is sent.
M. Thibault Mercadier, domicilié 12 rue des Glycines, 69007 Lyon, conteste son
licenciement par la société Ateliers Brunelac SAS, notifié le 3 mars 2025.
Il réclame 48 000 € devant le conseil de prud'hommes de Lyon (RG n° 25/01234).
Contact : t.mercadier@example.org M. PERSONNE_A, domicilié ADRESSE_1, conteste son
licenciement par la société SOCIETE_A SAS, notifié le 3 mars 2025.
Il réclame 48 000 € devant le conseil de prud'hommes de Lyon (RG n° RG_1).
Contact : EMAIL_1 - Note what stays readable: the date, the amount, the court. Claude needs them to do the work.
- Inside one dossier, a person always keeps the same code. "M. Mercadier", "Thibault Mercadier" and "MERCADIER Thibault" all become PERSONNE_A.
Fictional example. Real output of Shield 0.4.4.
Three rules to remember
-
Choose the folder in the Shield window. Do not add it to the conversation.
A file attached or a folder added to the conversation reaches Anthropic before Shield can act. Write "Protect a folder with Shield" and choose the folder in the Shield window. Claude then reads the masked documents.
-
Do not paste raw text into the chat box.
Text typed or pasted straight into the conversation is not masked: for a document, go through the protected folder. To talk about a person in the chat, write their code (PERSONNE_A), not their name.
-
Text already sent cannot be recalled.
Shield protects only what goes through it. If a name was sent by mistake, Shield cannot undo it.
What reaches the AI provider, what stays with you
Reaches Anthropic, the provider of Claude
- Masked text with codes (PERSONNE_A, SOCIETE_A, IBAN_1)
- Facts, dates (except dates of birth), amounts, legal reasoning
- Courts, laws and articles cited
- The dossier code (DOSSIER_1) and masked file names
- Your question
Stays on your computer
- Real names and real numbers
- The code-to-name table (the "vault"), encrypted
- The vault encryption key
- The real dossier name and folder path
- The local journal (events, codes and counts only)
The full path of a text is on the How it works page.
Shield in the Claude app
On Mac and on Windows, a few clicks add Shield to the Claude app. Shield runs on your computer.
1.
Add Shield to Claude
On the Install page, click the button for your computer. Then, in the Claude app, click "Sync", "Add" and "Continue".
2.
Protect a folder
In a new conversation, write "Protect a folder with Shield" and choose the folder of one client in the Shield window. Claude reads the documents with codes in place of the names.
3.
Get the final document
Write "Save the final document with Shield". Shield puts the real names back in a file on your computer, in the "Shield - sorties" folder.
Three plans
The engine is free. Two plans are coming for those who want more.
-
Free
Available now
€0
- The core of Shield: the whole masking engine.
-
Pro
Coming soon
€29 per user per month
- Everything in Free.
- Shield also finds the passages that point to someone without naming them.
- Answers to your questions by e-mail.
-
Cabinet
Coming soon
€49 per user per month
- Everything in Pro, plus settings and oversight for the whole firm.
Write to us to be told when it is ready: contact@ragbase.ai
Try RAGbase Shield on your case files
Free. Shield runs on your computer and sends nothing to RAGbase.