Skip to main content
Install the Flint AI SDK to capture live traces of your agents in production. Within minutes, see what your agents actually do — prompts, responses, models called, and guardrail events.
Requirements: Python 3.10 or laterSupported with flintai_sdk.wrap(): OpenAI, Anthropic, LangChain (ChatOpenAI, ChatAnthropic, ChatGoogleGenerativeAI), Google GenAIGoogle ADK: Use ADKGuardrailsPlugin instead of wrap() — see SDK Usage guide
1

Install the SDK in your agent's environment

On your local machine or wherever your agent code runs:
If you need specific provider dependencies:
2

Register your agent and get credentials

Log into Flint AI Platform and register your agent for monitoring:
  1. Navigate to Agents and select Add agents
  2. Choose Monitor & protect agents > Install SDK
  3. Enter a name for your agent (for example, “Customer Support Bot”)
  4. Select your agent to open its Sessions tab
The setup page shows the values you need:
  • Gateway URL - Shown in the code snippet on the Sessions tab
  • API key - Use an existing Flint AI API token, or create one now if you don’t yet have one. Tokens are managed in Settings → API Keys.
Copy your token immediately when created — it will only be shown once.
3

Wrap your LLM client in your agent code

Import flintai_sdk and wrap your existing LLM client.
Using environment variables: Instead of hardcoding credentials, set FLINTAI_GATEWAY_URL and FLINTAI_API_KEY as environment variables, then call flintai_sdk.wrap(client) without parameters.
Google ADK: Use ADKGuardrailsPlugin instead of wrap() — see the SDK Usage guide for details.
4

Run your agent

Run your agent as you normally would. The SDK captures each LLM interaction automatically.
5

View your traces

Back in Flint AI Platform, navigate to Agents and select your agent, then open the Sessions tab.Within moments, you’ll see:
  • Sessions - Individual agent runs
  • Traces - Every LLM call with prompts, responses, model info, and latency
  • Guardrail events - Any policy actions (if configured)
Add runtime protection: Pass policy_id="your-policy-id" to flintai_sdk.wrap() to enforce guardrails. Policies apply input/output detectors that can block, redact, or alert on unsafe content before it reaches users. Learn more →

Next steps

SDK Configuration

Environment variables, credentials, and configuration options

SDK Usage

Examples for all supported providers and frameworks