Skip to content

All settings appendix

Exhaustive reference for defaults in backend/app/services/app_settings.py (DEFAULTS, AI_DEFAULTS) and the frontend Settings / SERVER_UI_KEYS in frontend/src/hooks/useSettings.ts.

Storage layers

Layer Meaning
Top-level Root keys in DATA_DIR/app_settings.json
AI Nested ai object in that file
UI blob Nested ui object; keys synced from SERVER_UI_KEYS (snake_case on disk)
localStorage horde.settings — always written; authoritative for keys not in SERVER_UI_KEYS
Backend-only Exists in server defaults / runtime; no Settings control

See Settings overview for hydration and migration.


Top-level DEFAULTS

Key Default Type Range / notes Storage
progress_expiry_days 14 int 1–365 Top-level (+ mirrored as client progressExpiryDays)
continue_watching_days 7 int Fixed Backend-only — not editable in UI
metadata_sync_interval_hours 24 int 1–168 Top-level
channel_catalog_enabled true bool YouTube channels only Top-level
channel_catalog_max_videos 1000 int 100–5000 Top-level
direct_youtube_search true bool Channel-page YouTube search fallback; per-channel override on channel_catalogs.direct_youtube_search Top-level
youtube_video_search true bool Library home live YouTube video search (after pause / Enter) Top-level
max_library_bytes null int or null Bytes, 1 GiB–1 PiB; null or 0 = no limit. Downloads wait while the library is at this size. Admin only: a member's GET /api/settings shows null Top-level
media_server_sidecars false bool Write Jellyfin / Kodi / Plex files (.nfo, -thumb.jpg, tvshow.nfo) beside the media; turning it on queues a backfill. Admin only: a member's GET /api/settings shows false. See Media servers Top-level
comments_enabled true bool Comments of YouTube videos: saved in the background, shown under videos, used by search and by Ask when it answers about a video. Off turns all of it off (saved comments are kept). Members see the real value. See Comments Top-level
require_two_factor "off" off | admins | everyone Who must sign in with a second step (an authenticator code or recovery code). Accounts that must but have not set it up can only reach the setup screen. Administrators only; see Two-step sign-in.
download_queue_paused false bool Restored on startup by download queue recover; set by Pause/Resume on Download Top-level (Backend-only — no Settings control)
setup_completed false bool First-install wizard. Missing key on an existing app_settings.json is treated as true (grandfather). PATCH may set true only; factory reset sets false. Top-level
ui {} object Deep-merged on save UI blob container
ai (see below) object Merged with AI_DEFAULTS AI

Related constants: catalog description limit for newest uploads ≈ 200 (CHANNEL_CATALOG_DESC_LIMIT).


AI_DEFAULTS

Key Default Type Range / values Storage
enabled true bool Also needs base_url AI
base_url "" string OpenAI-compatible URL; bare http://host:port gets /v1 AI
api_key "" string Secret; read back masked AI
chat_model "" string AI
help_model "" string Ask's model; empty = chat_model AI
embed_base_url "" string Empty = use base_url AI
embed_api_key "" string Secret; read back masked AI
embed_model "" string Empty = no embeddings AI
autodetect_ollama "" string chat | embed while an upgraded install looks for Ollama AI
connection_version 2 int Settings shape; older files are converted once AI
show_costs false bool AI
weekly_budget_usd null float | null ~0.01–100000; null/0 = off AI
budget_hard_limit false bool AI
schedule "on_download" string on_download | on_request | timer | set_time AI
timer_hours 6 number Hours between timer runs AI
schedule_time "03:00" string Local HH:MM AI
last_daily_run "" string YYYY-MM-DD Backend-only bookkeeping
auto_pull_models true bool AI
use_subtitles true bool AI
enrich_tags true bool AI
tag_rescan_days 90 int 7–365 AI
ai_summaries true bool After download when captions exist AI
ai_chapters true bool Enable caption-based chapter markers AI
ai_chapters_mode "on_download" on_download | on_watch Auto after download, or Watch-page button only AI
ai_chat true bool AI
summary_length "short" string short | medium | long AI
ai_duplicates true bool On-demand Import LLM AI
category_min_score 0.55 float 0.2–0.9 AI
workload_profile "normal" string light | normal | heavy AI
vram_gb null float | null ~0.5–256 GiB; null = autodetect AI
pending_category_refresh false bool Backend-only flag
paused false bool Queue pause AI

