Astro Intelligence

Installation

Installation

Requirements

  • Python 3.11+ is required.
  • No system-level dependencies are needed for the core package.

Install the package

pip

pip install astro-anchor

uv

uv add astro-anchor

Optional extras

anchor ships with several optional dependency groups. Install only what you need, or grab everything at once.

pip

pip install astro-anchor[bm25]       # BM25 sparse retrieval
pip install astro-anchor[cli]        # CLI tools (typer + rich)
pip install astro-anchor[flashrank]  # FlashRank reranker
pip install astro-anchor[anthropic]  # Anthropic token counting
pip install astro-anchor[otlp]       # OpenTelemetry export
pip install astro-anchor[all]        # Everything above

uv

uv add astro-anchor[bm25]
uv add astro-anchor[cli]
uv add astro-anchor[flashrank]
uv add astro-anchor[anthropic]
uv add astro-anchor[otlp]
uv add astro-anchor[all]
ExtraWhat it addsWhen you need it
bm25rank-bm25Sparse / keyword retrieval with SparseRetriever
clityper, richUsing the anchor CLI
flashrankFlashRankClient-side reranking without an API call
anthropicanthropicAccurate token counting for Claude models
otlpopentelemetry-*Exporting traces and metrics via OTLP
allAll of the aboveKitchen-sink install for development

Verifying the installation

After installing, confirm the package is available:

python -c "import anchor; print(anchor.__version__)"

If you installed the cli extra you can also run:

anchor --version

Development setup

To work on anchor itself, clone the repository and install in editable mode with all extras:

pip

git clone https://github.com/artcgranja/anchor.git
cd anchor
pip install -e ".[all,dev]"

uv

git clone https://github.com/artcgranja/anchor.git
cd anchor
uv sync --all-extras

Run the test suite to make sure everything is working:

pytest

[!TIP] Next step Head over to the Quickstart to build your first pipeline in under 30 seconds.

On this page