{
  "markdown": "<p align=\"left\">\n  <picture>\n    <source media=\"(prefers-color-scheme: dark)\" srcset=\"assets/logo-dark.svg\">\n    <img src=\"assets/logo-light.svg\" alt=\"Trestle logo\" height=\"18\">\n  </picture>\n</p>\n\nA local secret scanner for source code. Trestle finds API keys, access tokens,\npasswords, private keys, and certificates before commiting them by mistake,\nand keeps them from leaving your machine.\n\nThis is the Community edition. Open source under Apache-2.0, and a mirror of\nthe version distributed at [trestlescan.com][trestlescan].\n\n## What Trestle does\n\n- **Detection.** Hundreds of credential patterns from real services (OpenAI,\n  Anthropic, Stripe, AWS, GitHub, Google, Slack, Sentry, and more), plus\n  unfamiliar keys spotted by entropy, variable names, and surrounding code.\n- **Code-aware.** Trestle parses your files instead of running plain regular\n  expressions, so it can tell an environment variable from a build argument,\n  a header, a parameter, or a constant in source.\n- **Runs everywhere you work.** Command line scanner, file watcher,\n  pre-commit hook, language server for LSP-aware editors (Neovim, Helix, Zed,\n  JetBrains), MCP server for AI assistants (Claude Code, Cursor, Copilot,\n  Codex), and a native VS Code extension.\n- **Local only.** Runs entirely on your machine. No network, no telemetry,\n  no account, no signup.\n- **One static binary.** No runtime to install, multi-threaded, and honors\n  `.gitignore` and your own skip rules.\n\n## Building from source\n\nA recent stable Rust toolchain is the only prerequisite.\n\n```sh\ncargo build --release\n```\n\nThis builds two binaries: `trestle`, which does not make network requests, and\n`trestle-net`, which can check whether found secrets are still live.\n\n## Quick start\n\nIn any project directory:\n\n```sh\ntrestle install  # adds a pre-commit hook and AI instructions\ntrestle scan     # scans the current directory\n```\n\nOther commands:\n\n- `trestle watch` keeps scanning as files change.\n- `trestle lsp` starts the language server.\n- `trestle mcp` starts the MCP server.\n- `trestle uninstall` removes the integration from a project.\n\n## Checking whether a secret is live\n\nThe default `trestle` binary does not make network requests. The separate\n`trestle-net` binary adds an optional check that contacts each detected\nsecret's provider to confirm whether the credential is still valid:\n\n```sh\ntrestle-net scan --validate\n```\n\nEach finding is then labeled `(active)`, `(inactive)`, or `(could not\nverify)`. This check runs only in `trestle-net`, so the `trestle` binary\nremains fully offline.\n\nThe full documentation is available at [trestlescan.com/documentation][docs].\n\n## GitHub Action\n\nUse the official GitHub Action to scan every push and pull request:\n\n```yaml\nname: Secret scan\n\non:\n  push:\n  pull_request:\n\njobs:\n  trestle:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: toro-guapo/trestle-action@v1\n```\n\nSee [toro-guapo/trestle-action][trestle-action] for inputs, outputs, SARIF\nupload to the GitHub Security tab, and supported runners.\n\n## Community and Pro\n\nTrestle is open core.\n\n- **Community** (this repository) handles detection. Every finding is reported\n  with its location and the rule that flagged it. Apache-2.0 licensed.\n- **Pro** adds remediation guidance: for each finding, the steps to remove the\n  secret from source, what to keep in your local `.env`, and per-platform\n  rotation guides for AWS, GitHub Actions, Vercel, Netlify, Kubernetes,\n  Doppler, and other targets. Distributed under a commercial license.\n\nPro is available at [trestlescan.com][trestlescan].\n\n## About this repository\n\nThis is a read-only mirror, refreshed on every Community release. Development\nhappens in a private repository.\n\nIssues and discussion are welcome on GitHub. **Pull requests are not accepted\nthrough this mirror.** If you have a fix or an idea, please open an issue.\n\n## License\n\nApache License 2.0. See [LICENSE](LICENSE).\n\n[trestlescan]: https://trestlescan.com\n[docs]: https://trestlescan.com/documentation\n[trestle-action]: https://github.com/toro-guapo/trestle-action\n",
  "bytes": 4096,
  "sha": "b2133a7e5fb64c16f2b30d9f71a450216cbd502038cb91b361bbb3dd5ab148c4",
  "repo_slug": "toro-guapo/trestle",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_com_trestlescan_trestle_c9d19d30/readme"
}