๐ฆ 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 ranexorpython -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:
- Download Python from python.org/downloads
- During install, check โ "Add Python to PATH"
- Restart your terminal
- 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:
- Search "Environment Variables" in Start menu
- Add
%APPDATA%\Python\Python3x\Scriptsto 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

Interactive guided setup with ranex init --fastapi
This creates:
| File/Folder | What it does |
|---|---|
.windsurfrules | Tells AI assistants your project rules |
.ranex/config.toml | Your 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
| Component | What it does |
|---|---|
ranex | The main command (22 sub-commands) |
ranex_core | The engine that validates code |
ranex_mcp | Connects to AI assistants |
Useful Commands
ranex --version # Check version
ranex doctor # Check system health
ranex --help # See all commands