Skip to main content
Install the Flint AI Python SDK to route your LLM traffic through the guardrails proxy. The SDK wraps your existing LLM client with a single function call — no code changes needed beyond the initial setup.

Requirements

  • Python 3.10 or later (3.10, 3.11, 3.12, 3.13)
  • pip package manager

Install the SDK

This installs the core SDK with no provider dependencies. To include your LLM provider’s library automatically, install with an extra:

Verify your installation

You should see the installed version number (such as 1.0.1).
error: externally-managed-environmentOn macOS and some Linux distributions, system Python is protected by PEP 668. Use a virtual environment:
Version conflicts with provider SDKsIf you already have an LLM provider SDK installed at a different version, pip may report a conflict. The SDK requires specific version ranges for compatibility — check the extras table above and upgrade your provider SDK if needed:
ModuleNotFoundError: No module named 'flintai'Ensure you’re using the same Python environment where you installed the SDK. If using a virtual environment, activate it first.

Next steps

Configuration

Set up gateway URL, API keys, and environment variables

Monitor agents at runtime

Get your first traces in less than 10 minutes