Which Foundry SDK or client: project client vs OpenAI SDK vs Agent Framework vs Anthropic SDK

Verdict: Foundry-native config uses the project client. Embeddings and chat use the OpenAI SDK. Code-based and multi-agent systems use Agent Framework. Deployed Claude models use the Anthropic SDK.

CriterionProject clientOpenAI SDKAgent FrameworkAnthropic SDK
Primary useFoundry-native operations with no OpenAI equivalent: list connections, project propertiesFull OpenAI API surface: embeddings, chat, image generation, with best latencyBuild hosted agents or multi-agent systems in code on the Responses APICall Claude models deployed in Foundry
Choose whenSetup and configuration operationsEmbeddings and OpenAI-compatible callsCode-based orchestration and hosted agentsTargeting a deployed Claude model

Rules

Traps