TrustBoost PII Sanitizer

Workflows

Context-aware PII sanitization for autonomous AI agent pipelines. Sanitizes text before LLMs with 5 context modes (legal/financial/medical/code/general), Privacy Budget per agent, and TrustBoost Score for M2M trust verification. Supports EN, ES (LATAM), PT (BR/PT), DE, JA, FR, IT, KO with country-specific patterns (RFC, CUIT, CPF, CNPJ, Personalausweis, マイナンバー, NIR, Codice Fiscale, 주민등록번호). Returns sanitized text, safety_score (0.0-1.0), risk_category (CRITICAL/PRIVATE/SENSITIVE/CLEAN), and context_applied. No SDK required — single POST request. 50 free requests per wallet with tx_hash="TRIAL".

Install

openclaw skills install trustboost-pii-sanitizer

TrustBoost PII Sanitizer v2.6.0

Privacy firewall for autonomous AI agent pipelines. Sanitizes PII before text reaches LLMs. Every paid sanitization anchored on Solana — verifiable forever.

Live Demo: https://huggingface.co/spaces/TrustBoost/pii-sanitizer Verify proof: https://api.trustboost.dev/verify/{anchor_tx} Landing page: https://teodorofodocrispin-cmyk.github.io/TrustBoost-PII-Sanitizer/

What it does

TrustBoost sits between your agent and the LLM. It detects and redacts PII — emails, phone numbers, national IDs, API keys, passwords, financial data — before the text reaches the model. Every paid sanitization is anchored on Solana via Helius, providing an immutable audit trail verifiable by anyone.

Why use TrustBoost

  • EU AI Act enforcement begins August 2, 2026 — Articles 12, 13, 26 require verifiable audit trails
  • Zero friction — single POST request, no SDK, no setup
  • 8 languages — including LATAM identifiers not covered by regex tools
  • x402 native — agents pay autonomously in USDC on Solana
  • Proof on-chain — immutable evidence for regulators and auditors
  • Fail-closed — if unreachable, blocks the request rather than passing unsanitized text

Quick Start — TRIAL mode (no wallet needed)

curl -X POST https://api.trustboost.dev/sanitize \
  -H "Content-Type: application/json" \
  -d '{
    "text": "My email is john@example.com and SSN is 123-45-6789",
    "tx_hash": "TRIAL",
    "wallet_address": "your-agent-id",
    "context": "general"
  }'

Response:

{
  "status": "success",
  "data": {
    "sanitized_content": "My email is [REDACTED] and SSN is [REDACTED]",
    "safety_score": 0.6,
    "risk_category": "PRIVATE",
    "context_applied": "general",
    "usage_metrics": {
      "quota_remaining": 49,
      "quota_limit": 50
    }
  }
}

x402 Autonomous Payment Flow

# Step 1: Call without payment → receive HTTP 402
curl -X POST https://api.trustboost.dev/sanitize \
  -H "Content-Type: application/json" \
  -d '{"text": "Contact john@example.com"}'
# → HTTP 402 with USDC payment instructions

# Step 2: Pay 149 USDC on Solana mainnet
# Address: giu4VciTkfWJNG1oeP6SzHEJwmabikJSMB91GaFNWE4

# Step 3: Retry with tx_hash
curl -X POST https://api.trustboost.dev/sanitize \
  -H "Content-Type: application/json" \
  -d '{"text": "Contact john@example.com", "tx_hash": "YOUR_TX_HASH"}'
# → sanitized text + proof_of_sanitization on Solana

Endpoints

EndpointMethodDescription
/sanitizePOSTCore PII sanitization endpoint
/redactPOSTAlias for /sanitize
/sanitize/previewPOST3 free previews per IP/24h
/demoPOST3 free requests per hour
/detectPOSTAlias for /demo
/verify/{anchor_tx}GETVerify Proof of Sanitization on Solana
/anchor/{anchor_tx}GETAlias for /verify
/score/{wallet}GETTrustBoost Score M2M trust verification
/healthGETService health check
/mcpPOSTMCP Server JSON-RPC 2.0
/llms.txtGETLLM and agent discovery
/openapi.jsonGETOpenAPI 3.0 specification

Context Modes

ContextUse case
generalStandard PII detection (default)
legalMaximum redaction for legal documents
financialFinancial identifiers focus
medicalHIPAA-grade sanitization
codeAPI keys and credentials only

Languages & PII Patterns

LanguageRegionPatterns
🇺🇸 EnglishGlobalSSN, API keys, credit cards, passwords
🇲🇽🇨🇴 Spanish LATAMLatin AmericaRFC, CUIT, CURP, DNI, RUT, Cédula
🇧🇷🇵🇹 PortugueseBR & PTCPF, CNPJ, RG, NIF
🇩🇪 GermanDE/AT/CHPersonalausweis, Steuernummer, IBAN DE
🇯🇵 JapaneseJapanマイナンバー, 運転免許証, 住所
🇫🇷 FrenchFR/BE/CANIR, SIRET, Carte Vitale, IBAN FR
🇮🇹 ItalianItalyCodice Fiscale, Partita IVA, Tessera Sanitaria
🇰🇷 KoreanKorea주민등록번호 (RRN), 사업자등록번호

Pricing

TierCostQuota
PreviewFree3 requests/IP/24h
TrialFree50 sanitizations/wallet
Paid149 USDC10,000 sanitizations + on-chain proof

MCP Integration

{
  "mcpServers": {
    "trustboost": {
      "url": "https://api.trustboost.dev/mcp"
    }
  }
}

Compatible with: Claude Code · Cursor · Windsurf · Glama

Proof of Sanitization

# Verify any paid sanitization independently
curl https://api.trustboost.dev/verify/{anchor_tx}
# → {"status": "verified", "proof": {...}}

EU AI Act compliance — Articles 12, 13, 26.

Resources