Skip to main content

Configuration

All configuration is stored in ~/.blindference/config.json and can be overridden via environment variables prefixed with BLF_.

Default Configuration

Environment Variables

Every config field can be overridden via an environment variable. The mapping is: BLF_ + uppercase field name.

CoFHE Modes

Bridge Mode (Default)

Spawns a TypeScript subprocess via @cofhe/sdk/node for CoFHE operations.
  • More reliable SDK lifecycle
  • Handles WASM loading correctly
  • Better error handling
  • Slightly higher overhead

Python Mode (Alternative)

Direct HTTP calls to CoFHE endpoints.
  • Lighter weight
  • Requires manual session management
  • Good for resource-constrained environments

Model IDs

Supported models for inference: Set multiple models:

Example: Full Non-Interactive Setup

Example: Local Development Stack