DOCS/REFERENCE
REFERENCE11 MIN READUPDATED 03 SEP 2026

REFERENCE / 03

Configure the boundary explicitly.

Environment variables for storage, authentication, CORS, Vault lifetime, upstream models, logging, and maintenance.
Defaults are designed for local development, not public exposure. Public mode fails startup without an API credential and rejects wildcard CORS.
CORE + STORAGE

Runtime and state paths

VARIABLEDEFAULTPURPOSE
SHREDDAR_ENVdevelopmentEnvironment label returned by health checks
SHREDDAR_DATA_DIR/tmp/shreddar-devBase directory for local state
SHREDDAR_DATABASE_PATH$DATA_DIR/shreddar.sqliteSQLite policy, receipt, and Vault store
SHREDDAR_KEY_FILE$DATA_DIR/vault.keyVault master key path
SHREDDAR_MAX_TEXT_CHARS100000Maximum characters accepted per text or chat message
SHREDDAR_ACCESS_LOGfalseHTTP access-log switch; raw request bodies are never intended telemetry
ACCESS CONTROL

Public mode must fail closed

VARIABLEDEFAULTRULE
SHREDDAR_PUBLIC_MODEfalseWhen true, at least one API credential is mandatory
SHREDDAR_API_KEYSemptyComma-separated direct values; secret-file form is preferred
SHREDDAR_API_KEYS_FILEemptyRoot-controlled credential file, mode 0600 or stricter
SHREDDAR_ALLOWED_ORIGINSlocalhost originsExact CORS allowlist; wildcard is rejected in public mode
VAULT + MAINTENANCE

Bound the lifetime of reversible state

VARIABLEDEFAULTBOUND
SHREDDAR_SESSION_TTL_SECONDS86400Default mapping lifetime; at least 60 seconds
SHREDDAR_MAX_SESSION_TTL_SECONDS604800Maximum accepted lifetime in production Compose
SHREDDAR_CLEANUP_INTERVAL_SECONDS900Expired-state cleanup interval; 60 to 86400 seconds
UPSTREAM MODEL

Remote inference is operator-configured

VARIABLEDEFAULTPURPOSE
SHREDDAR_DEMO_MODEtrueUse deterministic demo responses instead of a remote upstream
SHREDDAR_UPSTREAM_BASE_URLemptyOperator-selected OpenAI-compatible service root
SHREDDAR_UPSTREAM_API_KEYemptyDirect upstream credential
SHREDDAR_UPSTREAM_API_KEY_FILEemptyPreferred secret-file form
SHREDDAR_UPSTREAM_TIMEOUT_SECONDS60Bound the upstream request duration
SHREDDAR DOCSYOUR DOC. YOUR DATA. YOUR CONTROL.

Public alpha documentation. Capability labels describe implementation state, not certification or guaranteed suitability.