Stroq: free scanner for secrets in AI coding sessions

Stroq: free scanner for secrets in AI coding sessions

Stroq is a free command-line tool that scans the local session logs of AI coding agents for secrets you may have left in them, such as API keys. It’s open source under the Apache-2.0 licence, needs no account and runs with one npx command. Last checked: 6 Nov 2026.

Why would an agent session hold a secret?

When you work with a coding agent, you paste errors, config files and sometimes whole .env files into the chat. The agent may also read those files itself. Whatever passes through can end up in the session records stored on your computer. Stroq exists to find that leftover material before someone else does.

It’s a handy check if you’ve ever dropped a database password into an agent prompt “just to get it working”.

How do I run it?

You need Node.js 22 or newer. There’s nothing to sign up for. The project’s README gives two commands:

  1. npx @stroq/cli scans your own sessions and gives you a card showing what it found.
  2. npx @stroq/cli init sets it up to guard your agent as you work.

Start with the first one. It tells you whether you have a problem before you change how your agent behaves.

Is it free, and what’s the licence?

Yes. The code is released under the Apache-2.0 licence, which allows personal and commercial use. At the time we checked, the repository had 97 stars and 7 forks, so it’s a young project. Treat it as a useful early tool rather than something with a long track record.

What about privacy?

The README states that Stroq sends nothing and has no telemetry, and that its hooks make no outbound network calls. That’s the project’s own claim, and we haven’t audited the code. The tool does read your local session logs, which is the point of it. Run it only on your own machine, and don’t point it at logs that belong to someone else.

What if it finds something?

The source page doesn’t say what to do next, so this part is general: a key that has appeared in a log should be treated as exposed. The safe move is to rotate it in the service that issued it, then use a new one. Deleting the log line doesn’t undo a leak if the key was ever copied or synced elsewhere.

What we couldn’t confirm

The repository has no published release listed, so we can’t tell you a current version number. The README shows version 0.30.0 only in screenshots, and we aren’t calling it the latest. We also didn’t re-read the details of how the hooks work on Windows and macOS, so check the README for your system before relying on the guard feature.

To check the skills your agent loads, see NVIDIA SkillSpector, and if you use VS Code, check the backdoored Claude Code extension.

Source and verification

Checked against Stroq on GitHub on 6 Nov 2026.

Get one useful update every day

Verified, short, free. Join our Telegram channel: t.me/asn_daily · Instagram: @asn_daily