agent-framework-anthropic
Anthropic integration for Microsoft Agent Framework.
What it is and what it does
This package bridges Microsoft's Agent Framework with Anthropic's API, letting you build agent applications that call Anthropic models. It provides a unified client interface (AnthropicClient) for direct Anthropic endpoints and three hosted transport wrappers—AnthropicFoundryClient, AnthropicBedrockClient, and AnthropicVertexClient—that route requests through Microsoft Foundry, Amazon Bedrock, and Google Vertex AI respectively.
The package supports both streaming and non-streaming responses, and includes structured system block support for Anthropic's prompt caching feature with cache control metadata. It depends on agent-framework-core for the framework scaffolding and anthropic for API communication. The package is in beta and requires Python 3.10 or later.
Use it for:
- Build multi-provider agent applications that can switch between direct Anthropic and hosted transports without changing core logic.
- Implement agents with prompt caching to reduce latency and costs on repeated or similar requests to Anthropic.
- Route agent workloads through Amazon Bedrock or Google Vertex AI for compliance, latency, or organizational requirements.
- Stream agent responses for real-time interaction while maintaining structured system prompts with cache control.
- Integrate Anthropic models into existing Microsoft Agent Framework deployments.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Connects Agent Framework applications to Anthropic's API, providing client implementations for direct Anthropic endpoints and hosted transports via Microsoft Foundry, Amazon Bedrock, and Google Vertex AI.
Yes, if you are building agents with Microsoft Agent Framework and want to use Anthropic models. The package is actively maintained, has low install friction, carries a permissive MIT license, and offers both direct and multi-cloud transport options. Be aware it is in beta—test thoroughly before production use.
Install
agent-framework-anthropic on PyPI
pip
pip install agent-framework-anthropicuv
uv add agent-framework-anthropicpoetry
poetry add agent-framework-anthropicInstalling agent-framework-anthropic
Before you install
Low friction install with only two runtime dependencies. Active maintenance—released 15 days ago with recent commits and a healthy repository signal.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install agent-framework-anthropic --pre
from agent_framework_anthropic import AnthropicClient
client = AnthropicClient()
response = await client.get_response("Hello")
Requires Python 3.10 or later; package is in beta (pre-release) and depends on agent-framework-core and anthropic packages.
Verify before relying
- Whether streaming and non-streaming response modes have feature parity or known differences.
- Whether prompt caching with ephemeral TTL is supported across all three hosted transports (Foundry, Bedrock, Vertex).
- Performance characteristics and latency overhead of the transport wrappers compared to direct Anthropic API calls.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — agent-framework-core, anthropic |
| Maintenance | actively maintained — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 543,188/month — #6,085 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agent_framework_anthropic-1.0.0b260730-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
agent-framework-bedrockConnects Microsoft Agent Framework applications…
permissive · top 15,000 on PyPI
agent-framework-coreBuild, orchestrate, and deploy AI agents and…
permissive · top 5,000 on PyPI
agent-framework-foundry-localIntegrates Microsoft Agent Framework with…
permissive · top 15,000 on PyPI
agent-frameworkBuilds and orchestrates AI agents powered by…
permissive · top 5,000 on PyPI
agent-framework-azure-aiIntegrates Azure AI Foundry memory capabilities…
permissive · top 15,000 on PyPI
agent-framework-ollamaIntegrates Ollama LLM provider support into…
permissive · top 15,000 on PyPI
agent-framework-claudeIntegrates Claude with Microsoft Agent…
permissive · top 15,000 on PyPI
agent-framework-foundryProvides Microsoft Foundry integrations for the…
permissive · top 15,000 on PyPI
bedrock-agentcoreDeploy AI agents to AWS Bedrock AgentCore with…
permissive · top 5,000 on PyPI
agent-framework-foundry-hostingIntegrates Agent Framework agents and workflows…
permissive · top 15,000 on PyPI