Skip to content

Meet DeepintShield at Bengaluru Tech Summit 2026, 17 to 19 November, BIEC Hall 1, booth H1A106. Book 20 minutes

Start For Free

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 beta namespace for Anthropic, OpenAI and Gemini
  • shield.anthropic() with deepintshield[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.

Read the Anthropic SDK integration docs.

Read the integration docs

Start For Free