Licensing update. No code changes.Changed:
- License - From this release, the package is licensed under Apache 2.0 with a Commons Clause condition, set out in the
LICENSEfile it includes. Version 1.1.0, and everyflintai-sdk-pyrelease, were published under Apache 2.0
The SDK is renamed to Switch Trust.Breaking:
.envfiles load only when you ask - Passload_dotenv=Trueto read a.envfile. The SDK no longer reads one automatically. See configuration- Local and wildcard gateways - Any loopback gateway, and the
*host wildcard, needallow_insecure_gateway=Truein code
- New package and import names - Install
switch-trust-sdk-pyand importswitch_trust. Settings useSWITCH_TRUST_*environment variables. For any one that isn’t set, the SDK still reads the matchingFLINTAI_*variable. See installation - Default gateway hosts - The SDK now allows
api.switchagents.ai,api.flintai.dev, andapp.flintai.devby default
switch_trust.status()- Check at runtime whether traffic is routed through the gateway.client.guardrails_status()does the same for one clientdangerously_disable_guardrails- Turn guardrails off explicitly, so unguarded deployments are easy to find- One turn ID per agent run in LangChain - The LangChain middleware now gives every model call in one agent run the same turn ID. See integrations
- Agent identity from
wrap()andinit()- WhenAGENT_IDorAGENT_NAMEis set,wrap()andinit()send it to Switch Trust, so traffic is attributed to your agent. The LangChain middleware now sendsAGENT_NAMEas well - Google ADK plugin - One turn’s session and agent details no longer carry into the next request, and each request now has a turn ID, so Switch Trust attributes and groups ADK traffic correctly
flintai-sdk-pyis withdrawn - PyPI marks all its releases yanked for a credential-redirect vulnerability (GHSA-8xp6-6jgm-vcqj), which isn’t fixed in that package. Move toswitch-trust-sdk-py
Maintenance release.Changed:
X-Agent-Idheader - The ADK and LangChain plugins now sendX-Agent-Idonly when theAGENT_IDenvironment variable is set, instead of falling back to the plugin’s own name. SetAGENT_IDif you rely on this header to identify your agent
Initial public release of the Switch Trust Python SDK.Added:
flintai.wrap()- Wrap an existing LLM client with one function call to route its traffic through the Switch Trust gateway, so you can see its sessions and apply guardrails to its responses. Your prompts, model choice, and the rest of your code stay as they are. See usage- Provider integrations - OpenAI, Anthropic, and Google GenAI clients, plus LangChain chat models and a Google ADK plugin. See integrations
- Provider extras - Install only what you need with
flintai-sdk-py[openai],[anthropic],[genai],[adk],[langchain], or[all]. See installation - Environment and inline configuration - Set the gateway URL, API key, and optional policy through
FLINTAI_*environment variables, a.envfile, or arguments towrap(). See configuration - Python 3.10 or later - Supports 3.10, 3.11, 3.12, and 3.13

