This guide walks you through cloning the repository, installing dependencies for both the Python backend and the React frontend, and running your first research query. The CLI path gets you to a working report in about two minutes; the optional full-stack setup adds an interactive browser UI on top.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/IconDean/research-agent/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have the following installed and ready:- Python 3.11 or later — the agent uses modern
asynciopatterns and type hints that require 3.11+. - Node.js 18 or later — required only if you want to run the React frontend.
- A Gemini API key — the agent calls the Google Gemini API for all reasoning steps.
Get a free Gemini API key from Google AI Studio. Sign in with a Google account, click Create API key, and copy the generated key — you’ll need it in Step 3.
Installation and Setup
Create and activate a Python virtual environment
Isolate the agent’s dependencies from your system Python installation.Once the environment is active, your terminal prompt will be prefixed with
(venv).Install Python dependencies
Install all required packages from the pinned requirements file.This installs the Google Generative AI SDK, FastAPI, DuckDuckGo search, BeautifulSoup4, and supporting libraries.
Create the .env file
The agent reads your Gemini API key from an environment file inside the Open
research_agent/ directory..env in your editor and replace the placeholder with your actual key:research_agent/.env
Useful CLI Flags
Once the basic workflow is running, these flags give you more control:| Flag | Description |
|---|---|
--verbose | Print each planning step, gap analysis, and intermediate reasoning to stderr |
-o report.md / --output report.md | Save the final report to a markdown file instead of printing to stdout |
-q "question" / --query "question" | Alternative to passing the question as a positional argument |
Optional: Run the Full Stack
If you want the interactive React UI, start both servers after completing the steps above. Terminal 1 — FastAPI backend (from insideresearch_agent/ with the venv active):