ruflo

⚙️ Environment Variables

/docs/configuration--reference/environment-variables

Core Configuration

VariableDescriptionDefault
CLAUDE_FLOW_MODEOperation mode (development, production, integration)development
CLAUDE_FLOW_ENVEnvironment name for test/dev isolation-
CLAUDE_FLOW_DATA_DIRRoot data directory./data
CLAUDE_FLOW_MEMORY_PATHDirectory for persistent memory storage./data
CLAUDE_FLOW_MEMORY_TYPEMemory backend type (json, sqlite, agentdb, hybrid)hybrid
CLAUDE_FLOW_SECURITY_MODESecurity level (strict, standard, permissive)standard
CLAUDE_FLOW_LOG_LEVELLogging verbosity (debug, info, warn, error)info
CLAUDE_FLOW_CONFIGPath to configuration file./claude-flow.config.json
NODE_ENVNode.js environment (development, production, test)development

Swarm & Agents

VariableDescriptionDefault
CLAUDE_FLOW_MAX_AGENTSDefault concurrent agent limit15
CLAUDE_FLOW_TOPOLOGYDefault swarm topology (hierarchical, mesh, ring, star)hierarchical
CLAUDE_FLOW_HEADLESSRun in headless mode (no interactive prompts)false
CLAUDE_CODE_HEADLESSClaude Code headless mode compatibilityfalse

MCP Server

VariableDescriptionDefault
CLAUDE_FLOW_MCP_PORTMCP server port3000
CLAUDE_FLOW_MCP_HOSTMCP server hostlocalhost
CLAUDE_FLOW_MCP_TRANSPORTTransport type (stdio, http, websocket)stdio

Vector Search (HNSW)

VariableDescriptionDefault
CLAUDE_FLOW_HNSW_MHNSW index M parameter (connectivity, higher = more accurate)16
CLAUDE_FLOW_HNSW_EFHNSW search ef parameter (accuracy, higher = slower)200
CLAUDE_FLOW_EMBEDDING_DIMVector embedding dimensions384
SQLJS_WASM_PATHCustom path to sql.js WASM binary-

AI Provider API Keys

VariableDescriptionRequired
ANTHROPIC_API_KEYAnthropic API key for Claude modelsYes (Claude)
OPENAI_API_KEYOpenAI API key for GPT modelsOptional
GOOGLE_GEMINI_API_KEYGoogle Gemini API keyOptional
OPENROUTER_API_KEYOpenRouter API key (multi-provider)Optional
OLLAMA_URLOllama server URL for local modelshttp://localhost:11434

IPFS/Decentralized Storage

VariableDescriptionRequired
WEB3_STORAGE_TOKENWeb3.Storage API tokenOptional
W3_TOKENAlternative Web3.Storage tokenOptional
IPFS_TOKENGeneric IPFS API tokenOptional
PINATA_API_KEYPinata IPFS API keyOptional
PINATA_API_SECRETPinata IPFS API secretOptional
IPFS_API_URLLocal IPFS node API URLhttp://localhost:5001
IPFS_GATEWAY_URLIPFS gateway URLhttps://ipfs.io

Google Cloud Storage

VariableDescriptionRequired
GCS_BUCKETGoogle Cloud Storage bucket nameOptional
GOOGLE_CLOUD_BUCKETAlternative GCS bucket variableOptional
GCS_PROJECT_IDGCS project IDOptional
GOOGLE_CLOUD_PROJECTAlternative project ID variableOptional
GOOGLE_APPLICATION_CREDENTIALSPath to GCS service account JSONOptional
GCS_PREFIXPrefix for stored filesruflo-patterns

Auto-Update System

VariableDescriptionDefault
CLAUDE_FLOW_AUTO_UPDATEEnable/disable auto-updatestrue
CLAUDE_FLOW_FORCE_UPDATEForce update checkfalse
CICI environment detection (disables updates)-
CONTINUOUS_INTEGRATIONAlternative CI detection-

Security

VariableDescriptionRequired
GITHUB_TOKENGitHub API token for repository operationsOptional
JWT_SECRETJWT secret for authenticationProduction
HMAC_SECRETHMAC secret for request signingProduction
CLAUDE_FLOW_TOKENInternal authentication tokenOptional

Output Formatting

VariableDescriptionDefault
NO_COLORDisable colored output-
FORCE_COLORForce colored output-
DEBUGEnable debug outputfalse
TMPDIRTemporary directory path/tmp

Example .env File

bash
# Core
CLAUDE_FLOW_MODE=development
CLAUDE_FLOW_LOG_LEVEL=info
CLAUDE_FLOW_MAX_AGENTS=15

# AI Providers
ANTHROPIC_API_KEY=sk-ant-api03-...
OPENAI_API_KEY=sk-...

# MCP Server
CLAUDE_FLOW_MCP_PORT=3000
CLAUDE_FLOW_MCP_TRANSPORT=stdio

# Memory
CLAUDE_FLOW_MEMORY_TYPE=hybrid
CLAUDE_FLOW_MEMORY_PATH=./data

# Vector Search
CLAUDE_FLOW_HNSW_M=16
CLAUDE_FLOW_HNSW_EF=200

# Optional: IPFS Storage
# PINATA_API_KEY=...
# PINATA_API_SECRET=...

# Optional: Google Cloud
# GCS_BUCKET=my-bucket
# GOOGLE_APPLICATION_CREDENTIALS=./service-account.json