Skip to main content

cortex-vec

Vector store CLI for the cortexes knowledge vault — hybrid retrieval over a plain-markdown vault, fusing a persistent BM25 index with OpenAI-embedding vector search (ChromaDB) via Reciprocal Rank Fusion. Handles mixed Chinese/English content.

The vault is the source of truth (markdown + git); everything this tool builds is a rebuildable derived index.

Install

# Recommended: isolated tool install via uv
uv tool install cortex-vec

# Or with pip
pip install cortex-vec

Usage

cortex-vec rebuild                # full rebuild (embeddings, needs OPENAI_API_KEY)
cortex-vec rebuild --bm25-only    # rebuild just the BM25 index — free, no API key
cortex-vec search "nginx certificate" --n 5
cortex-vec status                 # index health: vector + BM25 entry counts

Configuration lives in ~/.cortex/config.json (created by the Cortexes plugin's /cortexes:genesis command). OPENAI_API_KEY is required for embeddings; without it, search automatically degrades to BM25-only. A models block in config.json points the embedding and chat models at other OpenAI-compatible or Azure OpenAI endpoints; see Configuration in the Cortexes README.

This package is the retrieval backend of the Cortexes Claude Code plugin — session recording, memory distillation, and indexed retrieval for Claude Code. See the repository for the full documentation.

Metadata

Release files for cortex-vec 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cortex-vec 0.12.0
File Size Uploaded Provenance Actions
cortex_vec-0.12.0.tar.gz 106.4 kB With provenance Details for cortex_vec-0.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cortex-vec 0.12.0
File Interpreter ABI Platform Actions
cortex_vec-0.12.0-py3-none-any.whl Python 3 none any Details for cortex_vec-0.12.0-py3-none-any.whl

Total release size: 175.5 kB

Release files / cortex_vec-0.12.0.tar.gz

Download URL cortex_vec-0.12.0.tar.gz
Size 106.4 kB
Tags Source
SHA-256 checksum
How to use checksums
91083111005757cbdfc187c170c1ffbd07f1d0c15498f733ff6e81d4648554ce
BLAKE2b-256 checksum
How to use checksums
f0b3c399dc2265abcbc54a133c3fbb64f5e1ca0d623e3259873742b6e2f04b2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / cortex_vec-0.12.0-py3-none-any.whl

Download URL cortex_vec-0.12.0-py3-none-any.whl
Size 69.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b85691ce26eb843ad1459d53615d7f17271a0215296dcca88644ff240c740c5b
BLAKE2b-256 checksum
How to use checksums
970e1a5ab97c072f3b8b5c7427e27fc11974eff56818f8499e6562b7fd2314d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for cortex-vec 0.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cortex_vec-0.12.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page