This notebook demonstrates how to use theDocumentation Index
Fetch the complete documentation index at: https://docs.zerogpu.ai/llms.txt
Use this file to discover all available pages before exploring further.
zerogpu-router plugin so that Claude Code can scrub personal data out of a raw CSV export, all from a single natural-language prompt. You hand Claude a feedback_export.csv whose free-text column is full of customer names, emails, and phone numbers, and you get back two files: a clean copy that is safe to share, and a PII audit log of exactly what was removed and where. By combining Claude Code’s plugin system and ZeroGPU’s PII-aware nano models, this notebook walks you through a practical pattern where Claude orchestrates the file work while ZeroGPU does the high-volume, well-defined redaction, so raw PII never has to live in your transcript.
For the full reference, see the Claude Code plugin integration guide.
In this notebook, you’ll explore:
- Claude Code: Anthropic’s agentic coding tool that runs Claude directly in your terminal, with file editing, command execution, and a plugin system that extends sessions with custom slash commands and skills. Here it reads the CSV, loops over every row, and assembles the output files while routing the redaction work to ZeroGPU.
- ZeroGPU: A serverless inference platform for nano language models, small specialized models that run cheaply and quickly behind a single OpenAI-compatible API. It hosts a catalog of models tuned for chat, classification, structured extraction, PII detection, and IAB tagging, with geo-aware routing and a managed Batch API so teams can ship production AI features without standing up GPU infrastructure.
🎥 Watch the Video Guide
Video walkthrough coming soon.📦 Installation
First, install the ZeroGPU CLI, which is the binary every router skill wraps. You’ll also need Claude Code itself (npm install -g @anthropic-ai/claude-code) and Node.js 20 or newer.
claude in your terminal, then add the marketplace and install the zerogpu-router plugin. This is what exposes every ZeroGPU command as a Claude Code skill:
/plugin. You should see zerogpu-router - enabled. For the full setup, including CI-friendly flags, see the Claude Code plugin integration guide.
🔑 Setting Up API Keys
You’ll need to set up your ZeroGPU credentials so that every skill call works without re-prompting. This ensures Claude Code can reach ZeroGPU’s inference API securely. You can go to here to get an API key and Project ID from ZeroGPU. The key starts withzgpu-api- and the Project ID (UUID) is on the project settings page.
Sign in once from inside your Claude Code session. You’ll be prompted for your API key and Project ID, and both are persisted to your config file:
status exits 0 and prints your masked API key when everything is wired up:
status reports you’re not signed in, run /zerogpu-router:login again before continuing.
🔐 Redact PII with ZeroGPU
ZeroGPU is a serverless inference platform for nano language models, small specialized models that run cheaply and quickly behind a single OpenAI-compatible API. It hosts a catalog of models tuned for chat, classification, structured extraction, PII detection, and IAB tagging, with geo-aware routing and a managed Batch API so teams can ship production AI features without standing up GPU infrastructure. In this section, we will redact PII from a single support comment as an example, so you can see exactly what the model gives back before pointing it at a whole file. Theredact-pii skill detects PII spans and replaces each one in-line with an uppercase [LABEL] placeholder. It routes to gliner-multi-pii-v1 with mask: "label".
🧾 Sanitize a CSV of Customer Feedback
This section takes a raw CSV export whose free-text column is full of personal data and produces a clean copy plus a PII audit log, with Claude orchestrating the loop and ZeroGPU doing the redaction on every row. Your support tool exportsfeedback_export.csv. The comment column is open-ended text where customers typed whatever they wanted, including their names, emails, phone numbers, and sometimes billing addresses. Before this file can go to a dashboard, a Slack channel, or a Git fixture, the PII has to come out. Compliance also wants a record of what was scrubbed, not just a clean file.
Doing this by hand is error-prone, and one missed phone-number format leaks a customer. Regex is brittle. This recipe does it with a PII-aware model, consistently, across every row.
Step 1: Prepare the input CSV
Place your export in the working directory. The recipe assumes a CSV with at least one free-text column to sanitize; all other columns pass through untouched.id column. It’s what links a redacted row back to its audit entries. The date and rating columns are copied verbatim, and comment is the only column the models touch. If you don’t have an id column, ask Claude to add a row index first.
Step 2: Kick off the workflow with one prompt
In your Claude Code session, in the directory containing the CSV, paste this. That’s the whole interaction; everything after it is what Claude does on your behalf.Step 3: Claude reads and parses the CSV
First, Claude opensfeedback_export.csv, identifies the header row, and isolates the comment column as the field to process. It holds the other columns aside to re-attach unchanged. No model calls happen yet; this is just file parsing.
Step 4: Per row, redact the comment with redact-pii
For each row, Claude sends the comment value to redact-pii, which returns the masked text that goes into the clean sheet.
Step 5: Per row, inventory the PII with extract-pii
For the same comment, Claude also calls extract-pii, which returns the PII entities as structured JSON without modifying the text. This is what populates the audit log. Claude tags each returned entity with the row’s id so it can be traced back.
redact-pii gives you the masked text; extract-pii gives you the itemized list of what was masked. They run on the same PII model but serve different outputs: the shareable file versus the compliance trail. extract-pii defaults to -t 0.5 and -c identity,contact; add financial, medical, or credentials if your text contains them, and raise -t to reduce false positives.
Step 6: Claude assembles the two output files
Claude loops Steps 4 and 5 across every row, then writes both files.feedback_clean.csv keeps the same schema as the input, with comment now masked:
pii_audit.csv has one row per detected entity, joined to the source row by id:
Step 7: Verify before you share
Run a few quick sanity checks before the clean file leaves your machine:extract-entities pass with your own labels and mask those spans too:
feedback_export.csv is the original raw PII and is not safe to share. feedback_clean.csv has the same rows with comment masked and is safe to share. pii_audit.csv deliberately contains the original PII values, so treat it as a sensitive artifact: store it like any other secret, and never commit it to a public repo or drop it next to the clean file.
🎉 From a single prompt, Claude parsed the CSV, ran redact-pii and extract-pii on every row, and wrote both a shareable clean copy and an auditable PII log, all while the raw personal data stayed out of its reasoning context.
🌟 Highlights
This notebook has guided you through setting up and running a Claude Code workflow with ZeroGPU for sanitizing a CSV of customer feedback. You can adapt and expand this example for various other scenarios requiring consistent, auditable handling of sensitive free-text data. Key tools utilized in this notebook include:- Claude Code: Anthropic’s agentic coding tool that runs Claude directly in your terminal, with file editing, command execution, and a plugin system that extends sessions with custom slash commands and skills. Here it reads the CSV, loops over every row, and assembles the output files while routing the redaction work to ZeroGPU.
- ZeroGPU: A serverless inference platform for nano language models, small specialized models that run cheaply and quickly behind a single OpenAI-compatible API. It hosts a catalog of models tuned for chat, classification, structured extraction, PII detection, and IAB tagging, with geo-aware routing and a managed Batch API so teams can ship production AI features without standing up GPU infrastructure.

