🔥 Quick Start
Prerequisites
uvx
- If not installed, follow uv installation guide- Python 3.10+
- An API key for an LLM provider (e.g., OpenAI, Google, Anthropic).
Installation
Option 1: Quick Install (Recommended)
Use our automated install script to get up and running quickly:Option 2: Manual Installation
-
Clone the repository:
-
Install dependencies:
If you are using uv:
Or, if you are using pip:
-
OPTIONALLY: Set up your environment variables:
Create a
.env
file in the root directory and add your API keys. Rogue usesLiteLLM
, so you can set keys for various providers.
Running Rogue
Rogue operates on a client-server architecture where the core evaluation logic runs in a backend server, and various clients connect to it for different interfaces.Default Behavior
When you runuvx rogue-ai
without any mode specified, it:
- Starts the Rogue server in the background
- Launches the TUI (Terminal User Interface) client
Available Modes
- Default (Server + TUI):
uvx rogue-ai
- Starts server in background + TUI client - Server:
uvx rogue-ai server
- Runs only the backend server - TUI:
uvx rogue-ai tui
- Runs only the TUI client (requires server running) - Web UI:
uvx rogue-ai ui
- Runs only the Gradio web interface client (requires server running) - CLI:
uvx rogue-ai cli
- Runs non-interactive command-line evaluation (requires server running, ideal for CI/CD)
Mode Options
Server Mode
--host HOST
- Host to run the server on (default: 127.0.0.1 or HOST env var)--port PORT
- Port to run the server on (default: 8000 or PORT env var)--debug
- Enable debug logging
Web UI Mode
--rogue-server-url URL
- Rogue server URL (default: http://localhost:8000)--port PORT
- Port to run the UI on--workdir WORKDIR
- Working directory (default: ./.rogue)--debug
- Enable debug logging
CLI Mode
Example: Testing the T-Shirt Store Agent
This repository includes a simple example agent that sells T-shirts. You can use it to see Rogue in action.-
Install example dependencies:
If you are using uv:
or, if you are using pip:
-
Start the example agent server in a separate terminal:
If you are using uv:
If not:This will start the agent on
http://localhost:10001
. -
Configure Rogue in the UI to point to the example agent:
- Agent URL:
http://localhost:10001
- Authentication:
no-auth
- Agent URL:
-
Run the evaluation and watch Rogue test the T-Shirt agent’s policies!
You can use either the TUI (
uvx rogue-ai
) or Web UI (uvx rogue-ai ui
) mode.