HUSK

Configuration

Environment variables, admin config, TTL, dedup, and privacy settings.

Environment variables

Set these in your .env file or as environment variables in Docker Compose.

VariableDefaultDescription
HUSK_PORT3000Server port
HUSK_DB_PATHdata/husk.dbSQLite database path
HUSK_JWT_SECRETauto-generatedJWT signing secret for admin sessions
QDRANT_URLhttp://localhost:6333Qdrant server URL
OLLAMA_URLhttp://localhost:11434Ollama server URL
OLLAMA_MODELnomic-embed-textEmbedding model name
EMBEDDING_DIMENSIONS768Vector dimensions (must match your model)

TTL configuration

Default TTLs per scope, configurable via environment variables or admin config:

VariableConfig keyDefaultDescription
HUSK_TTL_DEFAULT_SESSIONttl_default_session2592000 (30 days)Default TTL for session memories
HUSK_TTL_DEFAULT_PROJECTttl_default_project7776000 (90 days)Default TTL for project memories
HUSK_TTL_DEFAULT_GLOBALttl_default_global(none)Default TTL for global memories (forever by default)
HUSK_TTL_MAXttl_max(none)Hard ceiling for all TTLs — caps even "forever" memories

Dedup configuration

VariableConfig keyDefaultDescription
HUSK_DEDUP_THRESHOLDdedup_threshold0.92Similarity threshold for duplicate detection (0.5–1.0)

Higher values = fewer duplicates detected (more strict). Lower values = more aggressive dedup. The default of 0.92 catches near-identical memories while allowing meaningfully different ones through.

Admin config

Some settings can be managed through the admin UI at /settings. These are stored in SQLite and take precedence over environment variables when both are set.

Config keys correspond to the environment variable names with the HUSK_ prefix removed and lowercased (e.g. HUSK_DEDUP_THRESHOLDdedup_threshold).

On this page