Duplicate scoring

Duplicate LLM runs on-demand during Import when ai_duplicates is true. See AI → Features.


UI blob keys (SERVER_UI_KEYS)

Written to localStorage always; synced to app_settings.json → ui as snake_case. Defaults from frontend DEFAULTS.

Appearance

Client key Default Type Range / values Storage
theme "default" string default | oled | terminal | nord | light | indigo | cyber | sunset | forest | slate | earthy | frozen | mocha | custom UI blob
customColors { accent: "#22d3ee", background: "#08090c" } object Hex colors UI blob
customThemes [] array Max 40 presets UI blob
customCss "" string Max 64 000 chars; injected as #horde-custom-css when enabled UI blob
customCssEnabled false bool Shows the editor and injects customCss. Missing flag + non-empty CSS → treated as on UI blob
backgroundEffect "none" string See Appearance UI blob
backgroundOpacity 0.45 number 0.1–1 UI blob
backgroundEffectSpeed 1 number 0.25–3 UI blob
backgroundEffectSize 1 number 0.5–2 UI blob
backgroundEffectOptions {} object Per-effect slider values, {effect: {slider: number}}; see Appearance UI blob
backgroundEffectColorMode "accent" string accent | custom UI blob
backgroundEffectColor "#22d3ee" string Hex UI blob
flowingGradientPreset "theme" string theme | rgb | cool | warm | mono UI blob
customBackgroundId null string | null UI blob
customBackgroundMime null string | null UI blob
customBackgroundBlur 12 number 0–40 UI blob
customBackgroundTint "#08090c" string Hex UI blob
customBackgroundTintOpacity 0.45 number 0–1 UI blob
pauseBackgroundWhileWatching false bool UI blob
navIndicator "underline" string none | liquid | underline | fade | dot | focus UI blob
hoverMotion "subtle" string off | subtle | lift | glow UI blob
translucentPanelStrength 0.5 number 0–1 (higher = more see-through) UI blob
translucentPanelBlur 0.5 number 0–1 (higher = stronger frost) UI blob
translucentPanelTintEnabled false bool UI blob
translucentPanelTint "#ffffff" string Hex UI blob
translucentPanelTintStrength 0.35 number 0–1 UI blob
translucentPanelLegibility true bool UI blob
loadingStyle "dots" string spinner | orbit | helix | infinity | sweep | spokes | dots | pulse | wave | cube | spiral | swarm | leapfrog UI blob
fontSize "medium" string Interface size: small | medium | large | xl UI blob
textSize "medium" string Text size alone: small | medium | large | xl UI blob
cardSize "medium" string Video card size: small | medium | large | xl UI blob
uiFont "oxanium" string Builtin id or saved custom id UI blob
customFonts [] array Saved URL/file fonts UI blob
tabBarItems ["home","search","download","chat"] array Up to 5 of home | search | download | chat | playlists | history | offline | settings, in order UI blob
searchHistory [] array The account's recent searches in the top bar's box, newest first, up to 20 (each up to 200 characters) UI blob
navBarItems every page array home | playlists | subscriptions | history | offline | download | import | settings, in order; settings is always kept UI blob

Library / downloads (UI)

