This guide walks you through standing up a fully functional instance of the RCA Agent on your local machine. By the end you will have a running Celery worker, a Redis broker, and a Streamlit UI ready to accept your first incident analysis. The entire process takes under 10 minutes on a machine with Python 3.9+ and Docker available.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vrashmanyu605-eng/devops-root-cause-analysis-agent/llms.txt
Use this file to discover all available pages before exploring further.
Confirm Prerequisites
Before you begin, make sure the following are available on your machine:
- Python 3.9 or later — the agent uses
matchstatements and modern type hints. - Docker — the quickest way to run Redis without a local installation. Alternatively, install Redis 7+ natively.
- An LLM API key — the agent’s hypothesis generation stage requires access to a large language model. OpenAI (
gpt-4oorgpt-4-turbo) is the default provider; see Environment Configuration for alternative providers. - Git — to clone the repository.
Clone the Repository
Clone the project from GitHub and move into the project directory:The repository root contains the
app/ package (agent core, Celery worker, and Streamlit UI), a requirements.txt, and an .env.example template you will use in a later step.Create and Activate a Virtual Environment
Isolate the project’s dependencies in a dedicated virtual environment to avoid conflicts with other Python projects on your machine:On Windows (PowerShell):Your shell prompt should now be prefixed with
(.venv), confirming the environment is active.Install Dependencies
Install all required Python packages from the lockfile:This installs the core agent libraries along with
streamlit, celery, redis, the OpenAI client, and all supporting packages. Depending on your network speed this typically takes 60–90 seconds.Configure Environment Variables
The agent is configured entirely through environment variables. Copy the provided example file and fill in your values:Open
.env in your editor and set the required variables:Start Redis
The Celery worker requires Redis as its message broker and result backend. The fastest way to start Redis locally is with Docker:Confirm Redis is accepting connections:If you prefer a native Redis installation, start the server with
redis-server and confirm it is listening on port 6379.Start the Celery Worker
Open a new terminal window, activate the virtual environment, and start the Celery worker process. The worker picks up analysis tasks submitted by the Streamlit UI and executes each pipeline stage:You should see output similar to:Leave this terminal running throughout your session.
Launch the Streamlit UI
In a third terminal window, activate the virtual environment and launch the Streamlit application:Streamlit will print the local URL:
Trigger Your First Analysis
Open http://localhost:8501 in your browser. You will see the RCA Agent dashboard with an incident configuration form.Fill in the incident context fields:
- Service name — the affected service or component (e.g.,
payment-api) - Time window — the start and end timestamps covering the incident (e.g., the 30 minutes around when the alert fired)
- Alert description — a brief description of the observed symptom (e.g.,
P99 latency exceeded 2000ms, error rate spiked to 12%)
On the first run with no connected data sources, the agent operates in demo mode and uses bundled sample signals so you can explore the output format before wiring up live observability backends.