skillfed

agent-framework-azure-cosmos

Azure Cosmos DB history provider integration for Microsoft Agent Framework.

agent-framework-azure-cosmos v1.0.0b260730 239.5K downloads/30d#8,920 on PyPI12,804
Permissive license Active released

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-cosmos

uv

uv add agent-framework-azure-cosmos

poetry

poetry add agent-framework-azure-cosmos

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed

Tags

azure cosmos db agent frameworkconversation history storage azureworkflow checkpoint persistenceagent framework cosmos integrationdurable workflow checkpointingcosmos db history provider
azure-integrationagent-frameworkworkflow-persistence

More Application Frameworks packages

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

agent-framework-azure-ai

Integrates Azure AI Foundry memory capabilities…

permissive · top 15,000 on PyPI

agent-framework-azurefunctions

Hosts Microsoft Agent Framework agents on Azure…

permissive · top 15,000 on PyPI

azure-cosmos

Python client library for Azure Cosmos DB SQL…

permissive · top 1,000 on PyPI

agent-framework-redis

Adds Redis-backed persistent memory and…

permissive · top 15,000 on PyPI

azure-mgmt-cosmosdb

Provides programmatic management of Azure…

permissive · top 5,000 on PyPI

cosmos-xenna

Cosmos-xenna is a Python framework for building…

unclear · top 15,000 on PyPI

prefect-azure

Prefect integrations for orchestrating…

permissive · top 15,000 on PyPI

pydocumentdb

Python client library for interacting with…

permissive · top 15,000 on PyPI

agent-framework-foundry-hosting

Integrates Agent Framework agents and workflows…

permissive · top 15,000 on PyPI

agent-framework-bedrock

Connects Microsoft Agent Framework applications…

permissive · top 15,000 on PyPI

Further reading