Skip to content
RAGRAF

Installation

Three ways to install RAGRAF — the Windows installer, pip from the repository and the Claude Code plugin; requirements, what is created on disk, how to verify the installation and how to remove it.

Updated: 2026-11-10

Requirements #

ComponentValue
Python0.13.20 requires Python 3.13+ (requires-python in pyproject.toml); below 3.13 the installation refuses to run
Privilegesno administrator needed: everything is written to the user's home directory
Operating systemWindows + PowerShell 7.6 — verified by an end-to-end run; Linux and macOS — the usual path through pip
Diskabout 2.5 GB for the environment and the model; the index — roughly 1 MB per 1–2 source files
NetworkPyPI during installation and a one-time download of the embedding model (~240 MB)
OptionalJDK 21 + Joern (~5–6 GB) for the CPG layer; a GPU to speed up embeddings

RAGRAF works locally: after installation no network is needed, neither for indexing nor for answers. The MCP server is a process that your agent starts; no port is opened.

Path A — Windows installer #

PowerShell
./scripts/install.ps1                                   # venv in ~/.ragraf/venv, dependencies, self-check
./scripts/install.ps1 -Project C:\work\myproject -Index # plus a corpus and a full indexing
./scripts/install.ps1 -WithTruststore                   # corporate TLS proxy: certificates via truststore
./scripts/install.ps1 -Offline D:\dist                  # installation without network, from a pre-downloaded set

What the installer does, and why it is worth knowing:

  • creates a virtual environment (-Venv, ~/.ragraf/venv by default) and installs the dependencies;
  • checks every step and prints a summary table; -SummaryJson <file> gives a machine-readable result;
  • writes a full log to ~/.ragraf/logs/install-<label>.log — any failure is diagnosed from it;
  • refuses to start when disk space is short (-MinFreeGb, 3 GB by default) or when Python is too old;
  • return codes: 0 — success, 1 — installation error, 2 — invalid arguments, 3 — unsuitable environment.

The CPG layer (code properties for the call graph) is installed separately and only when needed:

PowerShell
./scripts/install-joern.ps1 -Download    # the archive is verified by SHA-256

Path B — pip from the repository #

Shell
git clone https://github.com/paulmann/RAGRAF
cd RAGRAF
python3.13 -m venv .venv && source .venv/bin/activate
pip install -e .            # or: pip install -r requirements.txt
ragraf --help

pip install -e . installs the console command ragraf; it is also the entry point of the MCP server (ragraf-mcp). Licence — BUSL-1.1, the source code is available.

Path C — Claude Code plugin #

The plugin is a ready-made wrapper: an MCP server, session hooks, a skill and two commands. It does not contain the indexer and looks for an already installed RAGRAF at start-up.

Text
/plugin marketplace add paulmann/RAGRAF
/plugin install ragraf@ragraf

To check that the plugin has found the installation: ragraf_launcher.py where prints the directory it found and the interpreter. Per-client details are on the “Connecting an agent” page.

What is created on disk #

PathWhat it is
~/.ragraf/venvthe virtual environment (the path can be changed with -Venv)
~/.ragraf/modelsthe embedding model, downloaded once
~/.ragraf/logsinstallation and run logs
<project directory>/.ragraf/the corpus index: three SQLite stores, the drift log, revisions

The index belongs to the corpus, not to the program: every project has its own .ragraf/.

How to verify that everything works #

PowerShell
ragraf --version        # product version
ragraf selftest         # environment self-check: what was found, what is missing
ragraf --json edition   # edition, available capabilities, licence state

The first corpus and the first answer:

Shell
ragraf ensure /path/to/project --json
ragraf query search "entry point" --limit 5

ensure answers with the status field: actual — the index is current, reindexed — rebuilt just now, created — there was no corpus and it has been created, not_a_project — the directory does not look like a project, error — the cause is in the reason field.

Removal #

  1. Remove the server entry from the agent configuration (each client has its own place — see “Connecting an agent”).
  2. Delete the installation directories: ~/.ragraf (environment, model, logs).
  3. Remove the plugin in Claude Code: /plugin uninstall ragraf@ragraf.
  4. Project indexes: the <project>/.ragraf directories — one per corpus. Removing them breaks

nothing: ensure will create the corpus again on the next call.

The installation creates no secrets: there are no password or key values in ~/.ragraf, and the secrets vault is a separate capability (Pro) that stays empty until something is written to it.

What next #