OpenQAOpenQA
Configuration

Environment Variables

Complete reference for all OpenQA environment variables.

Quick Setup

Copy the example file and edit it:

bash
cp .env.example .env
# Edit .env with your values

LLM Configuration

VariableDefaultDescription
LLM_PROVIDERopenaiLLM provider: openai, anthropic, or ollama
OPENAI_API_KEY-OpenAI API key (required if using OpenAI)
ANTHROPIC_API_KEY-Anthropic API key (required if using Anthropic)
OLLAMA_BASE_URLhttp://localhost:11434Ollama server URL (if using Ollama)

Target Application

VariableDefaultDescription
SAAS_URL-URL of the application to test
SAAS_AUTH_TYPEnoneAuthentication type: none, basic, or session
SAAS_USERNAME-Username for authentication
SAAS_PASSWORD-Password for authentication

GitHub Integration

VariableDefaultDescription
GITHUB_TOKEN-GitHub personal access token
GITHUB_OWNER-GitHub repository owner/organization
GITHUB_REPO-GitHub repository name

GitLab Integration

VariableDefaultDescription
GITLAB_TOKEN-GitLab personal access token
GITLAB_PROJECT_ID-GitLab project ID
GITLAB_URLhttps://gitlab.comGitLab instance URL

Agent Behavior

VariableDefaultDescription
AGENT_INTERVAL_MS3600000Time between test sessions (ms). Default: 1 hour
AGENT_MAX_ITERATIONS20Maximum actions per test session
AGENT_AUTO_STARTtrueStart testing automatically on launch

Web UI

VariableDefaultDescription
WEB_PORT3000Port for the web interface
WEB_HOST0.0.0.0Host to bind the web server

Database

VariableDefaultDescription
DB_PATH./data/openqa.dbPath to SQLite database file

Git Listener

VariableDefaultDescription
GIT_LISTENER_ENABLEDfalseEnable automatic testing on git events
GIT_LISTENER_POLL_INTERVAL60000Polling interval for git events (ms)

Example .env File

bash
# LLM Configuration
LLM_PROVIDER=openai
OPENAI_API_KEY=sk-your-api-key-here

# Target Application
SAAS_URL=https://your-app.com
SAAS_AUTH_TYPE=session
SAAS_USERNAME=test@example.com
SAAS_PASSWORD=testpassword

# GitHub Integration (Optional)
GITHUB_TOKEN=ghp_your-token
GITHUB_OWNER=your-username
GITHUB_REPO=your-repo

# Agent Behavior
AGENT_INTERVAL_MS=3600000
AGENT_MAX_ITERATIONS=20
AGENT_AUTO_START=true

# Web UI
WEB_PORT=3000
WEB_HOST=0.0.0.0

# Database
DB_PATH=./data/openqa.db

# Git Listener (Optional)
GIT_LISTENER_ENABLED=true
GIT_LISTENER_POLL_INTERVAL=60000

Next Steps