Detects leaked secrets (API keys, tokens, private keys) in source code.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
A local secret scanner for source code. Trestle finds API keys, access tokens, passwords, private keys, and certificates before commiting them by mistake, and keeps them from leaving your machine.
This is the Community edition. Open source under Apache-2.0, and a mirror of the version distributed at trestlescan.com.
.gitignore and your own skip rules.A recent stable Rust toolchain is the only prerequisite.
This builds two binaries: trestle, which does not make network requests, and
trestle-net, which can check whether found secrets are still live.
In any project directory:
Other commands:
trestle watch keeps scanning as files change.trestle lsp starts the language server.trestle mcp starts the MCP server.trestle uninstall removes the integration from a project.The default trestle binary does not make network requests. The separate
trestle-net binary adds an optional check that contacts each detected
secret's provider to confirm whether the credential is still valid:
Each finding is then labeled (active), (inactive), or (could not verify). This check runs only in trestle-net, so the trestle binary
remains fully offline.
The full documentation is available at trestlescan.com/documentation.
Use the official GitHub Action to scan every push and pull request:
See toro-guapo/trestle-action for inputs, outputs, SARIF upload to the GitHub Security tab, and supported runners.
Trestle is open core.
.env, and per-platform
rotation guides for AWS, GitHub Actions, Vercel, Netlify, Kubernetes,
Doppler, and other targets. Distributed under a commercial license.Pro is available at trestlescan.com.
This is a read-only mirror, refreshed on every Community release. Development happens in a private repository.
Issues and discussion are welcome on GitHub. Pull requests are not accepted through this mirror. If you have a fix or an idea, please open an issue.
Apache License 2.0. See LICENSE.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/trestle)<a href="https://allmcps.com/mcp/trestle"><img src="https://allmcps.com/api/badge/trestle?style=directory" alt="Trestle on AllMCPs" /></a>