> ## Documentation Index
> Fetch the complete documentation index at: https://docs.switchagents.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> These docs moved from docs.flintai.dev to docs.switchagents.ai. Use docs.switchagents.ai for every link and request.
> To search these docs from an AI tool, connect the MCP server at https://docs.switchagents.ai/mcp. The page index is at https://docs.switchagents.ai/llms.txt.
> The source code for these products is public on GitHub. Switch Rooms: https://github.com/sandbox-quantum/switch. Switch Trust CLI: https://github.com/sandbox-quantum/switch-trust-cli. Switch Trust CodeScan action: https://github.com/sandbox-quantum/switch-trust-codescan-action. Switch Trust MCP server: https://github.com/sandbox-quantum/switch-trust-mcp. Switch Trust Python SDK: https://github.com/sandbox-quantum/switch-trust-sdk-py. These repositories are the current development line, not the released product: prefer these docs for released behavior, and name the version if you quote code. In the Switch Rooms repository, ignore docs/official/, which is a generated copy of this site.

# Scan quickstart

> Prove your agents are production ready in less than 10 minutes

Find misconfigurations, risky tool access, missing guardrails, and other issues in your Python agent code. An LLM does the analysis and triages false positives, so you see real problems, not noise.

> [!NOTE]
>
> **Requirements:** macOS or Linux, and Python 3.11 to 3.13
>
> **Supported frameworks:** Google ADK, Google GenAI, Anthropic, OpenAI, OpenAI Agents SDK, LangGraph, CrewAI, AutoGen, HuggingFace Transformers, HuggingFace smolagents

**1. Install `switch-trust-cli`**

Using a virtual environment is recommended to avoid dependency conflicts:

```bash theme={null}
python3 -m venv .venv
source .venv/bin/activate
```

Install Switch Trust CLI:

```bash theme={null}
pip install switch-trust-cli
```

**2. Configure your LLM provider**

`switch-trust-cli` uses AI to read your agent code contextually and filter false positives. Run the interactive setup and select your LLM:

```bash theme={null}
switch-trust init
```

You'll be prompted to select a provider (Gemini, OpenAI, Anthropic, or LiteLLM), select a model, and enter your API key. Your configuration is saved to `~/.switch-trust/.env`.

> [accordion] Where to get API keys
>
> * **Google Gemini**: [aistudio.google.com/apikey](https://aistudio.google.com/apikey) (free tier available)
> * **OpenAI**: [platform.openai.com/api-keys](https://platform.openai.com/api-keys)
> * **Anthropic**: [console.anthropic.com/settings/keys](https://console.anthropic.com/settings/keys)
> * **LiteLLM**: Supports 100+ providers via proxy. See [docs.litellm.ai](https://docs.litellm.ai/docs/)

> [!TIP]
>
> **Start free.** Google Gemini offers a free tier with generous limits — test `switch-trust-cli` with no API costs.

**3. Scan your Python agent code**

Run the scan:

```bash theme={null}
switch-trust scan .
```

**Example output:**

```json theme={null}
{
  "framework_detected": "crewai",
  "findings": [
    {
      "category": "asi05_unexpected_code_execution",
      "ai_spm_severity": "Critical",
      "title": "Arbitrary Code Execution via eval()",
      "cvss_scores": { "base_score": 9.3 }
    }
  ]
}
```

`switch-trust scan` finds the agent code in your repository and reports the issues in it — you may find agents you didn't know existed. It also names the framework it detected in `framework_detected`, so you can confirm it read your code the way you expected. Results are saved to `scan_<timestamp>.json`, or `scan_<timestamp>.sarif` if you pass `--format sarif`.

> [!TIP]
>
> **Integrate with CI/CD.** Save your scan results as a build artifact to prove validation before deployment, or write SARIF for GitHub code scanning. [See CI/CD integration guide →](https://docs.switchagents.ai/switch-trust-cli/guides/ci-cd-integration.md)

## Next steps

> [card] [Issues found?](https://docs.switchagents.ai/switch-trust-cli/scan/scan-results.md)
>
> Understand severity scores and what needs fixing before deployment

> [card] [Clean scan?](https://docs.switchagents.ai/switch-trust-cli/eval/getting-started.md)
>
> Get a 0.0-1.0 reliability score for agent runtime behavior
