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 endpoints: OpenAI-compatible, Azure OpenAI, or a plain HTTP embedding endpoint. 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.13.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.13.0
File Size Uploaded Provenance Actions
cortex_vec-0.13.0.tar.gz 123.4 kB With provenance Details for cortex_vec-0.13.0.tar.gz

Built distribution (wheel)

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

Total release size: 201.0 kB

Release files / cortex_vec-0.13.0.tar.gz

Download URL cortex_vec-0.13.0.tar.gz
Size 123.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1bfb9448c6751f527f6592686ec3298f4ff312140f554832076f1cc0de89e469
BLAKE2b-256 checksum
How to use checksums
4c8e7613d6e60141d98a154aa38059fb6813ec6a1be47d8ebffe755d8b3defad
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 27, 2026.

Transparency log

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

Download URL cortex_vec-0.13.0-py3-none-any.whl
Size 77.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e1b6f5f06b700088584d3830fe4722e1daaf267c02c73c45fc8c9ac9f4864e1
BLAKE2b-256 checksum
How to use checksums
d7f679fa444fc95ffc42be48e91eb09fc4b7558b0411fd1babc4123c8ab6e25a
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 27, 2026.

Transparency log

Security for cortex-vec 0.13.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.13.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 27, 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