Secret Detector
AI / AgentScan code or config for leaked API keys, tokens, and credentials: OpenAI, AWS, GitHub, Stripe, and more
A pre-commit sanity check on a diff that touches config or environment files is a good habit, and this scans pasted code, `.env` files, or CI configs for known secret formats (OpenAI, AWS, GitHub, Stripe, and others) entirely client-side, which matters since you're pasting real credentials into it. It matches known formats specifically, so custom or unusual token shapes can slip through undetected, and finding a match here doesn't do anything beyond flagging the location: it won't revoke keys or scrub git history, so any real leaked credential still needs to be rotated immediately. Treat this as a quick manual check, not a replacement for dedicated CI tooling like git-secrets, gitleaks, or GitHub's push protection, which are the right layer for actual pipeline enforcement.
How to use Secret Detector
- 1.Paste code or a config file before committing it to catch leaked API keys, tokens, and credentials for services like OpenAI, AWS, GitHub, and Stripe.
- 2.Run it over a `.env` file or CI config to double-check nothing sensitive is about to get pushed to a public repo.
- 3.Use it as a quick pre-commit sanity check when reviewing a diff that touches config or environment-related files.
Frequently asked questions
Use via API, SDK, or MCP
cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/detect-secrets \
-H "Authorization: Bearer utx_live_..." \
-H "Content-Type: application/json" \
-d '{"text": "API_KEY=sk_live_abc123xyz\nDATABASE_URL=postgres://user:pass@localhost/db"}'Get an API key from your dashboard · Full API docs →