Skip to content

Environment Variables

Required

VariableDescription
SCI_DB_READER_URLPostgres connection string for the reader role
SCI_DB_WRITER_URLPostgres connection string for the writer role

Default values (local dev): postgresql://sci_reader:sci_reader_local@localhost:5432/sci

Storage

VariableDefaultDescription
SCI_STORAGE_BACKENDlocallocal, dropbox, s3, icloud
SCI_LOCAL_DIR~/.sci/dataLocal cache dir for cloud backends
SCI_DROPBOX_TOKENDropbox access token (dropbox backend)
SCI_S3_BUCKETS3 bucket name (s3 backend)
SCI_S3_REGIONus-east-1AWS region (s3 backend)
SCI_S3_ENDPOINTCustom endpoint for R2/MinIO (s3 backend)
SCI_ICLOUD_PATH~/Library/Mobile Documents/iCloud~sci~identity/DocumentsiCloud path override

Embeddings

VariableDefaultDescription
SCI_EMBED_MODELBAAI/bge-base-en-v1.5Embedding model identifier

Auth

VariableDefaultDescription
SCI_AGENT_TOKENAgent token for the MCP server
SCI_REQUIRE_AUTHfalseSet to true to enforce token validation

Consolidation

VariableDefaultDescription
SCI_OPENROUTER_KEYOpenRouter API key (required for consolidation and identity extraction)
SCI_CONSOLIDATION_MODELgoogle/gemini-2.5-flash-liteModel for nightly consolidation
SCI_CONSOLIDATION_WINDOW_DAYS1Days of history to process per run
SCI_EXTRACT_MODELgoogle/gemini-flash-1.5Model for identity extraction

Output

VariableDefaultDescription
SCI_VAULT_PATH~/VaultObsidian vault path for digest export