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 #
| Component | Value |
|---|---|
| Python | 0.13.20 requires Python 3.13+ (requires-python in pyproject.toml); below 3.13 the installation refuses to run |
| Privileges | no administrator needed: everything is written to the user's home directory |
| Operating system | Windows + PowerShell 7.6 — verified by an end-to-end run; Linux and macOS — the usual path through pip |
| Disk | about 2.5 GB for the environment and the model; the index — roughly 1 MB per 1–2 source files |
| Network | PyPI during installation and a one-time download of the embedding model (~240 MB) |
| Optional | JDK 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 #
./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 setWhat the installer does, and why it is worth knowing:
- creates a virtual environment (
-Venv,~/.ragraf/venvby 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:
./scripts/install-joern.ps1 -Download # the archive is verified by SHA-256Path B — pip from the repository #
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 --helppip 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.
/plugin marketplace add paulmann/RAGRAF
/plugin install ragraf@ragrafTo 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 #
| Path | What it is |
|---|---|
~/.ragraf/venv | the virtual environment (the path can be changed with -Venv) |
~/.ragraf/models | the embedding model, downloaded once |
~/.ragraf/logs | installation 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 #
ragraf --version # product version
ragraf selftest # environment self-check: what was found, what is missing
ragraf --json edition # edition, available capabilities, licence stateThe first corpus and the first answer:
ragraf ensure /path/to/project --json
ragraf query search "entry point" --limit 5ensure 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 #
- Remove the server entry from the agent configuration (each client has its own place — see “Connecting an agent”).
- Delete the installation directories:
~/.ragraf(environment, model, logs). - Remove the plugin in Claude Code:
/plugin uninstall ragraf@ragraf. - Project indexes: the
<project>/.ragrafdirectories — 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 #
- Connect an agent: Connecting an agent.
- Understand the working cycle: Usage.
- See the full list: Operations reference.