Tools

Stop AI From Leaking API Keys, Card Numbers and Client Files

Stop AI data leaks: a free Claude Code plugin holds API keys, card numbers, IBANs, ID numbers and client lists back from AI and gives each kind a safe route.
View on GitHubgithub.com/vadimchernets/gatecall
A doorway labelled message to AI with a guard. A card number, IBAN or key is turned back with a one-line reason; a client folder goes to the model on this computer; a project folder goes to the company's own account.
Swipe to see the whole diagram, or tap to open it

Most people use AI with a simple hope: that nothing they paste in will ever matter. Then a card number slips into a message, an API key (the secret password a program uses to reach a paid service) ends up in a command, or a whole spreadsheet of client addresses goes into a chat so that it can be "tidied up". Companies know this. Some ban AI altogether, which costs them the benefit. Others write a policy that nobody reads at the moment of pasting.

Gatecall is a free, open-source plugin for Claude Code, Anthropic's AI assistant that works with the files on your computer. It puts the company's rule exactly where the mistake happens, and it gives people a way forward instead of only a "no": red folders are read by a model on this computer, the company's work goes to the company's own accounts, and a key, a card, an IBAN, an ID number or a list of people's addresses never leaves in a message by accident. Gatecall itself sends nothing and buys nothing.

Why you would want it

"Is it safe to put confidential information into Claude?" is the first thing Google suggests when you start typing that question, followed by the same question about Copilot, ChatGPT and Gemini. People already do it: in a January 2025 TELUS Digital survey of 1,000 US employees at large companies, 57% said they had entered confidential information into AI assistants, and only 29% said their company had clear AI guidelines (Business Wire).

Claude Code can read files, run commands and call web tools on your computer, so the question matters even more there. A GitHub issue on the Claude Code repository describes secrets showing up even though the project's instructions told the assistant not to touch them. A written instruction is a request; a check that runs before the step is a lock. The best-known case outside coding is Samsung in 2023, where engineers pasted source code and a meeting transcript into a chatbot. Nobody meant harm. They were just working fast.

What it gives you

A journal the security team can trust

Every stop is recorded by time, folder, kind and rule. The value itself is never stored: only a fingerprint (a short code made from the value with the company's own secret key, called an HMAC), so the same card coming back twice can be counted, and without the key nobody can work back to the number, not even by trying every possible one. A company can choose to keep ID numbers only as a count, with no fingerprint at all. Records are deleted after a retention period (90 days unless you choose another) and can be exported as a spreadsheet file or as JSON Lines for the security team.

The journal and its key are readable by their owner only, and only Gatecall opens them. A step that tries to read, search or edit them is stopped; if a search happens to reach the key anyway, the key is taken out of the result before Claude sees it (Claude Code 2.1.227 or later). If the security team already has a card number, it can check it against the journal with one openssl line shown in the README.

A concrete example

An accountant at a small firm asks Claude to "check this list of clients and chase the late ones", and pastes a table with names, e-mail addresses and IBANs. With Gatecall installed the message does not go out. The accountant sees one plain line, in their own language: the text holds IBANs and a list of addresses. Then they take the route Gatecall points to: the clients folder is marked red, so a model on their own computer reads it in the red window, or they make a cleaned copy in which the IBANs and addresses are masked. The work still gets done, and the bank details stay in the building.

How to start

You need Claude Code on macOS, Linux or Windows, and Python 3.8 or newer; Gatecall finds a real Python for you and says so in one line at the start of a session if there is none. No account and no payment are needed. In Claude Code, type:

/plugin marketplace add https://raw.githubusercontent.com/vadimchernets/poly-a1-plugins/main/.claude-plugin/marketplace.json
/plugin install gatecall@poly-a1

The first line adds the Poly catalogue by its link, with no git or GitHub account. Then say "set up the data rules for our company". The assistant asks, one at a time, which folders are red and which are yellow, which country you are in and whether you work in the EU or under a US defence contract, whether any countries or vendors are off limits, and how long to keep the journal. It writes a company-ai-policy.json file and the matching permission block. The policy can also name the language the guard speaks, such as "language": "es". A policy placed in the company folder holds in every folder inside it, and one installed by an administrator wins over the rest.

Useful phrases afterwards: "where may this folder go?" shows the routes, "scan this file" shows what would be stopped or masked, "make a clean copy for Grok" makes the masked copy, and "what did the guard stop this week?" reads the journal.

Where it comes from

Gatecall is written by Vadym Chernets and released under the Apache-2.0 licence; its recognizers follow those of Microsoft's Presidio. The current version is 0.1.6, from 19 October 2026, with 97 automated tests and a Zenodo archive (DOI 10.5281/zenodo.23116724). It uses only Python's standard library and contains no network code; a test fails the build if any appears.

Gatecall works with the other company plugins: Firmcall installs the same policy file on every laptop, Routecall opens the local-model window that may read red folders, and Billcall reads the same policy to count what AI costs. All of them are in the Poly plugins catalogue.

The code, tests and full list of settings are at github.com/vadimchernets/gatecall.

View gatecall on GitHub

Vadym Chernets also builds Poly, an app in which AIs from different companies check each other's work.

All tools · All papers and notes