Client key Default Type Values Storage
showContinueWatching true bool UI blob
showProgressOnContinueWatching true bool UI blob
showProgressOnAllVideos false bool UI blob
showCardDates true bool UI blob
historyIncludeYoutube false bool History stats also count the imported YouTube history (views, never time) UI blob
defaultLibrarySort "added_at" string added_at | published_at | title | duration | file_size | view_count | random UI blob
channelSort "recent_download" string recent_download | video_count | alphabetical | subscriber_count UI blob
channelOrder "desc" string asc | desc UI blob
showDownloadNavBadge true bool UI blob
defaultDownloadPreset "best" string best | 2160p | 1440p | 1080p | 720p | 480p | audio | audio-160 | audio-128 | audio-64: preselected whenever you start a download UI blob (default_download_preset)
normalizeVolumeOnDownload true bool UI blob
downloadVideoCodec "av1" string av1 | h264_native | h264_convert | sidecar (legacy h264/h265 → h264_convert) UI blob (download_video_codec)
compatCopyResolution "1080p" string 1080p | source: H.264 copy short-side cap (1080, or up to 4K) UI blob (compat_copy_resolution)

progressExpiryDays

Present on the client Settings object (default 14) but not in SERVER_UI_KEYS. Canonical store is top-level progress_expiry_days.

Playback

Client key Default Type Values Storage
showDescription true bool UI blob
showRelatedVideos true bool UI blob
autoplayRelated true bool Up-next countdown: next part of a series, else (library videos) a related video UI blob
previewOnHover true bool Thumbnail previews (hover, or centered card on touch screens) UI blob
playerShortcuts true bool Single-character hotkeys on/off UI blob
hotkeys {} object Rebound hotkeys: action id → keys; missing actions use defaults UI blob
showUndownloadedOnChannel true bool UI blob
defaultStreamQuality "auto" string auto | 2160 | 1440 | 1080 | 720 | 480 UI blob
subtitleSize "medium" string small | medium | large UI blob
subtitleLeft 20 number % from left (player drag) UI blob
subtitleOffset 12 number % from bottom (player drag) UI blob
sponsorBlockEnabled true bool YouTube only UI blob
sponsorBlockShowNotice true bool Auto-skip toast + undo UI blob
sponsorBlockSkipMode "auto" string auto | prompt UI blob
sponsorBlockCategories see playback.md object Per-category booleans UI blob
defaultPlaybackRate 1 number 0.25–3 step list UI blob
playbackMode "standard" string Player view mode UI blob

Session-ish UI state (still synced via UI blob)

These are updated from the shell/player rather than dedicated Settings rows, but they are in SERVER_UI_KEYS and therefore sync across browsers sharing the server.

Client key Default Type Values Storage
sidebarCollapsed false bool Library sidebar UI blob
chaptersExpanded true bool Watch chapters panel UI blob
descriptionExpanded true bool Watch description panel UI blob
aiExpanded true bool Watch AI panel open/closed UI blob
commentsExpanded true bool Watch comments box open/closed (comments that are off or empty start closed) UI blob
helpChatData "off" string off | local | cloud: what Ask may read of this user's data (Use my data); local covers only a provider on the local network UI blob

Client-only (localStorage, not SERVER_UI_KEYS)

These live in horde.settings only and are not pushed in the ui blob.

Client key Default Type Notes Storage
volume 1 number Player volume 0–1 localStorage only
lastCustomChannel "" string Last custom channel URL/handle localStorage only

Other localStorage keys used by Settings (not part of DEFAULTS):

Key Purpose
horde.settings.tab Last selected settings tab
horde.settings.updateDismissedSha Dismissed update banner SHA

Keys intentionally absent from Settings UI

Key Layer Why
continue_watching_days Top-level Fixed at 7; continue-watching row cutoff
ai.last_daily_run AI Set by set_time scheduler
ai.pending_category_refresh AI Internal “refresh categories after index” latch

Quick map: Settings tab → docs

Tab Doc
Overview / search / deep links index.md
Appearance appearance.md
Custom CSS custom-css.md
Library library.md
Playback playback.md
AI ai.md
System system.md