Skip to main content Switch to mobile version otynx 0.1.3 Sniff out the keys your AI agent could grab: an offline scanner for secrets and risky AI-agent settings.
pip install otynx==0.1.3 Copy PIP instructions
Sniff out the keys your AI agent could grab.
In April 2026 an AI coding agent fixing a small bug found an unrelated API token in a project file, and used it to delete a company's live database and backups in 9 seconds. Rules in a prompt are suggestions: the only real protection is that dangerous keys aren't reachable in the first place.
Otynx shows you what your agent can reach, before you let it loose. It scans a folder for secret keys and risky AI-agent settings, ranks them by how much damage they could do, and tells you how to fix each one. It's read-only, works offline and never sends anything anywhere.
pip install otynx otynx scan . # scan the current folder Requires Python 3.11+. Status: v0.1.3, alpha. Feedback and new rules welcome!
Exit code: 1 if anything is CRITICAL, otherwise 0. Use it in CI or as a pre-agent hook. You can also run it with python -m otynx scan .
Secrets: database URLs with passwords, AWS keys, GitHub tokens, OpenAI and Anthropic keys, Stripe live and test keys, Supabase service-role keys, Slack tokens, Google API keys, private keys, npm and PyPI tokens, and any random-looking value stored under a name like SECRET, TOKEN, PASSWORD or API_KEY.
Agent configs: secrets written straight into .mcp.json, .cursor/mcp.json or .vscode/mcp.json instead of loaded from the environment, and .claude/settings.json files that allow every Bash command with no deny rules (or turn permission prompts off).
Skipped: node_modules, .git, venv, binary files, files over 1 MB, and placeholders like your-key-here, xxxx, or ${TOKEN}.
How the danger level is worked out
Each finding starts with points for the worst thing its key can do: 40 if it controls real systems (databases, cloud, private keys), 30 if it changes code or money (GitHub, Stripe live), 20 if it spends money or reads data (OpenAI, Slack, Google), and 10 for test or unknown keys. Then it gets +10 if it looks live (prod, production, live nearby), −10 if it looks safe (localhost, test, dev, sandbox), +5 if it's inside the project folder, +5 if the same secret is in more than one file, and +5 if tools load it automatically (a .env file or the default AWS profile). 45+ is CRITICAL, 30–44 HIGH, 20–29 MEDIUM, under 20 LOW. Loose agent permissions aren't secrets, so they're always MEDIUM.
Read-only. Otynx never edits, moves or deletes a file.
Offline. No network calls, ever.
Masked. Secrets are always shown masked, e.g. sk_live_****9f2a, in the terminal, in JSON and in errors.
Never reads ~/.ssh. It only reports that private key files exist.
Home folder is opt-in. It looks outside the project only with --home.
No telemetry. Nothing about you or your scans is collected.
Only scan projects and computers you own or are allowed to check.
python -m venv .venv .venv\Scripts\activate # Windows (macOS/Linux: source .venv/bin/activate) pip install -e ".[dev]" pytest The full plan is in SPEC.md. To add a detection rule, add one Rule(...) to src/otynx/rules.py and a must-find and must-ignore test to tests/test_detectors.py. Never put a real-looking secret in a file: build fake ones at runtime (see tests/fake_secrets.py).
MIT View SPDX License List
security secrets scanner ai-agents mcp claude-code cursor cli
Development Status 3 - Alpha
Intended Audience Developers
Operating System OS Independent
Programming Language Python :: 3
Software Development :: Quality Assurance
Release files for otynx 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 63.6 kB
Release files / otynx-0.1.3.tar.gz
Release files / otynx-0.1.3-py3-none-any.whl
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 29, 2026 2 release files No provenance
Yanked reason: Security bug: please use 0.1.3
Yanked reason: Security bugs: please use 0.1.2
Nov 28, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




