Ruflo uses environment variables for two purposes: keeping secrets (API keys) out of committed config files, and tuning runtime behavior without changingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ruvnet/ruflo/llms.txt
Use this file to discover all available pages before exploring further.
claude-flow.config.json. Most are optional — only the API key for your chosen provider is required.
Example .env File
Copy this as .env.example in your project root, then duplicate it to .env and fill in your actual values.
AI Provider Keys
Anthropic Claude API key. Required when
providers.default or providers.fallback is set to claude. Obtain yours at console.anthropic.com.OpenAI API key. Required for GPT models and Codex. Also used by the OpenAI embedding provider (
text-embedding-3-small/large, ada-002).Google AI API key. Required for Gemini models (Gemini 2.0 Flash, Gemini 1.5 Pro) and Google-hosted embeddings.
Memory Configuration
Override the path to the SQLite memory database file. Ruflo resolves the final path using this precedence chain:
--pathCLI flagCLAUDE_FLOW_DB_PATHCLAUDE_FLOW_MEMORY_PATH/memory.db.swarm/memory.dbin the current working directory
Sets the directory where Ruflo stores all memory-related files:
memory.db, HNSW index snapshots, and RVF exports. Defaults to .swarm/ in the current working directory.MCP Server
Port for the MCP HTTP transport. Defaults to
3000. Ignored when transport is stdio (which is the default for Claude Code integration).Comma-separated list of MCP tool groups to enable. Restricting this list reduces startup latency and the number of tool definitions sent to the model on each turn, which lowers token usage.Available groups: Precedence: CLI
coordination, memory, monitoring, github, system--tools flag > CLAUDE_FLOW_TOOL_GROUPS > mcp.toolGroups in config > all groupsInternal authentication token used by Ruflo’s security layer. When set, inter-process and HTTP requests are validated against this token. Optional for local development; recommended for any network-accessible deployment. Configure MCP HTTP token authentication programmatically via the
auth.tokens array in @claude-flow/mcp server options.Performance
Set to
1 to use @claude-flow/cli-core instead of the full @claude-flow/cli. This is a memory-commands-only lite path with no SQLite, no HNSW index, and no ONNX runtime.Cold-cache npx wall-time drops from ~35s to ~1.5s — a measured 22.9× speedup. Designed for plugin scripts that only need memory_store/memory_search without the full neural stack.| Value | Package | Cold-cache time | Available features |
|---|---|---|---|
0 (default) | @claude-flow/cli | ~35s | All features |
1 | @claude-flow/cli-core | ~1.5s | Memory commands only |
Eight built-in plugin scripts in the Ruflo monorepo are already
CLI_CORE-aware. The full MCP server always uses the complete CLI regardless of this flag. See v3/@claude-flow/cli-core/MIGRATION.md for migration details.Storage
IPFS / decentralized storage configuration variables used by the pattern marketplace (
transfer-store commands) and the plugin IPFS marketplace. Consult the IPFS documentation for your node’s specific variables.Google Cloud Storage configuration variables (project ID, credentials file, bucket name) used by the cloud deployment integration. Used with
npx ruflo@latest deployment deploy --cloud gcs.Full Quick-Reference Table
| Variable | Default | Description |
|---|---|---|
ANTHROPIC_API_KEY | — | Anthropic Claude API key (required for Claude models) |
OPENAI_API_KEY | — | OpenAI API key (GPT models, Codex, OpenAI embeddings) |
GOOGLE_API_KEY | — | Google AI API key (Gemini models) |
CLAUDE_FLOW_DB_PATH | <cwd>/.swarm/memory.db | SQLite memory database path |
CLAUDE_FLOW_MEMORY_PATH | <cwd>/.swarm | Memory directory (DB + HNSW index) |
CLAUDE_FLOW_MCP_PORT | 3000 | MCP HTTP server port |
CLAUDE_FLOW_TOOL_GROUPS | (all groups) | Comma-separated list of enabled tool groups |
CLAUDE_FLOW_TOKEN | — | Internal authentication token |
CLI_CORE | 0 | Set to 1 for fast lite path (22.9× faster, memory-only) |
IPFS_* | — | IPFS / decentralized storage config |
GOOGLE_CLOUD_* | — | Google Cloud Storage config |
