Skip to content

Installation

Requirements

  • Python 3.10 or later
  • pip 21.0 or later

Install with pip

pip install crprotocol[full]

Includes NLP models (GLiNER, spaCy), security features, and all extraction stages.

pip install crprotocol

Minimal install with core protocol, extraction stages 1-2, and basic security.

git clone https://github.com/Constantinos-uni/context-relay-protocol.git
cd context-relay-protocol
pip install -e ".[dev]"

Provider Dependencies

CRP is provider-agnostic. Install the SDK for your preferred LLM:

pip install openai          # For OpenAI / Azure OpenAI
pip install anthropic       # For Anthropic Claude
# Ollama: no pip package needed — just run the Ollama server

Verify Installation

import crp
print(crp.__version__)  # Should print "2.0.0"

Optional Dependencies

Package Purpose
gliner Stage 3 Named Entity Recognition
spacy Stage 5 discourse analysis
sentence-transformers Semantic similarity for fact deduplication
prompt-injection-detector ML-based injection detection