ruflo

Environment Variables

/docs/setup--configuration/environment-variables

All configurations support these environment variables:

VariableDescriptionRequired
ANTHROPIC_API_KEYYour Anthropic API keyYes (for Claude models)
OPENAI_API_KEYOpenAI API keyOptional (for GPT models)
GOOGLE_API_KEYGoogle AI API keyOptional (for Gemini)
CLAUDE_FLOW_LOG_LEVELLogging level (debug, info, warn, error)Optional
CLAUDE_FLOW_TOOL_GROUPSMCP tool groups to enable (comma-separated)Optional
CLAUDE_FLOW_TOOL_MODEPreset tool mode (develop, pr-review, devops, etc.)Optional

MCP Tool Groups

Control which MCP tools are loaded to reduce latency and token usage:

bash
# Enable specific tool groups
export CLAUDE_FLOW_TOOL_GROUPS=implement,test,fix,memory

# Or use a preset mode
export CLAUDE_FLOW_TOOL_MODE=develop

Available Groups: create, issue, branch, implement, test, fix, optimize, monitor, security, memory, all, minimal

Preset Modes:

ModeGroupsUse Case
developcreate, implement, test, fix, memoryActive development
pr-reviewbranch, fix, monitor, securityCode review
devopscreate, monitor, optimize, securityInfrastructure
triageissue, monitor, fixBug triage

Precedence: CLI args (--tools=X) > Environment vars > Config file > Default (all)