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

# Overview

> Route your agent's LLM traffic through Switch Trust from Node.js

The Switch Trust TypeScript 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.

```typescript theme={null}
import { wrap } from "@sandboxaq/flintai-sdk-ts";

wrap(client, { gatewayUrl, apiKey });
```

Requires Node.js 18 or later.

<CardGroup cols={2}>
  <Card title="Installation" icon="download" href="/switch-trust/sdk/typescript/installation">
    Install `@sandboxaq/flintai-sdk-ts` and verify it works
  </Card>

  <Card title="Configuration" icon="sliders" href="/switch-trust/sdk/typescript/configuration">
    Set the gateway URL, API key, and policy
  </Card>

  <Card title="Usage" icon="code" href="/switch-trust/sdk/typescript/usage">
    Wrap a client, read what the SDK sends, and handle blocked responses
  </Card>

  <Card title="Integrations" icon="plug" href="/switch-trust/sdk/typescript/integrations">
    OpenAI, Anthropic, Google GenAI, LangChain, and Google ADK
  </Card>
</CardGroup>

<Note>
  If you are setting this up for the first time, [Monitor your agents at runtime](/switch-trust/getting-started/runtime) walks the whole path end to end.
</Note>
