Skip to content

SGR Quick Start

Lysenko Artem edited this page Nov 15, 2025 · 6 revisions

Setup Configuration Files

  1. Create config.yaml from the template:
cp config.yaml.example config.yaml

Alternatively, you can use environment variables from .env.example

  1. Configure API keys and other settings

  2. Fill in your own agents definitions:

touch agents.yaml
# (optional)  Add in this file your agents definitions based on config.yaml and agents.yaml.example

Local Development

Prerequisites

Install UV (for Backend)

UV is required for managing Python dependencies and running the backend.

# Install UV
curl -LsSf https://astral.sh/uv/install.sh | sh
# or on Windows:
# powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Install Node.js and npm (for Frontend)

Node.js and npm are required for running the frontend development server.

# Check if Node.js is installed
node --version
npm --version

# If not installed, download from https://nodejs.org/
# Or use a version manager like nvm:
# nvm install 22
# nvm use 22

Requirements:

  • Node.js: ^20.19.0 || >=22.12.0 (see package.json engines field)

Backend Run

# 1. Install dependencies
uv sync

# 2. Run the server with default settings
uv run python sgr_deep_research

# Or with custom options:
uv run python sgr_deep_research \
  --host 127.0.0.1 \
  --port 8010 \
  --config-file config.yaml \
  --agents-file agents.yaml \
  --logging-file logging_config.yaml

Frontend Run

# 1. Navigate to frontend directory
cd sgr-deep-research-frontend

# 2. Install dependencies
npm install

# 3. Run the development server with default settings
npm run dev

# Or with custom backend URL:
VITE_API_BASE_URL=http://localhost:8010 npm run dev

**Note:** In development mode, Vite automatically proxies API requests (`/health`, `/agents`, `/v1/*`) to the backend, so you typically don't need to set `VITE_API_BASE_URL` unless your backend is running on a different host/port.

Access URLs (Local Development)

After starting both backend and frontend, you can access:

Docker Deployment

Environment Variables

Before deploying, you can configure the following environment variables (optional):

  • VITE_API_BASE_URL - Base URL for the backend API (default: http://localhost:8010)
  • VITE_APP_ENV - Application environment (default: production)
  • FRONTEND_PORT - Port for the frontend service (default: 5173)
  • BACKEND_PORT - Port for the backend service (default: 8010)

Deployment Steps

# 1. Go to the services folder
cd services

# 2. Building docker images
docker-compose build

# 3. Deploy with Docker Compose
docker-compose up -d

Access URLs (Docker Deployment)

After deployment, you can access:

Clone this wiki locally