Quick Start
Setup Configuration Files
- Create config.yaml from the template:
Alternatively, you can use environment variables from .env.example
-
Configure API keys and other settings
-
(optional) Fill in your own agents definitions:
touch agents.yaml
# 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(seepackage.jsonengines field)
Backend Run
# 1. Install dependencies
uv sync
# 2. Run the server with default settings
uv run python sgr_agent_core
# Or with custom options:
uv run python sgr_agent_core \
--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:
- Frontend: http://localhost:5173
- Backend API: http://localhost:8010
- Health check: http://localhost:8010/health
- Agents endpoint: http://localhost:8010/agents
- API endpoints: http://localhost:8010/v1/*
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:
- Frontend: http://localhost:5173 (or custom
FRONTEND_PORT) - Backend API: http://localhost:8010 (or custom
BACKEND_PORT) - Health check: http://localhost:8010/health
- Agents endpoint: http://localhost:8010/agents
- API endpoints: http://localhost:8010/v1/*