AIToday
Zenn AI/MLPublished: Oct 16, 2026, 10:00 JST

Kamei masks secrets before AI sees them, plugs into Claude Code

Kamei masks secrets before AI sees them, plugs into Claude Code

3 Key Points

  1. What happened

    Kamei detects confidential and identifying information in text or code, swaps it for pseudonyms that keep their type — such as 人物VU4 for a name — and restores the originals when the answer comes back, working with tools like Claude Code by just changing where it connects.

  2. Why it matters

    Because the pseudonyms are built with an HMAC keyed per conversation, the same name produces a different pseudonym in each chat and the original cannot be guessed from it, so teams can keep using external LLMs while only pseudonymized text leaves their own Google Cloud project.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

Kamei is built around a split design. Fixed rules run every time — formatting cleanup, rules, Sensitive Data Protection, an organization's vocabulary and past human decisions — and anything caught there is always hidden. Only proper nouns that slip past those rules reach the judging agent, Gemma 4, which decides whether each is confidential. With "deep thinking" on, the agent picks its own tools to investigate ambiguous names; with it off, it asks the user instead. In the résumé sample, the only tool needed was reading surrounding context, which the agent chose three times. Human input is kept minimal: only names where judges split toward "pass" and digit strings that might be numbers are asked, and numbers are bundled into one question. When a user decides to hide a company, internal system or internal project name, it is written back into that person's vocabulary, so it is hidden automatically next time without asking — the 丸栄商事 hidden in the résumé sample was not asked about again in a later SQL paste. Employee numbers and similar personally linked identifiers are deliberately not written back. For control, a "pass" verdict needs backing: even if the agent decides to pass a name, a rule or another judge saying "hide" sends it to human confirmation. Tools are capped at 8 calls and 15 seconds, and if Gemma 4 is unavailable the system falls back to Gemini Flash-Lite and then to rules so processing continues. Just before sending, it re-checks without an LLM that names marked for hiding are not still present as literal strings, and hides them mechanically if they are. On security, Model Armor inspects the external LLM's reply before originals are restored, pseudonym keys are created per conversation in Cloud KMS, and the system claims it blocked 6 of 6 attack cases by treating input as data and wrapping it in delimiters that change on every call.

FAQ
How much does one run cost?
Running the résumé sample once costs roughly 約 0.0063 ドル(約1円). The Gemma 4 used for judging is about one-tenth the unit price of the Gemini used for answering.
How does Kamei let a team use Claude Code?
It accepts requests in the same shape as Anthropic's Messages API, so you only change Claude Code's connection destination. A personal API key is issued on screen and shown only once, with just its hash stored.
What happens to the original text?
Logs, traces and decision records keep only pseudonyms and judgment results, and the mapping table is deleted after 24 hours. Models used for judging run inside the organization's own Google Cloud project, and only pseudonymized text goes to external LLMs.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Next articleLinus Torvalds leans on Claude Code to improve Linux kernel