Skip to content

Configuration Reference

Fabric is configured via CLI flags, environment variables, or a .env file. Environment variables take precedence over .env file values.

FlagEnv VarDefaultDescription
--hostHOST127.0.0.1HTTP bind address
--portPORT3001HTTP port
--grpc-portGRPC_PORT3002gRPC port
--database-urlDATABASE_URLPostgres connection string
RUST_LOGinfoLog level filter (tracing)
FlagEnv VarDefaultDescription
--jwt-secretJWT_SECRETSupabase JWT HS256 secret
--fabric-envFABRIC_ENVdevelopmentSet to production to disable dev headers
FlagEnv VarDefaultDescription
--openai-api-keyOPENAI_API_KEYEnables OpenAI provider
OPENAI_BASE_URLhttps://api.openai.com/v1Custom OpenAI-compatible endpoint
--anthropic-api-keyANTHROPIC_API_KEYEnables Anthropic provider
--ollama-enabledOLLAMA_ENABLEDfalseEnable Ollama provider
--ollama-urlOLLAMA_URLhttp://localhost:11434Ollama server URL
WHISPER_URLWhisper server URL
--comfyui-enabledCOMFYUI_ENABLEDfalseEnable ComfyUI provider
--comfyui-urlCOMFYUI_URLhttp://localhost:8188ComfyUI server URL
--onnx-model-dirONNX_MODEL_DIRONNX model directory
--candle-enabledCANDLE_ENABLEDfalseEnable Candle provider
FlagEnv VarDefaultDescription
--worker-idWORKER_IDrandom UUIDUnique worker identity
--concurrencyWORKER_CONCURRENCY4Max steps to claim per poll cycle
--poll-intervalWORKER_POLL_INTERVAL500Poll interval in milliseconds
--lease-secondsWORKER_LEASE_SECONDS30Lease TTL before auto-expiry
--max-retriesWORKER_MAX_RETRIES3Max retry attempts per step
--database-urlDATABASE_URLPostgres connection string
RUST_LOGinfoLog level filter
ProfileServices
defaultPostgres
aiPostgres + Ollama + Whisper + ComfyUI
fullEverything
CommandDescription
just infra-upFull stack (Postgres + Ollama + Whisper + ComfyUI)
just infra-up-dbPostgres only
just infra-up-aiPostgres + AI services
just infra-downStop everything
just infra-resetFresh start (delete volumes)
just infra-psqlOpen psql shell
just infra-migrateRe-apply migrations
just infra-smoke-testVerify migrations on clean DB
just ollama-pull <model>Pull an Ollama model
just ollama-listList available Ollama models
CommandDescription
just runStart control plane
just executorStart execution plane worker
just fmtFormat all code
just clippyLint with -D warnings
just testRun all tests
just docBuild documentation
just ciAll of the above
Terminal window
# Server
HOST=127.0.0.1
PORT=3001
GRPC_PORT=3002
DATABASE_URL=postgres://fabric:fabric@localhost:5432/fabric
FABRIC_ENV=development
RUST_LOG=info
# Authentication
JWT_SECRET=your-supabase-jwt-secret
# AI Providers
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
OLLAMA_ENABLED=true
OLLAMA_URL=http://localhost:11434
WHISPER_URL=http://localhost:8080
COMFYUI_ENABLED=false
# Executor
WORKER_CONCURRENCY=4
WORKER_POLL_INTERVAL=500
WORKER_LEASE_SECONDS=30
WORKER_MAX_RETRIES=3