Skip to content
Limited Edition DevTools

Secrets-LE

Find hardcoded credentials in a codebase, and never print one into the report

FreeOpen sourceMITNo network access

No editor in the loop? npx -y secrets-le-mcp runs the same engine as an MCP server, so an agent can call detect_secrets with nothing else installed, and cargo install secrets-le puts the same check in a terminal. Every way to install it.

Overview

What Secrets-LE does

The cheapest place to catch a committed credential is before the commit. Secrets-LE scans your workspace for API keys, passwords, tokens and private keys, groups the findings by file with positions pointing at the value, names the issuer of a prefixed key — OpenAI, Anthropic, GitHub, Stripe, Hugging Face and more than twenty others — and can replace them in place with a placeholder. Detection is regex-based over full text, so it works on code, configs, .env files, YAML, JSON and logs alike.

What people use it for

  • Pre-commit safety net

    Scan the workspace and see every detected credential grouped by file, with line and column positions.

  • Sanitize in place

    Replace the secrets in the active file with a placeholder, ready to share or paste into an issue.

  • Patterns, not proof

    A scanner built on patterns can miss secrets and can flag things that are not. Review the results — it is a net, not a guarantee.

Palette

5 commands

Open the command palette and type the name. Nothing is bound to a shortcut by default — the editor's keymap is the user's, not ours.

secrets-le.showPositions: Show the line and column of each secret found. On by default.

  • Detect Secretssecrets-le.detect
  • Detect Secrets in Foldersecrets-le.detectFolder
  • Sanitize Secretssecrets-le.sanitize
  • Open Settingssecrets-le.openSettings
  • Help & Troubleshootingsecrets-le.help

Install

Install Secrets-LE

VS Code

ext install nolindnaidoo.secrets-le

Open Quick Open (Cmd/Ctrl+P) and paste.

Cursor / Windsurf

cursor --install-extension nolindnaidoo.secrets-le

Cursor, Windsurf, VSCodium and the other VS Code forks pull from Open VSX. The id is the same as on the Marketplace.

AI agents

npx -y secrets-le-mcp

Runs Secrets-LE's engine as an MCP server, so an agent can call detect_secrets with no editor involved. VS Code 1.101+ needs nothing — the extension registers it for you.

Channels

Where it ships

One engine, 5 places to get it. Copy the one for the editor you use.

Links

Where Secrets-LE lives

The family

The other 16