This release is a pre-release and may not be stable for production use.
Scan repositories to detect GenAI and Agentic AI applications, identify LLM usage, and analyze agent intent
pip install quin-scanner==1.0.0rc2 Copy PIP instructions
Nothing in your codebase is hidden from Quin.
Named after Bao Qingtian -- the incorruptible judge of the Song Dynasty who saw through every deception -- Quin is an open-source CLI tool by Gaincontrol that scans any codebase to detect AI agents, extract system prompts, classify risk, and produce compliance-ready reports.
Point Quin at a repo and get back: every AI agent, what it does, what tools it has, and what risks it carries -- in a single HTML report.
Note: This is version 1.0.0rc2, the current release candidate for 1.0. The interfaces in the stability policy are frozen; 1.0.0 follows after a soak period without contract changes. Scan results are provided as-is and may be incomplete, inaccurate, or contain false positives/negatives. Always review and validate findings independently before making security, compliance, or architectural decisions based on them. The authors and contributors of Quin accept no responsibility or liability for any actions taken, or not taken, based on the output of this tool. If you encounter any issues, please open an issue or email us at pixiedust@gaincontrol.ai -- your feedback helps us improve the scanner.
Quin is built by Gaincontrol, headquartered in Singapore. We build the infrastructure enterprises need to run AI agents safely.
Quin maps the AI and agent components present in a repository, preserves the evidence behind each detection, and produces reports that can be reviewed locally or used in CI.
Quin’s detections are evidence for review, not proof that an application is safe or unsafe. Relationship mapping is currently based on explicit source-code tool lists; config-only agent/tool relationships may not be linked.
uv tool install quin-scanner 2. Set up your .env Create a .env file in your working directory (Quin loads the first .env it finds in the current directory or any parent directory, so run it from the folder whose .env you mean):
# Pick one LLM provider: ANTHROPIC_API_KEY=sk-ant-... # OPENAI_API_KEY=sk-... # GOOGLE_API_KEY=... # For scanning GitHub repos or orgs: GITHUB_TOKEN=ghp_... # For scanning Azure DevOps repos: AZURE_DEVOPS_TOKEN=... # Optional — vulnerability web search (OSV.dev is always on). # Reuses the chosen provider's API key; set PERPLEXITY_API_KEY if you pick perplexity. # VULN_SEARCH_PROVIDER=anthropic # perplexity | gemini | openai | anthropic | none # PERPLEXITY_API_KEY=pplx-... # Optional — custom base URL for OpenAI-compatible endpoints (vLLM, LiteLLM, Azure, Ollama). # OPENAI_COMPATIBLE_URL=http://localhost:11434/v1 3. Set up scanner-config.yaml curl -O https://raw.githubusercontent.com/Gaincontrol-Pte-Ltd/quin-agent-scanner/main/scanner-config.yaml The default config uses Anthropic and outputs HTML:
llm: provider: anthropic # openai | anthropic | google | ollama | openai-compatible model: claude-haiku-4-5-20251001 # api_key_env: ANTHROPIC_API_KEY # reads from your .env output: format: html # html | json | yaml | sarif vuln_check: enabled: true # OSV.dev lookup for detected framework+version search_provider: anthropic # perplexity | gemini | openai | anthropic | none # search_model: sonar-pro # optional override; provider defaults otherwise osv_timeout_seconds: 30 web_timeout_seconds: 60 scanners: enabled: - dependency - config - code_pattern - file_structure - framework - prompt_discovery - dockerfile - jupyter - iac - ci - mcp - agent_instance - tool_definition - skills 4. Run your first scan # Scan a local repo -- generates an HTML report in ./report/ quin-scanner scan ./path/to/repo --config scanner-config.yaml # Scan a GitHub repo quin-scanner scan https://github.com/org/repo --config scanner-config.yaml # Scan an Azure DevOps repo quin-scanner scan https://dev.azure.com/org/project/_git/repo --config scanner-config.yaml # Static-only scan (no LLM, no API key needed) quin-scanner scan ./path/to/repo --config scanner-config.yaml --no-llm # Skip the vulnerability lookup, or pick a different web-search provider quin-scanner scan ./path/to/repo --config scanner-config.yaml --no-vuln-check quin-scanner scan ./path/to/repo --config scanner-config.yaml --vuln-search-provider perplexity Zino governed-agent detection Pass --detect-zino to also check whether the code uses the Zino SDK. The report then includes a governance section classifying the repo as governed (SDK imported/initialised or hook/plugin/config present), declared_only (listed as a dependency but never used), ungoverned (AI app with no Zino) or not_applicable. Off by default; also settable via governance: {detect_zino: true} in the config file.
quin-scanner scan ./my-agent --detect-zino --no-llm Scan a skill before installing it See the skills scanning guide for verdicts, baselines, CI examples and limits.
quin-scanner skills scan runs only the Agent Skills scanner on a skill folder, a .zip file or a repo URL, without a whole-repo scan. It is static by default (add --llm-provider/--config to get the LLM review) and never executes anything in the target. Zip files are extracted into a temporary directory with limits (5000 members, 200 MB uncompressed) and rejected if they contain absolute paths, .. or symlinks.
# A local skill folder or a downloaded zip quin-scanner skills scan ./my-skill quin-scanner skills scan ~/Downloads/pdf-skill.zip # A folder inside a GitHub repo, failing on CAUTION as well as HIGH_RISK quin-scanner skills scan https://github.com/owner/repo/tree/main/skills/pdf --fail-on caution # JSON or SARIF output quin-scanner skills scan ./my-skill -o json -f skills.json quin-scanner skills scan ./my-skill -o sarif -f skills.sarif Exit codes: 0 when every skill is below --fail-on (default high_risk), 1 when at least one skill is at or above it, 2 on an error (bad target, unreadable or unsafe zip, missing or malformed baseline).
To accept the findings you have already reviewed and see only new ones later, write a baseline and pass it on later scans:
# Record every current finding (static, no LLM). Refuses to overwrite without --force. quin-scanner skills baseline ./skills -o skills-baseline.yaml # Later: only findings not in the baseline are reported, scored and counted for the exit code quin-scanner skills scan ./skills --baseline skills-baseline.yaml # Baseline: 9 finding(s) suppressed, 0 stale entries # The full scan accepts the same file quin-scanner scan . --skills-baseline skills-baseline.yaml The baseline file lists one fingerprint per finding with its rule, skill and file (no evidence, no line numbers), plus an empty note you can fill in. Scan the same target root you baselined, since file paths are part of the fingerprint. See docs/skill-rules.md.
quin-scanner skills scan options: -o terminal|json|sarif, -f FILE, --fail-on caution|high_risk, --baseline FILE, --no-vuln-check, the LLM options above, --branch, and the token options. Exit codes: 0 when no skill reaches --fail-on (default high_risk), 1 when at least one does, 2 on an error.
The complete list of commands, options, defaults and exit codes is in the command-line reference; quin-scanner --help prints the same in the terminal.
Add Quin to your CI to scan every push and surface findings as PR annotations via GitHub code scanning:
name: Quin Scan on: push: branches: [main] pull_request: permissions: security-events: write contents: read jobs: scan: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: Gaincontrol-Pte-Ltd/quin-agent-scanner@beta Versions and tags. The action installs the scanner from the tag you pin, so @v0.1.0b5 runs exactly 0.1.0b5, @beta follows the latest pre-release, and from 1.0.0 a major tag (@v1) follows stable releases. Pin an exact tag for reproducible builds. Set the version input to install a specific release or range from PyPI instead.
By default this runs in --no-llm mode — static findings plus CVE vulnerability checks (via OSV.dev), no API key required. For richer agent/risk analysis, pass an LLM API key:
- uses: Gaincontrol-Pte-Ltd/quin-agent-scanner@beta with: llm-provider: anthropic llm-api-key: ${{ secrets.ANTHROPIC_API_KEY }} Gate a pull request on risky skills and keep a JSON report:
The workflow's permissions: security-events: write is required for the SARIF upload step to succeed — GitHub Actions doesn't grant it by default.
The skills scanner runs as part of this scan, so high and critical findings in Agent Skills, MCP tool definitions and instruction files show up as code-scanning alerts with file and line. To gate a pull request on skills alone, or to check a skill before it is added, run quin-scanner skills scan in a workflow step; see CI examples.
quin-scanner scan-org my-github-org \ --config scanner-config.yaml \ --skip-archived \ --skip-forks This discovers all repos in the org via the GitHub API, scans each one, and writes per-repo HTML reports to ./report/.
Options: -o, --output [json|yaml|html] Output format (default: html) --output-dir PATH Directory for reports (default: ./report/) --skip-archived Skip archived repositories --skip-forks Skip forked repositories --no-llm Skip LLM analysis --config PATH Path to scanner-config.yaml Requires GITHUB_TOKEN with repo + read:org scopes. Create one at github.com/settings/tokens.
Quin detects AI usage across these frameworks and SDKs:
Also detects vector databases (ChromaDB, Pinecone, Qdrant, Weaviate, FAISS, pgvector, Milvus), embedding providers (Cohere, Sentence Transformers, Hugging Face), and voice/image AI packages (ElevenLabs, Whisper, Stable Diffusion).
Sample HTML reports for several supported frameworks live in examples/reports/, each generated by scanning that framework's public example repository -- see the examples index for the full list and links.
Disclaimer: These example reports were generated as-is, by scanning the listed public repositories at a single point in time, purely to demonstrate Quin's capabilities. They are not audits, are not endorsed by the scanned projects' maintainers, and may not reflect those repositories' current state. If you are a maintainer of a scanned repository, or otherwise believe any finding in an example report is inaccurate, please open an issue or email pixiedust@gaincontrol.ai.
pip install quin-scanner From source git clone https://github.com/Gaincontrol-Pte-Ltd/quin-agent-scanner cd quin-agent-scanner curl -LsSf https://astral.sh/uv/install.sh | sh uv sync --all-extras cp .env.example .env # edit with your API keys uv run quin-scanner scan ./path/to/repo --config scanner-config.yaml LLM Providers Provider Config value Default Model API Key Env Var Anthropic anthropic claude-haiku-4-5-20251001 ANTHROPIC_API_KEY OpenAI openai gpt-4o-mini OPENAI_API_KEY Google google gemini-2.0-flash GOOGLE_API_KEY Ollama (local) ollama llama3.2 -- OpenAI-compatible openai-compatible (set with --llm-model) OPENAI_API_KEY How It Works Quin runs 14 configurable static scanner plugins in parallel. They share a bounded read cache (1 MB per file, 50 MB per scan), so each file is fetched from the repository, or the GitHub API, once. It then builds inventories and coverage metrics, identifies model usage and endpoints, optionally checks known vulnerabilities, and optionally runs a two-pass LLM pipeline. Zino governance detection is an additional opt-in scan.
Repo --> 14 Scanners (parallel) --> Inventory + Coverage --> Vulnerability Lookup --> Optional LLM Analysis --> Report Static discovery detects dependencies, code patterns, configuration, prompts, frameworks, named agents and tools, MCP servers, Dockerfiles, notebooks, CI pipelines, and infrastructure-as-code. An additional Python/JavaScript/TypeScript pass links explicit agent tool references and preserves the source locations. The skills scanner finds Agent Skills, MCP tool definitions and agent instruction files, scores each one (SAFE / CAUTION / HIGH_RISK), and its high and critical findings join the risk signals; see the skills scanning guide. Vulnerability lookup -- once the agentic framework and its base version are identified (e.g. CrewAI 0.80.0), the scanner queries OSV.dev and optionally an LLM with web search for recent advisories. Critical/high findings are promoted into risk signals Pass 1 (Classification, when LLM analysis is enabled) -- an LLM classifies the system type (standard_ai, agentic_ai, mcp_enabled, multi_agent) and identifies relevant threats from a taxonomy sourced from OWASP LLM Top 10, OWASP Agentic Top 10, OWASP MCP Top 10, MAESTRO, and Databricks DASF Pass 2 (Synthesis, when LLM analysis is enabled) -- a second LLM call profiles agents, adds taxonomy-grounded risk indicators, maps tool usages to service categories, and generates a narrative summary. Static findings, the complete inventory, and coverage metrics remain available without these LLM passes. Use --no-llm to skip both LLM passes and run scanners only. Use --no-vuln-check to skip the vulnerability lookup. With an LLM enabled, flagged skill evidence snippets (not whole files) are sent to the configured provider for confirm/dispute review; skill code is never executed.
When a framework and its base version are detected, Quin checks for known CVEs and promotes critical/high-severity findings into the report's risk signals. All findings are listed under vulnerabilities in the report.
The skills scanner also checks dependencies pinned inside skills: requirements*.txt lines with == (PyPI) and package.json dependencies pinned to an exact version such as 1.2.3 (npm). Matches are reported as SK-SC-006; at most 50 lookups run per scan, and --no-vuln-check turns them off.
Supported web-search providers (each reuses its own existing API key env var):
Precedence: --vuln-search-provider CLI flag > VULN_SEARCH_PROVIDER env var > vuln_check.search_provider in YAML.
Quin 1.0.0rc2 is the current release candidate for 1.0. From 1.0.0, the CLI and its exit codes, the JSON/YAML report schema, SARIF output and rule IDs, and the config, baseline and GitHub Action interfaces follow semantic versioning with a deprecation window; see the stability policy. The Python import API (import quin_scanner) is not public: the CLI is the supported interface. The web UI in ui/ is experimental. Upgrading from a beta? See Migrating from the betas.
All 2 files in this release have provenance metadata.
agent ai compliance genai governance llm scanner security
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
All 2 files in this release have been uploaded with provenance metadata.
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.




