๐Ÿ“ฆ Installation

Time needed: About 5 minutes
Difficulty: Easy - just copy and paste commands


๐ŸŽฏ Before You Start

You need Python installed on your computer. Here's how to check:

python --version

โœ… Good: You see something like Python 3.10.0 or higher
โŒ Problem: You see "command not found" โ†’ Download Python first


๐Ÿ“ฅ Step 1: Install Ranex

Open your Terminal (Mac/Linux) or Command Prompt (Windows) and type:

pip install ranex

๐Ÿ’ก Tip: If that doesn't work, try pip3 install ranex or python -m pip install ranex


โœ… Step 2: Check It Worked

Type this command:

ranex doctor

What you should see:

โœ… Python 3.12.3
โœ… Ranex Core: INSTALLED (Rust binary)
โœ… MCP Server: /path/to/ranex_mcp
โœ… PyYAML: INSTALLED
โœ… Integrity Registry: LOADED (42 files tracked)

๐ŸŽ‰ All green checkmarks? You're ready! Skip to Quick Start


๐Ÿ”ด Common Problems & Fixes

Problem: "pip: command not found"

What it means: Python isn't installed properly

Fix:

  1. Download Python from python.org/downloads
  2. During install, check โœ… "Add Python to PATH"
  3. Restart your terminal
  4. Try again

Problem: "Permission denied"

What it means: You need admin rights

Fix: Add --user to install just for yourself:

pip install --user ranex

Problem: "ranex: command not found" (after install)

What it means: Python scripts folder isn't in your PATH

Fix for Mac/Linux:

export PATH="$HOME/.local/bin:$PATH"

Fix for Windows:

  1. Search "Environment Variables" in Start menu
  2. Add %APPDATA%\Python\Python3x\Scripts to PATH

Problem: Still stuck?

Run this command - it tells you exactly what's wrong:

ranex doctor

๐Ÿ“‚ Step 3: Set Up Your Project

Go to your project folder and initialize Ranex:

cd your-project-folder
ranex init
Ranex guided project setup showing interactive prompts

Interactive guided setup with ranex init --fastapi

This creates:

File/FolderWhat it does
.windsurfrulesTells AI assistants your project rules
.ranex/config.tomlYour project settings
docs/setup/Documentation files
app/Organized folder structure

๐Ÿ”Œ IDE Setup (Optional)

For Cursor / Windsurf Users

Good news! Ranex works automatically. The .windsurfrules file you created tells these IDEs how to behave.

For Other IDEs

You can connect Ranex to any AI assistant that supports MCP:

{
  "mcpServers": {
    "ranex": {
      "command": "ranex_mcp",
      "args": ["--stdio"]
    }
  }
}

๐Ÿงช Test Your Setup

Run this to make sure everything works:

ranex doctor
ranex --help

You should see a list of all available commands.


โญ๏ธ What's Next?

You're all set! Now let's build something:

โ†’ Quick Start Guide - Create your first feature with AI governance


๐Ÿ“š Reference

What Got Installed

ComponentWhat it does
ranexThe main command (22 sub-commands)
ranex_coreThe engine that validates code
ranex_mcpConnects to AI assistants

Useful Commands

ranex --version     # Check version
ranex doctor        # Check system health
ranex --help        # See all commands