agent-framework-azure-cosmos
Azure Cosmos DB history provider integration for Microsoft Agent Framework.
What it is and what it does
This package bridges the Microsoft Agent Framework and Azure Cosmos DB, offering two main storage backends: CosmosHistoryProvider for persisting multi-turn conversation history, and CosmosCheckpointStorage for durable workflow state. Both support multiple authentication modes (managed identity, account keys, environment variables) and auto-create their database and container on first use.
It is designed for developers building agent applications that need to survive process restarts or maintain long-running conversation context. The package integrates directly with the agent-framework-core runtime and relies on the azure-cosmos client library for all Cosmos DB operations.
Use it for:
- Store multi-turn conversation history for chatbots or virtual agents across user sessions.
- Enable workflow pause-and-resume by checkpointing agent state to Cosmos DB between supersteps.
- Build production agent systems with managed identity authentication for secure, credential-less deployment.
- Persist agent conversation context for audit, compliance, or analytics purposes.
- Scale agent applications by offloading session state to a managed NoSQL database.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Azure Cosmos DB integration for the Microsoft Agent Framework, enabling persistent storage of conversation history and workflow checkpoints.
Yes, if you are building agent applications on the Microsoft Agent Framework and need durable storage for conversation history or workflow checkpoints. The package is actively maintained, has low install friction, carries no known vulnerabilities, and is MIT-licensed. It is still in beta (1.0.0b260730), so expect potential API changes before a stable release.
Install
agent-framework-azure-cosmos on PyPI
pip
pip install agent-framework-azure-cosmosuv
uv add agent-framework-azure-cosmospoetry
poetry add agent-framework-azure-cosmosInstalling agent-framework-azure-cosmos
Before you install
Low install friction with a pure-Python wheel. Active maintenance—released 15 days ago with recent commits. Depends on agent-framework-core and azure-cosmos, both standard Azure SDK packages.
License in practice
MIT license (permissive); you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install agent-framework-azure-cosmos --pre
from azure.identity.aio import DefaultAzureCredential
from agent_framework_azure_cosmos import CosmosHistoryProvider
provider = CosmosHistoryProvider(
endpoint="https://.documents.azure.com:443/",
credential=DefaultAzureCredential(),
database_name="agent-framework",
container_name="chat-history",
)
Requires Python 3.10 or later and an active Azure Cosmos DB account with endpoint and credentials.
Verify before relying
- Whether the package works with Python 3.14 in practice (classifier lists it but it's a future release).
- Performance characteristics and cost implications of storing large conversation histories or frequent checkpoint writes in Cosmos DB.
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, azure-cosmos |
| Maintenance | actively maintained — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 239,547/month — #8,920 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agent_framework_azure_cosmos-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-azure-aiIntegrates Azure AI Foundry memory capabilities…
permissive · top 15,000 on PyPI
agent-framework-azurefunctionsHosts Microsoft Agent Framework agents on Azure…
permissive · top 15,000 on PyPI
azure-cosmosPython client library for Azure Cosmos DB SQL…
permissive · top 1,000 on PyPI
agent-framework-redisAdds Redis-backed persistent memory and…
permissive · top 15,000 on PyPI
azure-mgmt-cosmosdbProvides programmatic management of Azure…
permissive · top 5,000 on PyPI
cosmos-xennaCosmos-xenna is a Python framework for building…
unclear · top 15,000 on PyPI
prefect-azurePrefect integrations for orchestrating…
permissive · top 15,000 on PyPI
pydocumentdbPython client library for interacting with…
permissive · top 15,000 on PyPI
agent-framework-foundry-hostingIntegrates Agent Framework agents and workflows…
permissive · top 15,000 on PyPI
agent-framework-bedrockConnects Microsoft Agent Framework applications…
permissive · top 15,000 on PyPI