Anthropic SDK
Keep native Anthropic Messages code; change the base URL.
Keep your native Anthropic Messages code and send it through DeepintShield. Other providers are reachable from the same client by prefix, such as openai/... or vertex/....
What works
- The native Messages API in Python and JavaScript (
@anthropic-ai/sdk) - Custom headers, direct keys where an administrator allows them, and async inference
- Files and inline message batches through the
betanamespace for Anthropic, OpenAI and Gemini shield.anthropic()withdeepintshield[anthropic]==3.2.3
Limits to know: The gateway blocks unrecognised headers by default; add anthropic-beta to the allow list under Settings → Client Settings if you use beta features. Bedrock batch is not supported through this SDK.
How to connect
Set base_url to https://app.deepintshield.com/anthropic, use your Virtual Key as the API key, and send it in the x-deepintshield-vk header.