skillfed

astra-assistants

Astra Assistants API - drop in replacement for OpenAI Assistants, powered by AstraDB

astra-assistants v2.5.5 89.6K downloads/30d#13,647 on PyPI
License unclear AGING released

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

uv

uv add astra-assistants

poetry

poetry add astra-assistants

Installing 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

Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Tags

openai assistants api wrapperastradb vector store integrationmulti-llm provider supportassistants v2 streamingllm abstraction layeropenai sdk extensionvector database assistants
llm-abstractionvector-databaseassistants-api

More Artificial Intelligence packages

Further reading