astra-assistants
Astra Assistants API - drop in replacement for OpenAI Assistants, powered by AstraDB
What it is and what it does
Astra Assistants is a Python library that patches the OpenAI SDK to act as a drop-in replacement for OpenAI's Assistants API. It extends the standard API with support for AstraDB vector stores and adds a credential abstraction layer that lets you route requests to alternative LLM providers—including Groq, Anthropic, Gemini, Perplexity, Cohere, AWS Bedrock, Vertex AI, and many others—by setting environment variables. The library wraps litellm under the hood to handle provider-specific authentication and API translation.
You install it alongside the OpenAI SDK, import the patch function, and apply it to an OpenAI client instance. From that point forward, your existing OpenAI Assistants code works unchanged, but now backed by AstraDB for vector storage and able to use any LLM provider litellm supports. It includes support for streaming and the full Assistants v2 API surface. The package carries 12 runtime dependencies covering HTTP clients, language server protocol support, code parsing, and linting.
Use it for:
- Build an assistant that uses AstraDB for semantic search and retrieval without rewriting OpenAI integration code.
- Route assistant requests to multiple LLM providers (Anthropic, Groq, etc.) by changing environment variables instead of code.
- Add vector store capabilities to an existing OpenAI Assistants application with minimal refactoring.
- Prototype multi-provider LLM workflows where you can swap backends without touching business logic.
- Stream assistant responses from non-OpenAI providers using the same Assistants v2 API surface.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Wraps OpenAI's Assistants API as a drop-in replacement, adding support for AstraDB vector stores and enabling credential pass-through to alternative LLM providers via litellm.
Yes, if you are already using OpenAI Assistants and want to add AstraDB vector storage or experiment with alternative LLM providers without rewriting integration code. The low install friction and broad provider support make it a practical bridge. However, the aging maintenance status (482 days since last release) and unclear license terms are cautions—verify license compliance and test compatibility with your current OpenAI SDK version before committing to production use.
Install
astra-assistants on PyPI
pip
pip install astra-assistantsuv
uv add astra-assistantspoetry
poetry add astra-assistantsInstalling astra-assistants
Before you install
Low install friction with a pure-Python wheel. Maintenance status is aging—last release was 482 days ago—so expect slower response to issues or compatibility updates with newer OpenAI SDK versions.
License in practice
License treatment is unclear; no SPDX identifier or raw license text is published. Verify the actual license terms before using in proprietary or commercial contexts.
Quickstart
pip install astra-assistants
from openai import OpenAI
from astra_assistants import patch
client = patch(OpenAI())
Requires Python 3.10 or later. API keys for AstraDB and at least one LLM provider must be set as environment variables.
Verify before relying
- Whether the aging maintenance status (482 days since last release) affects compatibility with current OpenAI SDK versions.
- Exact license terms and any restrictions on commercial use or redistribution.
- Support status for the full Assistants v2 API surface, including all recent OpenAI additions.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<4.0,>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 12 — httpx, openai, litellm, boto3, aiohttp, python-dotenv, tree-sitter-python, lsprotocol, python-lsp-jsonrpc, ruff, tree-sitter, mcp |
| Maintenance | aging — 482 days since the last release |
| First released | |
| Downloads | 89,593/month — #13,647 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: astra_assistants-2.5.5-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
litellm-enterpriseLiteLLM Enterprise provides a unified Python…
unclear · top 5,000 on PyPI
livekit-plugins-openaiIntegrates OpenAI's Realtime, Responses, LLM,…
permissive · top 5,000 on PyPI
any-llm-sdkProvides a unified Python interface to…
permissive · top 15,000 on PyPI
litellm-proxy-extrasProvides supplementary files for the LiteLLM…
permissive · top 5,000 on PyPI
unclecode-litellmUnified Python interface to call many LLM…
permissive · top 5,000 on PyPI
llm-openai-pluginA plugin that extends LLM to access OpenAI…
permissive · top 15,000 on PyPI
astrapyAstraPy is a Python client library for DataStax…
permissive · top 15,000 on PyPI
openaiProvides a Python client library for the OpenAI…
permissive · top 1,000 on PyPI
langchain-astradbIntegrates Astra DB (a serverless vector…
permissive · top 15,000 on PyPI