> ## 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.

# Overview

> Route LLM traffic from your agents through Switch Trust

The Switch Trust Python SDK connects a running agent to the Switch Trust gateway, so you can see its sessions and apply guardrails to its traffic. It wraps your existing LLM client with one function call — your prompts, your model choice, and the rest of your code stay as they are.

```python theme={null}
import switch_trust

client = switch_trust.wrap(client)
```

Requires Python 3.10 or later.

> [card] [Installation](https://docs.switchagents.ai/switch-trust/sdk/python/installation.md)
>
> Install `switch-trust-sdk-py` and verify it works

> [card] [Configuration](https://docs.switchagents.ai/switch-trust/sdk/python/configuration.md)
>
> Set the gateway URL, API key, and policy

> [card] [Usage](https://docs.switchagents.ai/switch-trust/sdk/python/usage.md)
>
> Wrap a client, read what the SDK sends, and handle blocked responses

> [card] [Integrations](https://docs.switchagents.ai/switch-trust/sdk/python/integrations.md)
>
> OpenAI, Anthropic, Google GenAI, LangChain, and Google ADK

> [!NOTE]
>
> If you are setting this up for the first time, [Monitor your agents at runtime](https://docs.switchagents.ai/switch-trust/getting-started/runtime.md) walks the whole path end to end.
